Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: add Maven note with link to Getting Started

Table of Contents

Installing Hive

Info
titleVersion information

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/trunk. You can download it by running the following command.

Code Block

$ svn co http://svn.apache.org/repos/asf/hive/trunk hive

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

Code Block

$ ant package

It will create the subdirectory build/dist with the following contents:

...

To use the Hive command line interface (cli) go to the Hive home directory (the one with the contents of build/dist) and execute the following command:

Code Block

$ bin/hive

Hive Metastore

Metadata is stored in an embedded Derby database whose disk storage location is determined by the Hive configuration variable named javax.jdo.option.ConnectionURL. By default, this location is ./metastore_db (see conf/hive-default.xml).

...