I have to migrate some Impala shell commands to Hive. They are quite simple commands but I'm a bit lost with them, because I know what each of them does but I wouldn't know their equivalent form in Hive.
TABLE=$(impala-shell -i ${server} --delimited --quiet -q "select concat(db_normalized,'.',tb_normalized) from parametric_table where source='testSource' and product='testProduct' limit 1" 2>/dev/null)
nohup impala-shell -i ${server} -q "REFRESH $TABLE;" >> ${logsPath}/impalaRefresh.out &
The first command is getting the database name and the table name from a parametric table based on some parameters which will then be used in the second command to run a REFRESH
on it.
Sorry if this is a pretty simple task but I am new to Impala and Hive.