$HIVE_HOME/bin/hive -e 'select a.col from tab1 a'
$HIVE_HOME/bin/hive -e 'select a.col from tab1 a' -hiveconf hive.exec.scratchdir=/home/my/hive_scratch -hiveconf mapred.reduce.tasks=32
$HIVE_HOME/bin/hive -S -e 'select a.col from tab1 a' > a.txt
$HIVE_HOME/bin/hive -f /home/my/hive-script.sql
$HIVE_HOME/bin/hive -i /home/my/hive-init.sql
Copyright ©2022 coderraj.com. All Rights Reserved.