Is there a way to export the output of multiple hive queries in the hive CLI to the shell script?
Currently, I have shell script wherein there are multiple hive queries which I fire:
VAR1=`hive -e "select count(*) from table1;"`
VAR2=`hive -e "select count(*) from table2;"`
VAR3=`hive -e "select count(*) from table3;"`
This will run all the queries in a separate hive session which will cause it to wait for resources in yarn. Instead, I want to run them in the same hive session
`hive -e "select count(*) from table1;select count(*) from table2;select count(*) from table3;"`
and get the output passed to the shell script into VAR1, VAR2 & VAR3. Is it possible?