Showing posts with label HIVE 1.2.0 INSTALLATION ON HADOOP 2.7.1 SINGLE NODE CLUSTER. Show all posts
Showing posts with label HIVE 1.2.0 INSTALLATION ON HADOOP 2.7.1 SINGLE NODE CLUSTER. Show all posts

Saturday, September 3, 2016

HIVE 1.2.0 INSTALLATION ON HADOOP 2.7.1 SINGLE NODE CLUSTER



PREREQUISITES
1) Ubuntu 12.4 or higher
2) Sun Java 6 or higher
3) The system must have hadoop installed (hadoop version 2.7.1)and configured.
Note :- Hive can run in  Linux and Windows environment. Mac (OS X ) is a commonly used development environment. 
INSTALLATION STEPS
Step1 :sudo tar -zxzf apache-hive-1.2.1-bin.tar.gz
Step2 :sudo mv apache-hive-1.2.0-bin  /usr/local/hive
change this ~/.bashrc in hadoop user 
login in hadoop user using this command
su hadoop-user(here your user name as per your system)
then it will ask for password write it the password and after do further process. 
Step3 :sudo nano ~/.bashrc
Step4: add this in ~/.bashrc file and save
export HIVE_HOME=/usr/local/hive/apache-hive-1.2.0-bin/
export HIVE_CONF_DIR=$HIVE_HOME/conf
export HIVE_CLASS_PATH=$HIVE_CONF_DIR
export PATH=$HIVE_HOME/bin:$PATH
Step5 : source ~/.bashrc
Step6 :hive
Then Start first hadoop using start-all.sh command then start hive just typing hive command and you can see like this

hadoop-user@ubuntu:~$ hive

Logging initialized using configuration in jar:file:/usr/local/hive/apache-hive-1.2.1-bin/lib/hive-common-1.2.1.jar!/hive-log4j.properties
Java HotSpot(TM) Server VM warning: You have loaded library /usr/local/hadoop-2.7.1/lib/native/libhadoop.so.1.0.0 which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.


hive>