我尝试将配置文件中的参数传递给shell脚本,并将其分配给如下所示的本地参数,然后将本地参数传递给配置单元脚本。基本结构如下所示。但是,源列名称不会反映在最终表中。我做错什么了?谢谢!
# passing values from config to shell and source_file_name is a runtime parameter#####
if [ ${source_file_name}=tab_1 ];
then
${source_table}=tab_1 ${source_columns_names}=tab1_columns
fi
nohup hive -f /hivescript.hql -hivevar source_columns_names=${source_columns} -hivevar source_table_name=${source_table}
####### config file values#####
tab_1= table_one_name tab1_columns=table_one_columns
在此处输入代码
暂无答案!
目前还没有任何答案,快来回答吧!