sudo vim /etc/profile
先看profile有没有配置
#hive export HIVE_HOME=/home/hadoop/hive/hive1#路径 export PATH=$PATH:$HIVE_HOME/bin
source /etc/profile
vi ~/.bashrc
#Hive export HIVE_HOME=/home/hadoop/hive/hive1 export PATH=$PATH:$HIVE_HOME/bin
source ~/.bashrc
Terminal initialization failed; falling back to unsupported错误
hadoop目录下存在老版本jline
cp /home/hadoop/hive/hive1/lib/jline-2.12.jar /usr/local/hadoop/share/hadoop/yarn/lib
把hive1下的jlinejar包拷贝到hadoop下
然后
rm jline-0.9.94.jar
删除掉老jar包
Missing Hive Execution Jar:hive错误
原文:https://www.cnblogs.com/languid/p/11214154.html