On Fri, Sep 10, 2010 at 5:56 PM, Sanjit Jhala <sjha...@gmail.com> wrote: > Hi, > I'm trying to build Hive. I have CDH3 hadoop installed on my machine. My > build command is: > ant package -Dtarget.dir=/home/sanjit/build/hive -Dhadoop.version=0.20.2+320 > -Dhadoop.root=/opt/hadoop/hadoop-0.20.2+320/ > and I ran into: > build_shims: > [echo] Compiling shims against hadoop 0.17.2.1 > (/opt/hadoop/hadoop-0.20.2+320/) > [javac] Compiling 5 source files to > /home/sanjit/src/hive/build/shims/classes > [javac] > /home/sanjit/src/hive/shims/src/0.17/java/org/apache/hadoop/hive/shims/Hadoop17Shims.java:20: > package org.apache.hadoop.conf does not exist > ... > ... > [javac] > /home/sanjit/src/hive/shims/src/common/java/org/apache/hadoop/hive/shims/ShimLoader.java:101: > cannot find symbol > [javac] symbol : variable VersionInfo > [javac] location: class org.apache.hadoop.hive.shims.ShimLoader > [javac] String vers = VersionInfo.getVersion(); > [javac] ^ > [javac] 70 errors > BUILD FAILED > /home/sanjit/src/hive/build.xml:158: The following error occurred while > executing this line: > /home/sanjit/src/hive/build.xml:103: The following error occurred while > executing this line: > /home/sanjit/src/hive/shims/build.xml:55: The following error occurred while > executing this line: > /home/sanjit/src/hive/shims/build.xml:46: Compile failed; see the compiler > error output for details. > > I am trying to build a pre 0.6.0 release Hive with the last commit being: > commit bf7e3b9cc6c6ceced2dec70f0971ecc91fd0dcb3 > Author: Namit Jain <na...@apache.org> > Date: Thu May 6 19:05:52 2010 +0000 > HIVE-1317. CombineHiveInputFormat throws exception when partition name > contains special characte > (Ning Zhang via namit) > > > > git-svn-id: https://svn.apache.org/repos/asf/hadoop/hive/tr...@941860 > 13f79535-47bb-0310-9956-ff > > Any idea what I'm missing? > -Sanjit
Sanjit, You should need to built hive against a very specifc version. All version of 0.20.X are compatible. ant -Dhadoop.version=0.20.0 package