Following steps to install Hive 0.13.0
1. Download hive tar
1 | hduser@ubuntu:~$ wget http://mirror.tcpdiag.net/apache/hive/hive-0.13.0/apache-hive-0.13.0-bin.tar.gz |
2. Extract tar file
1 | hduser@ubuntu:~$ tar -xzvf apache-hive-0.13.0-bin.tar.gz |
3. Rename folder
1 | hduser@ubuntu:~$ mv apache-hive-0.13.0-bin hive |
4. Move hive folder
1 | root@ubuntu:~# mv /home/hduser/hive/ /usr/local/ |
5. Update environment
1 | hduser@ubuntu:~$ vi ~/.bashrc |
Insert code below to the end of file
1 2 3 4 | export HADOOP_HOME=/usr/local/hadoop export HIVE_HOME=/usr/local/hive export PATH=$PATH:$HIVE_HOME/bin export PATH=$PATH:$HADOOP_HOME/bin |
6. Reboot the system to apply new change
1 | root@ubuntu:~$ reboot |
7. Login to Hive shell
1 2 3 4 | hduser@ubuntu:~$ hive Logging initialized using configuration in jar:file:/usr/local/hive/lib/hive-common-0.13.0.jar!/hive-log4j.properties hive> |
hadooo version 2.4.0
ReplyDeletelinux version 12...
hive 0.13.0
error in establishing connection
||
||
Logging initialized using configuration in jar:file:/usr/local/hive/hive/lib/hive-common-0.14.0.jar!/hive-log4j.properties
Exception in thread "main" java.lang.RuntimeException: java.net.ConnectException: Call From curin-HP-Z400-Workstation/127.0.1.1 to localhost:9000 failed on connection exception: java.net.ConnectException: Connection refused; For more details see: http://wiki.apache.org/hadoop/ConnectionRefused
at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:444)
...
...
....
||
||
can you help me resolving this particular error ?
Hi, great post. Almost worked but then at point 7 line 4 never happened. the hive shell did not open. Any thoughts on what I am doing incorrectly? Hadoop and HBase both work.
ReplyDelete