-
Spark
# 执行sql文件
spark-sql -f temp.sql
# 执行sql文件,输出日志
spark-sql -f temp.sql > temp.log
# 指定队列,执行sql文件
spark-sql --queue root.platform.temp -f temp.sql
-
Hive
# 执行sql文件
hive -f temp.sql
# 执行sql文件,输出日志
hive -f temp.sql > temp.log
# 指定队列,执行sql文件
hive --hiveconf mapreduce.job.queuename=root.platform.temp -f temp.sql