设置hive MR 使用队列
hive --hiveconf mapreduce.job.queuename=queue-name;
hive 执行sql文件 输出结果:
hive -f hiveselectuser.sql > hiveselectuser.txt

设置hive MR 使用队列
hive --hiveconf mapreduce.job.queuename=queue-name;
hive 执行sql文件 输出结果:
hive -f hiveselectuser.sql > hiveselectuser.txt