...
Hive installation has these requirements:
- Java 1.6 or 1.77 (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, or 2.0.x-alpha. - 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
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 |
---|
$ export PATH=$HIVE_HOME/bin:$PATH |
Installing from Source Code (Hive 1.2.0 and Later)
Info | ||
---|---|---|
| ||
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)
...
Installing Hive is simple and only requires having Java 1.6 and 6 and Ant installed on your machine (for Hive 0.12 and earlier).
...
Code Block |
---|
$ svn co http://svn.apache.org/repos/asf/hive/branches/branch-0#.# hive |
where 0#.#
is the Hive release number. For release 0.8.1, use "branch-0.8-r2
".
...
To configure a database other than Derby for the Hive metastore, see Hive Metastore Administration.
Next Step: Configuring Hive.
...