on doing ant package again, I got the follwing errors. 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. Total time: 21 minutes 13 seconds What shall I do if there are errors in code from before itself On Fri, Feb 4, 2011 at 1:28 PM, abhinav narain <abhinavnarai...@gmail.com>wrote: > I have hive 0.6.0 and hadoop 0.20.2 installed. > When I compiled the source in the hive folder i got the following error : > ------- > [ivy:retrieve] > [ivy:retrieve] :: problems summary :: > [ivy:retrieve] :::: WARNINGS > [ivy:retrieve] Host repository.apache.org not found. url= > https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.17.2.1/core-0.17.2.1.pom > [ivy:retrieve] Host repository.apache.org not found. url= > https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.17.2.1/hadoop-0.17.2.1.tar.gz > [ivy:retrieve] Host repository.apache.org not found. url= > https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.18.3/core-0.18.3.pom > [ivy:retrieve] Host repository.apache.org not found. url= > https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.18.3/hadoop-0.18.3.tar.gz > [ivy:retrieve] Host repository.apache.org not found. url= > https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.19.0/core-0.19.0.pom > [ivy:retrieve] Host repository.apache.org not found. url= > https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.19.0/hadoop-0.19.0.tar.gz > [ivy:retrieve] Host repository.apache.org not found. url= > https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.20.0/core-0.20.0.pom > [ivy:retrieve] Host repository.apache.org not found. url= > https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.20.0/hadoop-0.20.0.tar.gz > [ivy:retrieve] [FAILED ] > hadoop#core;0.18.3!hadoop.tar.gz(source): Downloaded file size doesn't match > expected Content Length for > http://mirror.facebook.net/facebook/hive-deps/hadoop/core/hadoop-0.18.3/hadoop-0.18.3.tar.gz. > Please retry. (834406ms) > [ivy:retrieve] [FAILED ] > hadoop#core;0.18.3!hadoop.tar.gz(source): (0ms) > [ivy:retrieve] ==== hadoop-source: tried > [ivy:retrieve] > http://mirror.facebook.net/facebook/hive-deps/hadoop/core/hadoop-0.18.3/hadoop-0.18.3.tar.gz > [ivy:retrieve] ==== apache-snapshot: tried > [ivy:retrieve] > https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.18.3/hadoop-0.18.3.tar.gz > [ivy:retrieve] ==== maven2: tried > [ivy:retrieve] > http://repo1.maven.org/maven2/hadoop/core/0.18.3/core-0.18.3.tar.gz > [ivy:retrieve] ==== datanucleus-repo: tried > [ivy:retrieve] > http://www.datanucleus.org/downloads/maven2/hadoop/core/0.18.3/core-0.18.3.tar.gz > [ivy:retrieve] :::::::::::::::::::::::::::::::::::::::::::::: > [ivy:retrieve] :: FAILED DOWNLOADS :: > [ivy:retrieve] :: ^ see resolution messages for details ^ :: > [ivy:retrieve] :::::::::::::::::::::::::::::::::::::::::::::: > [ivy:retrieve] :: hadoop#core;0.18.3!hadoop.tar.gz(source) > [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/shims/build.xml:56: 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 > > Total time: 66 minutes 8 seconds > > > > Why is it looking for hadoop 0.18.3 ? is it that i need to install > different version of hive ? 0.7.0 ... > or i need to take source code from development trunk and compile that ? > > > regards, > Abhinav Narain >