Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1B0B79768 for ; Wed, 15 Feb 2012 21:11:08 +0000 (UTC) Received: (qmail 9041 invoked by uid 500); 15 Feb 2012 21:11:07 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 9006 invoked by uid 500); 15 Feb 2012 21:11:07 -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 8995 invoked by uid 99); 15 Feb 2012 21:11:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Feb 2012 21:11:07 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of alexisdct@gmail.com designates 209.85.210.176 as permitted sender) Received: from [209.85.210.176] (HELO mail-iy0-f176.google.com) (209.85.210.176) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Feb 2012 21:11:01 +0000 Received: by iagz35 with SMTP id z35so2673654iag.35 for ; Wed, 15 Feb 2012 13:10:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=nHHHOpqAbX1CvtcKGNkx4QORwgJiFfCNf2G4Al1BUFM=; b=Ch54K95Ujwj7NCSL8zqDBWM2UN/6uRODn+qzyl4rEyds1kKz3izlazWB3WOHbdbD0K 1Gbf9IqxVhlRFXzP2FYkoUZ7lD57g7YJkllH+tqPpHWU1t3YrnotCJx0s9yrvCcgq6AQ jj+6qAn9zihGL/Wm1KBIY4okAVbF/E3Q7wljY= MIME-Version: 1.0 Received: by 10.42.177.133 with SMTP id bi5mr40827838icb.40.1329340240542; Wed, 15 Feb 2012 13:10:40 -0800 (PST) Received: by 10.50.168.104 with HTTP; Wed, 15 Feb 2012 13:10:40 -0800 (PST) In-Reply-To: References: Date: Wed, 15 Feb 2012 15:10:40 -0600 Message-ID: Subject: Re: Running hive in eclipse From: Alexis De La Cruz Toledo To: dev@hive.apache.org Content-Type: multipart/alternative; boundary=90e6ba6e86dcd2ba0504b90724ef --90e6ba6e86dcd2ba0504b90724ef Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I has the same problem. Can anyone help us? El 15 de febrero de 2012 13:52, Aaron Sun escribi= =F3: > Hi Team, > > I am trying to run and debug hive in eclipse. I checked out release-0.8.0 > 1215012 from the SVN repository and built the project with thrift and fb3= 03 > library installed correctly. The building process returned "Build > Successfully". > > Then I tried to launch the cli by running CliDriver.java as a Java > Application, and it returned errors as > > """ > Exception in thread "main" java.lang.RuntimeException: Failed to load Hiv= e > builtin functions > at > > org.apache.hadoop.hive.ql.session.SessionState.(SessionState.java:1= 90) > at > org.apache.hadoop.hive.cli.CliSessionState.(CliSessionState.java:81= ) > at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:576) > at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:554) > Caused by: java.util.zip.ZipException: error in opening zip file > at java.util.zip.ZipFile.open(Native Method) > at java.util.zip.ZipFile.(ZipFile.java:131) > at java.util.jar.JarFile.(JarFile.java:150) > at java.util.jar.JarFile.(JarFile.java:87) > at sun.net.www.protocol.jar.URLJarFile.(URLJarFile.java:90) > at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:66) > at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:71) > at > > sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:1= 22) > at > > sun.net.www.protocol.jar.JarURLConnection.getInputStream(JarURLConnection= .java:150) > at java.net.URL.openStream(URL.java:1029) > at > > org.apache.hadoop.hive.ql.exec.FunctionRegistry.registerFunctionsFromPlug= inJar(FunctionRegistry.java:1194) > at > > org.apache.hadoop.hive.ql.session.SessionState.(SessionState.java:1= 87) > ... 3 more > """ > I looked over the build.xml under ./builtins directory, and noticed that > the compile and jar targets are both commented, and no jar is generated f= or > builtins > > > > > > > > > > > > I then manually changed the build.xml for "compile" part as follows and > rebuilt the project: > > > encoding=3D"${build.encoding}" > srcdir=3D"${src.dir}" > includes=3D"**/*.java" > destdir=3D"${build.classes}" > debug=3D"${javac.debug}" > deprecation=3D"${javac.deprecation}" > includeantruntime=3D"false"> > > > > > > Now the 'hive-buitins-0.8.0-SNAPSHOT.jar' is under the .build/buitins > directory. However, I am still getting the same error message as "Failed = to > load Hive builtin functions". Could someone kindly let me know what is th= e > problem and how I should run cli correctly in eclipse? > > Thanks > Aaron > --=20 Ing. Alexis de la Cruz Toledo. *Av. Instituto Polit=E9cnico Nacional No. 2508 Col. San Pedro Zacatenco. M= =E9xico, D.F, 07360 * *CINVESTAV, DF.* --90e6ba6e86dcd2ba0504b90724ef--