安装
Henvealf/文
从官网下载tar包
解压
tar -zxvf apache-hive-x.y.z.tar.gz
并配置好 Hive 的环境变量:
export HIVE_HOME=你的Hive目录
export PATH=${HIVE_HOME}/bin:${PATH}
现在执行 hive 命令试试,结果失败了:
henvealf@Henvealf-PC:/usr/henvealfSoftware$ hive
Logging initialized using configuration in jar:file:/usr/henvealfSoftware/hive-1.2.1/lib/hive-common-1.2.1.jar!/hive-log4j.properties
[ERROR] Terminal initialization failed; falling back to unsupported
java.lang.IncompatibleClassChangeError: Found class jline.Terminal, but interface was expected
at jline.TerminalFactory.create(TerminalFactory.java:101)
at jline.TerminalFactory.get(TerminalFactory.java:158)
at jline.console.ConsoleReader.<init>(ConsoleReader.java:229)
at jline.console.ConsoleR