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 B2F0B9007 for ; Wed, 15 Feb 2012 19:55:38 +0000 (UTC) Received: (qmail 69212 invoked by uid 500); 15 Feb 2012 19:55:38 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 69175 invoked by uid 500); 15 Feb 2012 19:55:38 -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 Delivered-To: moderator for dev@hive.apache.org Received: (qmail 54174 invoked by uid 99); 15 Feb 2012 19:53:10 -0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of aaron.sun82@gmail.com designates 209.85.220.176 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=qZKV0bsgXTg15MWO+WLlyK483cX8Eu8mjLCSut3g3B0=; b=jfSLwbeDtrOHe7lUHw1ZYErPKpk2HPVuTIlDojGedF1iDzruIt71sYQ6puba/H8tw2 txj0jNSkXEzZHKRp85NyzrWTRxUDRkNxEnqqXAWrKGy1rsiWXZBgdHw0rdY6TBc4AcuT 46wG5HzYMu8l9CijdevBY666gthHln/a2gpDc= MIME-Version: 1.0 Date: Wed, 15 Feb 2012 11:52:42 -0800 Message-ID: Subject: Running hive in eclipse From: Aaron Sun To: dev@hive.apache.org Content-Type: multipart/alternative; boundary=bcaec5015d5102576a04b9060e3d --bcaec5015d5102576a04b9060e3d Content-Type: text/plain; charset=UTF-8 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 fb303 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 Hive builtin functions at org.apache.hadoop.hive.ql.session.SessionState.(SessionState.java:190) 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:122) 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.registerFunctionsFromPluginJar(FunctionRegistry.java:1194) at org.apache.hadoop.hive.ql.session.SessionState.(SessionState.java:187) ... 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 for builtins I then manually changed the build.xml for "compile" part as follows and rebuilt the project: 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 the problem and how I should run cli correctly in eclipse? Thanks Aaron --bcaec5015d5102576a04b9060e3d--