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"