...
The Hive SVN repository is located here: http://svn.apache.org/repos/asf/hive/trunk.
No Format |
---|
$ svn co http://svn.apache.org/repos/asf/hive/trunk hive $ cd hive $ antmvn clean package install -Phadoop-2,dist $ cd build/distpackaging/target/apache-hive-{version}-SNAPSHOT-bin/apache-hive-{version}-SNAPSHOT-bin $ ls LICENSE NOTICE README.txt binRELEASE_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) |
Here, {version} refers to the current Hive version.
In the rest of the page we will refer to this directory "packaging/target/apache-hive-{version}-SNAPSHOT-bin/apache-hive-{version}-SNAPSHOT-bin" as <install-dir>
In the rest of the page we use build/dist
and <install-dir>
interchangeably.
Compile Hive on Hadoop
...
0.20
No Format |
---|
$ svn co http://svn.apache.org/repos/asf/hive/trunk hive $ cd hive $ ant clean package -Dhadoop.version=0.23.3 -Dhadoop-0.23.version=0.23.3 -Dhadoop.mr.rev=23/svn.apache.org/repos/asf/hive/trunk hive $ cd hive $ antmvn clean packageinstall -Dhadoop.version=2.0.0-alpha -Dhadoop-0.23.version=2.0.0-alpha -Dhadoop.mr.rev=23Phadoop-1,dist |
Running Hive
Hive uses Hadoop, so:
...