How to Install Hive in Hadoop Environment

           To Installing and Configuring Hive  in Hadoop distributed mode where each Hadoop creating  

           the structured data using hive.

 

Procedure:

Step 1:                   Download and extract the hive archive:

                               $ tar xvzf apache-hive-0.14.0-bin.tar.gz

                               $ ls

Step 2:                   Copy the files from the extracted directory to the /usr/local/hive”  directory.          

                               $ mv apache-hive-0.14.0 /usr/local/hive

Step 3:                   You can set up the Hive environment by appending the following lines to .bashrc file:     

                               export HIVE_HOME=/usr/local/hive
                               export PATH=$PATH:$HIVE_HOME/bin

Step 5:                   Execute the bashrc file.

                               $ exec bash

Step 6:                   To configure Hive with Hadoop, you need to edit the hive-env.sh file, which is placed    

                                 in the $HIVE_HOME/conf  directory.                    

                               $ cd $HIVE_HOME/conf

Step 7:                   Edit the hive-env.sh file by appending the following line    

                                  export HADOOP_HOME=/usr/local/hadoop

Step 8:                   To configure Hive with Hadoop, you need to edit the hive-env.sh file,

which is placed in the $HIVE_HOME/conf  directory.                   

                               $ cd $HIVE_HOME/conf

Step 9:                  The following commands are used to verify Hive installation

                               $ cd $HIVE_HOME
                               $ bin/hive

Step 10:                 On successful installation of Hive, you get to see the following response

                               hive>

Comments

Popular posts from this blog

How to create Animated 3d chart with R.

Linux/Unix Commands frequently used

R Programming Introduction