hive -f/-e 结果出现WARN问题

问题现象:
hive -f “hsql.sql” > /tmp/hsql.log
hive -e “select * from tmp.table limit 10” > /tmp/hsql.log
备注:hive -f与hive -e 作用是相同的。-f 是指定hsql文件。-e 是指定要执行的sql
HIVE执行重定向之后数据最后多了两行日志。

WARN: The method class org.apache.commons.logging.impl.SLF4JLogFactory#release() was invoked.
WARN: Please see http://www.slf4j.org/codes.html release for an explanation.


解决办法:
添加“export HIVE_SKIP_SPARK_ASSEMBLY=true;” 到 /etc/profile

echo “export HIVE_SKIP_SPARK_ASSEMBLY=true;” >> /etc/profile
source /etc/profile

参考如下博客:
https://www.ericlin.me/tag/hiveonspark/
---------------------  
作者:大胜胜胜胜胜胜  
来源:CSDN  
原文:https://blog.csdn.net/spartacusgu/article/details/83417250  
版权声明:本文为博主原创文章,转载请附上博文链接!

猜你喜欢

转载自blog.csdn.net/SeaSky_Steven/article/details/86549853