Tuesday, August 6, 2013

How to build Hive from source

Step 1: Download Hadoop and hive distros from github.
             git clone haoop.git hadoop-trunk
             git clone hive.git hive trunk

Step 2:  Building hive for specific version of hadoop, I want to build for hadoop-2.0.5-aplha
              cd hadoop-trunk
              git checkout release-2.0.5-alpha  (Checkout tag)
              cd  ..
 Step 4: Now we can build hive for hadoop-2.0.5-aplha
            cd hive-trunk
            ant clean
            ant -Dhadoop.version=2.0.5-alpha -Dhadoop.root=<HADOOP_SOURCE_TREE_PATH>  \
                  -Dtarget.dir=./build-target package
         target.dir: where package will be build

No comments:

Post a Comment