美文网首页
Beeline doesn't work with -e opt

Beeline doesn't work with -e opt

作者: alaya_c09d | 来源:发表于2019-09-29 17:31 被阅读0次

Beeline doesn't work with -e option when started in background

原帖:
http://www.zhangdongshengtech.com/article-detials/203

bug信息:
https://issues.apache.org/jira/browse/HIVE-6758

shell 脚本中使用beeline -e 查询数据,前台执行没有问题。但是用nohup 命令启动,这个时候,beeline命令无法执行,就不能获得数据。

解决方案为在shell脚本中添加环境变量:
export HADOOP_CLIENT_OPTS="-Djline.terminal=jline.UnsupportedTerminal"

相关文章

网友评论

      本文标题:Beeline doesn't work with -e opt

      本文链接:https://www.haomeiwen.com/subject/jbpwectx.html