Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Hive installation has these requirements:

  • Java 1.7 (preferred).
    Note:  Hive versions 1.2 onward require Java 1.7 or newer. Hive versions 0.14 to 1.1 work with Java 1.6, but prefer 1.7. Users are strongly advised to start moving to Java 1. 8 (see HIVE-8607). 
  • Hadoop 2.x (preferred), 1.x (not supported by Hive 2.0.0 onward).
    Hive versions up to 0.13 also supported Hadoop 0.20.x, 0.23.x.3.3.6
  • Hive Hive is commonly used in production Linux and Windows environment. Mac is a commonly used development environment. The instructions in this document are applicable to Linux and Mac. Using it on Windows would require slightly different steps.  

Installing from a Tarball

...

No Format
  $ export PATH=$HIVE_HOME/bin:$PATH

Installing from Source

...

Code 

Hive is available via Git at https://github.com/apache/hive

Info
titleVersion information

To build Hive 1.2.0 and later releases with Apache Maven, see Getting Started: Building Hive from Source. You will need Java 1.7 or newer.

Installing from Source Code (Hive 0.13.0 and Later)

Info
titleVersion information

To build Hive 0.13.0 and later releases with Apache Maven, see Getting Started: Building Hive from Source.

Installing from Source Code (Hive 0.12.0 and Earlier)

Info
titleVersion information

This section describes installation for Hive 0.12.0 and earlier releases, which use Apache Ant to build Hive.

Installing Hive is simple and only requires having Java 1.6 and Ant installed on your machine (for Hive 0.12 and earlier).

Hive is available via SVN at http://svn.apache.org/repos/asf/hive/branches. You can download it by running the following command.

Code Block
$git svn co http://svn.apache.org/repos/asf/hive/branches/branch-#.# hive
clone git@github.com:apache/hive.git 

In case you want to get a specific release branch, like 4.0.0, you can run that command: 

git clone -b branch-4.0 --single-branch git@github.com:apache/hive.gitwhere #.# is the Hive release number. For release 0.8.1, use "branch-0.8-r2".

To build Hive, execute the following command on the base directory:

...