/user/home: hive <enter>
You may see below error or warning on Hive interactive Shell:
You may see below error or warning on Hive interactive Shell:
Logging initialized using configuration in jar:file:/Library/apache-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
initialization failed error resolution:
a) Resolve error after running Apache Hive from command line, add below line to initialize the Apache Hadoop library into .bash profile file:
export HADOOP_USER_CLASSPATH_FIRST=true
b) Rerun the Apache Hive again:
/user/home: hive <enter>
/user/home: hive <enter>
c) On success, we will get Apache Hive interactive shell:
Logging initialized using configuration in jar:file:/usr/lib/apache-hive-1.2.1/lib/hive-common-1.2.1.jar!/hive-log4j.properties
hive>