Return-Path: Delivered-To: apmail-hive-dev-archive@www.apache.org Received: (qmail 10977 invoked from network); 4 Feb 2011 09:51:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Feb 2011 09:51:37 -0000 Received: (qmail 81523 invoked by uid 500); 4 Feb 2011 09:51:37 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 81276 invoked by uid 500); 4 Feb 2011 09:51:34 -0000 Mailing-List: contact dev-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list dev@hive.apache.org Received: (qmail 81260 invoked by uid 99); 4 Feb 2011 09:51:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Feb 2011 09:51:33 +0000 X-ASF-Spam-Status: No, hits=3.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of abhinavnarain10@gmail.com designates 209.85.214.176 as permitted sender) Received: from [209.85.214.176] (HELO mail-iw0-f176.google.com) (209.85.214.176) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Feb 2011 09:51:26 +0000 Received: by iwn2 with SMTP id 2so2124653iwn.35 for ; Fri, 04 Feb 2011 01:51:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=5ZxYwtVbh0zlOu3YCsJy9rmu/NhRDbqI6hDVG822W6k=; b=AUz4mV/STvaOsX52lwUSZEQuMROSt1JN/F5kWWcHDI/SQq2dVENOWX4PvZ+MbhR8Wb MgnVds5YhhP0+sYqbKqWDh/E0eNxhTaevYRf1kh2mrrys39j3OGQrdma8O87B3cjNXcM Y6xl/GW1Hf/e233N4b9JctqxHl4Iuqge8TRrE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=a/Cc3CP0n4meFAQSE2zP9hHa3yhGdGE7LS6wXcSSPAaBwUmn5qIXYPILS+dZlBn15r uzoBlQpE7VeLEt+uPh1ujDQNEr3RiTTpmHpKrvAHxTEhaWHpZpkRztHxSmlHq6J+3KuO v/A3f6PzdXxHL8lEt9cIapxYMbtWaD45W2VPE= MIME-Version: 1.0 Received: by 10.42.172.130 with SMTP id n2mr23309icz.103.1296813063640; Fri, 04 Feb 2011 01:51:03 -0800 (PST) Received: by 10.231.13.194 with HTTP; Fri, 4 Feb 2011 01:51:03 -0800 (PST) In-Reply-To: References: Date: Fri, 4 Feb 2011 15:21:03 +0530 Message-ID: Subject: Re: Compilation error in hive From: abhinav narain To: dev@hive.apache.org Content-Type: multipart/alternative; boundary=90e6ba6e8672ff9661049b71d122 X-Virus-Checked: Checked by ClamAV on apache.org --90e6ba6e8672ff9661049b71d122 Content-Type: text/plain; charset=ISO-8859-1 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 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 > --90e6ba6e8672ff9661049b71d122--