-
Book Overview & Buying
-
Table Of Contents
Apache Hive Essentials
By :
To introduce the Hive installation, we use Hive version 1.0.0 as an example. The pre-installation requirements for this installation are as follows:
JDK 1.7.0_51
Hadoop 0.20.x, 0.23.x.y, 1.x.y, or 2.x.y
Ubuntu 14.04/CentOS 6.2
Since we focus on Hive in this book, the installation steps for Java and Hadoop are not provided here. For steps on installing them, please refer to https://www.java.com/en/download/help/download_options.xml and http://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-common/ClusterSetup.html.
The following steps describe how to install Hive from Apache through the Linux command line:
Download Hive from Apache Hive and unpack it:
bash-4.1$ wget http://apache.mirror.rafal.ca/hive/hive-1.0.0/apache-hive-1.0.0-bin.tar.gz bash-4.1$ tar -zxvf apache-hive-1.0.0-bin.tar.gz
Add Hive to the system path by opening /etc/profile or ~/.bashrc and add the following two rows:
export HIVE_HOME=/home/hivebooks/apache-hive-1.0.0-bin export PATH=$PATH...