You do not need to compile against a specific minor (it is a bug in the build process)
Try: ant -Dhadoop.version=0.20.0 package The resulting binary will be compatible with 0.20.2 Edward On Mon, Feb 7, 2011 at 3:27 AM, abhinav narain <abhinavnarai...@gmail.com> wrote: > hi, > I have mailed my problem on dev-list and have not received any replies. > Please help me, if you have some spare time. > I have hive 0.6.0, hadoop 0.20.2 in my /home/narain folder and run as usual. > > I took the hive source code provided in the hive tar bal and copied it to > /project/narain > When i build the project using : > $ ant -Dhadoop.version=0.20.2 package > it results in sayign hadoop core 0.20.2 not found. > In the output it also give hadoop core 0.17.2.1, 18.3, 0.20.0 found as > remarks ! > What shall i do to get the compilation right ? > > Is it unable to locate hadoop 0.20.2 in /home/narain, or its searching > hadoop 0.20.2 in repo (connected to using Ant ) and unable to find ? > > this is a part of output : > [ivy:retrieve] ==== hadoop-source: tried > [ivy:retrieve] -- artifact hadoop#core;0.20.2!hadoop.tar.gz(source): > [ivy:retrieve] > http://mirror.facebook.net/facebook/hive-deps/hadoop/core/hadoop-0.20.2/hadoop-0.20.2.tar.gz > [ivy:retrieve] ==== apache-snapshot: tried > [ivy:retrieve] > https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.20.2/core-0.20.2.pom > [ivy:retrieve] -- artifact hadoop#core;0.20.2!hadoop.tar.gz(source): > [ivy:retrieve] > https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.20.2/hadoop-0.20.2.tar.gz > [ivy:retrieve] ==== maven2: tried > [ivy:retrieve] > http://repo1.maven.org/maven2/hadoop/core/0.20.2/core-0.20.2.pom > [ivy:retrieve] -- artifact hadoop#core;0.20.2!hadoop.tar.gz(source): > [ivy:retrieve] > http://repo1.maven.org/maven2/hadoop/core/0.20.2/core-0.20.2.tar.gz > [ivy:retrieve] ==== datanucleus-repo: tried > [ivy:retrieve] -- artifact hadoop#core;0.20.2!hadoop.tar.gz(source): > [ivy:retrieve] > http://www.datanucleus.org/downloads/maven2/hadoop/core/0.20.2/core-0.20.2.tar.gz > [ivy:retrieve] :::::::::::::::::::::::::::::::::::::::::::::: > [ivy:retrieve] :: UNRESOLVED DEPENDENCIES :: > [ivy:retrieve] :::::::::::::::::::::::::::::::::::::::::::::: > [ivy:retrieve] :: hadoop#core;0.20.2: not found > [ivy:retrieve] :::::::::::::::::::::::::::::::::::::::::::::: > [ivy:retrieve] > [ivy:retrieve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS > > BUILD FAILED > /project/narain/src/build.xml:169: The following error occurred while > executing this line: > /project/narain/src/build.xml:108: The following error occurred while > executing this line: > /project/narain/src/build-common.xml:210: The following error occurred while > executing this line: > /project/narain/src/build-common.xml:201: The following error occurred while > executing this line: > /project/narain/src/build-common.xml:179: impossible to resolve > dependencies: > resolve failed - see output for details > > If I use instead just : $ ant package > I get the following error : > > compile: > [echo] Compiling: hbase-handler > [javac] /project/narain/src/build-common.xml:274: warning: > 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set > to false for repeatable builds > [javac] Compiling 15 source files to > /project/narain/src/build/hbase-handler/classes > [javac] > /project/narain/src/hbase-handler/src/java/org/apache/hadoop/hive/hwi/HWIContextListener.java:3: > package javax.servlet does not exist > [javac] import javax.servlet.ServletContext; > [javac] ^ > [javac] > /project/narain/src/hbase-handler/src/java/org/apache/hadoop/hive/hwi/HWIContextListener.java:4: > package javax.servlet does not exist > [javac] import javax.servlet.ServletContextEvent; > [javac] ^ > [javac] > /project/narain/src/hbase-handler/src/java/org/apache/hadoop/hive/hwi/HWIContextListener.java:14: > package javax.servlet does not exist > [javac] public class HWIContextListener implements > javax.servlet.ServletContextListener { > [javac] ^ > [javac] > /project/narain/src/hbase-handler/src/java/org/apache/hadoop/hive/hwi/HWIContextListener.java:27: > cannot find symbol > [javac] symbol : class ServletContextEvent > [javac] location: class org.apache.hadoop.hive.hwi.HWIContextListener > [javac] public void contextInitialized(ServletContextEvent sce) { > [javac] ^ > [javac] > /project/narain/src/hbase-handler/src/java/org/apache/hadoop/hive/hwi/HWIContextListener.java:46: > cannot find symbol > [javac] symbol : class ServletContextEvent > [javac] location: class org.apache.hadoop.hive.hwi.HWIContextListener > [javac] public void contextDestroyed(ServletContextEvent sce) { > [javac] ^ > [javac] > org/apache/hadoop/hbase/io/RowResult.class(org/apache/hadoop/hbase/io:RowResult.class): > warning: Cannot find annotation method 'base64()' in type > 'agilejson.TOJSON': class file for agilejson.TOJSON not found > [javac] > org/apache/hadoop/hbase/HColumnDescriptor.class(org/apache/hadoop/hbase:HColumnDescriptor.class): > warning: Cannot find annotation method 'fieldName()' in type > 'agilejson.TOJSON' > [javac] > org/apache/hadoop/hbase/HColumnDescriptor.class(org/apache/hadoop/hbase:HColumnDescriptor.class): > warning: Cannot find annotation method 'base64()' in type 'agilejson.TOJSON' > [javac] > org/apache/hadoop/hbase/HColumnDescriptor.class(org/apache/hadoop/hbase:HColumnDescriptor.class): > warning: Cannot find annotation method 'prefixLength()' in type > 'agilejson.TOJSON' > [javac] > org/apache/hadoop/hbase/HColumnDescriptor.class(org/apache/hadoop/hbase:HColumnDescriptor.class): > warning: Cannot find annotation method 'prefixLength()' in type > 'agilejson.TOJSON' > [javac] > org/apache/hadoop/hbase/HColumnDescriptor.class(org/apache/hadoop/hbase:HColumnDescriptor.class): > warning: Cannot find annotation method 'prefixLength()' in type > 'agilejson.TOJSON' > [javac] > org/apache/hadoop/hbase/HTableDescriptor.class(org/apache/hadoop/hbase:HTableDescriptor.class): > warning: Cannot find annotation method 'fieldName()' in type > 'agilejson.TOJSON' > [javac] > org/apache/hadoop/hbase/io/Cell.class(org/apache/hadoop/hbase/io:Cell.class): > warning: Cannot find annotation method 'base64()' in type 'agilejson.TOJSON' > [javac] > /project/narain/src/hbase-handler/src/java/org/apache/hadoop/hive/hwi/HWIContextListener.java:28: > cannot find symbol > [javac] symbol : class ServletContext > [javac] location: class org.apache.hadoop.hive.hwi.HWIContextListener > [javac] ServletContext sc = sce.getServletContext(); > [javac] ^ > [javac] > /project/narain/src/hbase-handler/src/java/org/apache/hadoop/hive/hwi/HWIContextListener.java:47: > cannot find symbol > [javac] symbol : class ServletContext > [javac] location: class org.apache.hadoop.hive.hwi.HWIContextListener > [javac] ServletContext sc = sce.getServletContext(); > [javac] ^ > [javac] > /project/narain/src/hbase-handler/src/java/org/apache/hadoop/hive/hwi/HWIServer.java:88: > package org.mortbay.util does not exist > [javac] } catch (org.mortbay.util.MultiException ex) { > [javac] ^ > [javac] Note: Some input files use or override a deprecated API. > [javac] Note: Recompile with -Xlint:deprecation for details. > [javac] Note: Some input files use unchecked or unsafe operations. > [javac] Note: Recompile with -Xlint:unchecked for details. > [javac] 8 errors > [javac] 8 warnings > > BUILD FAILED > /project/narain/src/build.xml:169: The following error occurred while > executing this line: > /project/narain/src/build.xml:108: The following error occurred while > executing this line: > /project/narain/src/build-common.xml:274: Compile failed; see the compiler > error output for details. > > > Please comment on what I shall do, as i have run out of ideas. > > regards, > Abhinav Narain >