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 查詢數(shù)據(jù),前臺執(zhí)行沒有問題汗唱。但是用nohup 命令啟動,這個時候,beeline命令無法執(zhí)行,就不能獲得數(shù)據(jù)永脓。
解決方案為在shell腳本中添加環(huán)境變量:
export HADOOP_CLIENT_OPTS="-Djline.terminal=jline.UnsupportedTerminal"