doris: shell invoke .sql script for doris and passing values for parameters in sql script.
1. background in most cases, we want to execute sql script in doris routinely. using azkaban, to load data,etc.And we want to pass parameters to the sql script file. we can easily handle such situation in hive. 1.1 hive usage: using -hiveconf: or -hivevar: shell file: we want to pass 2 parameters into hive sql script: p_partition_d & p_partition_to_delete : which pass two parameters into hive.sql file using -hivevar {variable_name}={variable_value} #!/bin/bash CURRENT_DIR=$(cd `dirname $0`; pwd) echo "CURRENT_DIR:"${CURRENT_DIR} APPLICATION_ROOT_DIR=$(cd ${CURRENT_DIR}/..;pwd) echo