Table of Contents |
---|
Installing Hive
You can install a stable release of Hive by downloading and unpacking a tarball, or you can download the source code and build Hive using Maven (release 0.13 and later) or Ant (release 0.12 and earlier).
Installing from a Tarball
Start by downloading the most recent stable release of Hive from one of the Apache download mirrors (see Hive Releases).
Next you need to unpack the tarball. This will result in the creation of a subdirectory named hive-x.y.z
(where x.y.z
is the release number):
No Format |
---|
$ tar -xzvf hive-x.y.z.tar.gz
|
Set the environment variable HIVE_HOME
to point to the installation directory:
No Format |
---|
$ cd hive-x.y.z
$ export HIVE_HOME={{pwd}}
|
Finally, add $HIVE_HOME/bin
to your PATH
:
No Format |
---|
$ export PATH=$HIVE_HOME/bin:$PATH |
Installing from Source Code (Hive 0.13.0 and Later)
Info | ||
---|---|---|
| ||
To build Hive 0.13.0 and later releases with Apache Maven, see Getting Started. |
Installing from Source Code (Hive 0.12.0 and Earlier)
Info | ||
---|---|---|
| ||
This section describes installation for Hive 0.12.0 and earlier releases, which use Apache Ant to build Hive. To build Hive 0.13.0 and later releases with Apache Maven, see Getting Started. |
Installing Hive is simple and only requires having Java 1.6 and Ant installed on your machine (for Hive 0.12 and earlier; for Hive 0.13 and later see Getting Started).
Hive is available via SVN at http://svn.apache.org/repos/asf/hive/trunkbranches. You can download it by running the following command.
Code Block |
---|
$ svn co http://svn.apache.org/repos/asf/hive/trunkbranches/branch-0.# hive |
where 0.#
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:
...