...
DISCLAIMER: Hive has only been tested on unixUnix (linuxLinux) and mac Mac systems using Java 1.6 for now – although it may very well work on other similar platforms. It does not work on Cygwin.
...
Requirements
- Java 1.6
- Hadoop 0.20.x, 0.23.x, or 2.0.x-alpha
Installing Hive from a Stable Release
...
No Format |
---|
$ mvn clean install -Phadoop-1,dist |
Compile Hive Prior to 0.13 on Hadoop 0.20
Prior to Hive 0.13, Hive was built using Ant. To build an older version of Hive on Hadoop 0.20:
No Format |
---|
$ svn co http://svn.apache.org/repos/asf/hive/trunk hive $ cd hive $ ant clean package $ cd build/dist # ls LICENSE NOTICE README.txt RELEASE_NOTES.txt bin/ (all the shell scripts) lib/ (required jar files) conf/ (configuration files) examples/ (sample input and query files) hcatalog / (hcatalog installation) scripts / (upgrade scripts for hive-metastore) |
If using antAnt, we will refer to the directory "build/dist
" as <install-dir>
.
...
To build Hive in Ant against Hadoop 0.23, 2.0.0, or other version, build with the appopriate appropriate flag, ; some examples below:
No Format |
---|
$ ant clean package -Dhadoop.version=0.23.3 -Dhadoop-0.23.version=0.23.3 -Dhadoop.mr.rev=23 $ ant clean package -Dhadoop.version=2.0.0-alpha -Dhadoop-0.23.version=2.0.0-alpha -Dhadoop.mr.rev=23 |
...