Hi freinds in this blog I want to share my experience of using hive. Most of the new user who want to use latest hive with hadoop run into the following two problems
1) whenever user give 'hive' command it throws error showing refused connection
2) java.lang.IncompatibleClassChangeError: Found class jline.Terminal, but interface was expected
To avoid 1 error user should confirm following points
* hadoop namenode should be formated
* run hadoop command after formatting
* check wheather all services are running using JPS command
* make /tmp and /user/hive/warehouse directories in hdfs
But in this blog i am little more interested in second point , most of the new users struggle at this point but it is very easy if user know its cause.
Actually hive works with hadoop and Hive has upgraded to Jline2 but jline 0.9x exists in the Hadoop lib.
So go to the hadoop lib and delete 0.9x and then run hive command from CLI , then your hive will work properly
lib path : $HADOOP_HOME/share/hadoop/yarn/lib
More From Oodles
Ready to innovate? Let's get in touch
Cookies are important to the proper functioning of a site. To improve your experience, we use cookies to remember log-in details and provide secure log-in, collect statistics to optimize site functionality, and deliver content tailored to your interests. Click Agree and Proceed to accept cookies and go directly to the site or click on View Cookie Settings to see detailed descriptions of the types of cookies and choose whether to accept certain cookies while on the site.
About Author
Md Qasim Siddiqui
Qasim is an experienced web app developer with expertise in groovy and grails,Hadoop , Hive, Mahout, AngularJS and Spring frameworks. He likes to listen music in idle time and plays counter strike.