...
Hive is built by Ant, a Java build tool.
- Good Ant tutorial: http://i-proving.ca/space/Technologies/Ant+Tutorial
To build Hive, run
...
You can specify a different Hadoop version with -Dhadoop.version="<your-hadoop-version>". By default, Hadoop tarballs are pulled from http://mirror.facebook.net/facebook/hive-deps, which contains Hadoop 0.17.2.1, 0.18.3, 0.19.0, 0.20.0, 0.20.1, and 0.20S (aka 0.20.3-CDH3-SNAPSHOT). If the version you want is not here, then you'll need to set hadoop.mirror to a different source. For 0.19.2 and 0.20.2, you can use http://mirror.facebook.net/apache or any other Apache mirror. For other versions, you'll need to use http://archive.apache.org/dist (but don't use this unless you have to, since it's an overloaded server).
...
If you are an Eclipse user, you can apply a patch by : 1. Right click project name in Package Explorer , 2. Team -> Apply Patch
Review Process
Note: we are currently testing out Phabricator as an alternative to Review Board, so you can use either system for now.
If your patch contains more than 2 files that are changed and not yet had a review, please submit to Review Board. Some helpful hints for Review Board:
...
- Don't make any changes to
hive_metastore.thrift
until instructed below. - Use the approved version of thrift. This is currently
thrift-0.5.0
, which you can obtain from http://thrift.apache.org/. - Build the thrift compiler from its sources, then install it:
cd /path/to/thrift-0.5.0
./configure --without-csharp --without-ruby
make
sudo make install
- Before proceeding, verify that
which thrift
returns the build of thrift you just installed (typically/usr/local/bin
on Linux); if not, edit your PATH and repeat the verification. Also verify that the command 'thrift -version' returns the expected version number of Thrift. - Now you can run the ant 'thriftif' target to generate the Thrift code:
cd /path/to/hive-trunk/metastore
ant thriftif -Dthrift.home=/path/to/thrift-0.5.0
- Use
svn status
to verify that the code generation was a no-op, which should be the case if you have the correct thrift version and everyone has been following these instructions. If you can't figure out what is going wrong, ask for help from a committer. - Now make your changes to
hive_metastore.thrift
, and then run the compiler again: ant thriftif
- Now use
svn status
andsvn diff
to verify that the regenerated code corresponds only to the changes you made tohive_metastore.thrift
. You may also needsvn add
if new files were generated (andsvn remove
if files have been obsoleted). cd /path/to/hive-trunk
ant clean package
- Verify that hive is still working correctly with both embedded and remote metastore configurations.
...