Hive 1.1.1 Installation on single node hadoop 2.6.0 on ubuntu 14.04

sudo su hduser
cd
sudo wget http://mirror.tcpdiag.net/apache/hive/hive-1.1.1/apache-hive-1.1.1-bin.tar.gz
sudo cp apache-hive-1.1.1-bin.tar.gz /usr/local/
cd /usr/local/
sudo tar -xvf apache-hive-1.1.1-bin.tar.gz
sudo mv apache-hive-1.1.1-bin hive
sudo chown hduser:hadoop -R hive
cd
sudo nano ~/.bashrc

#HIVE VARIABLES START
export HIVE_HOME=/usr/local/hive
export PATH=$PATH:$HIVE_HOME/bin
#HIVE VARIABLES END

ctrl+x
Y
<enter>

source ~/.bashrc

hive

if you get some error related to found class and expected Interface i.e. jline error, then delete jline jar using following command
sudo rm /usr/local/hadoop/share/hadoop/yarn/lib/jline-0.9.94.jar

once deleted insert this line in .bashrc file
sudo nano ~/.bashrc

HADOOP_USER_CLASSPATH_FIRST=true

ctrl+x
Y
<enter>

source ~/.bashrc

then type hive to run hive server

hive

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s