Return-Path: Delivered-To: apmail-hive-user-archive@www.apache.org Received: (qmail 25013 invoked from network); 3 Jan 2011 17:30:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Jan 2011 17:30:56 -0000 Received: (qmail 66628 invoked by uid 500); 3 Jan 2011 17:30:56 -0000 Delivered-To: apmail-hive-user-archive@hive.apache.org Received: (qmail 66493 invoked by uid 500); 3 Jan 2011 17:30:56 -0000 Mailing-List: contact user-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hive.apache.org Delivered-To: mailing list user@hive.apache.org Received: (qmail 66485 invoked by uid 99); 3 Jan 2011 17:30:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Jan 2011 17:30:56 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of kiteraddict@googlemail.com designates 209.85.161.48 as permitted sender) Received: from [209.85.161.48] (HELO mail-fx0-f48.google.com) (209.85.161.48) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Jan 2011 17:30:51 +0000 Received: by fxm2 with SMTP id 2so12848559fxm.35 for ; Mon, 03 Jan 2011 09:30:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=UQi7YDzq1ziFNkW7PrRpLgkPsIQAmKzH2QxIsVlFJN4=; b=r5Lc5qygqoOt6SSbaicDNmQqoZEIPAH2D6Lq6msuuqlj77zSRmHJAMjmFS7zR6FPTb 2Od1hdmHRCQX6sXeMr1hXCv3nluXq0RQlJ706nWVYl10daZMeQ2hNO4n2n/KAXpVOI/J D+53O7+FL4O8j7FIH2SzApHh6lhSqZiOn1QEU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=itqssYlienAkzzm+UBX3cjR+mHWjYqXXi90UHRV3naKWAawB38WRqbtz9loFYBUPQ9 EW2VJbvOT0zBhtY0CyPj6oFk9bRYrCJ3uCuasfMUKp2IssNkic6G6kstjonVlA4IMAqZ iHApBb5FL2WIbhGMRmDd8OOgwOXJqPQ/GikUg= MIME-Version: 1.0 Received: by 10.223.78.205 with SMTP id m13mr147687fak.79.1294075830188; Mon, 03 Jan 2011 09:30:30 -0800 (PST) Received: by 10.223.101.136 with HTTP; Mon, 3 Jan 2011 09:30:30 -0800 (PST) In-Reply-To: References: Date: Mon, 3 Jan 2011 18:30:30 +0100 Message-ID: Subject: Re: select count(1) From: kiteraddict To: user@hive.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable To specify things: I run the embedded mode with the url: "jdbc:hive://". If I take "jdbc:hive://localhost:10000/default" with the hiveserver mode, the error will not occur and everything's fine. But I need multithreated access to my data. Malte 2011/1/3 kiteraddict : > Hi Dilip, > Unfortunately, not. No special characters. Tried a symlink as well... > The Path seems ok, and the strange is: select count(1) from the cli > woks. > I get the same error in Eclipse and in Netbeans (OSX 10.6.4). However > thank you for your tip! > Malte > > 2011/1/3 Dilip Joseph : >> Does the full path to your hadoop installation contain a '+' character? = =A0I >> ran into a similar problem where a bug in the DataNucleus libraries used= by >> hive prevented it from constructing the full path to your hadoop >> installation, if the path contained a '+'. =A0The solution was to remove= the >> '+' from the path by renaming the Hadoop installation directory, or by >> creating a symlink to it. >> Dilip >> >> On Mon, Jan 3, 2011 at 4:37 AM, Malte Ehmke >> wrote: >>> >>> Hi there, >>> >>> I'am trying the jdbc example >>> >>> http://wiki.apache.org/hadoop/Hive/HiveClient#JDBC >>> >>> and getting that for the select count(1) query >>> >>> 11/01/03 12:34:35 INFO exec.MapRedTask: Generating plan file >>> /tmp/hive-malte/hive_2011-01-03_12-34-35_503_9118509121830839307/plan45= 25595563698858213.xml >>> >>> 11/01/03 12:34:35 INFO exec.MapRedTask: Executing: null/bin/hadoop jar >>> /Applications/java/hive-0.6.0/lib/hive-exec-0.6.0.jar [...] >>> >>> java.io.IOException: Cannot run program "null/bin/hadoop": error=3D2, N= o >>> such file or directory >>> >>> at java.lang.ProcessBuilder.start(ProcessBuilder.java:460) >>> >>> at java.lang.Runtime.exec(Runtime.java:593) >>> >>> at java.lang.Runtime.exec(Runtime.java:431) >>> >>> at java.lang.Runtime.exec(Runtime.java:369) >>> >>> at org.apache.hadoop.hive.ql.exec.MapRedTask.execute(MapRedTask.java:17= 6) >>> >>> at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:107) >>> >>> at >>> org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java= :55) >>> >>> at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:633) >>> >>> at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:506) >>> >>> at org.apache.hadoop.hive.ql.Driver.run(Driver.java:384) >>> >>> at >>> org.apache.hadoop.hive.service.HiveServer$HiveServerHandler.execute(Hiv= eServer.java:114) >>> >>> at >>> org.apache.hadoop.hive.jdbc.HiveStatement.executeQuery(HiveStatement.ja= va:195) >>> >>> at de.codiacs.hive.HiveServiceTest.main(HiveServiceTest.java:64) >>> >>> Caused by: java.io.IOException: error=3D2, No such file or directory >>> >>> at java.lang.UNIXProcess.forkAndExec(Native Method) >>> >>> at java.lang.UNIXProcess.(UNIXProcess.java:53) >>> >>> at java.lang.ProcessImpl.start(ProcessImpl.java:91) >>> >>> at java.lang.ProcessBuilder.start(ProcessBuilder.java:453) >>> >>> ... 12 more >>> >>> 11/01/03 12:34:35 ERROR exec.MapRedTask: Exception: Cannot run program >>> "null/bin/hadoop": error=3D2, No such file or directory >>> >>> FAILED: Execution Error, return code 1 from >>> org.apache.hadoop.hive.ql.exec.MapRedTask >>> >>> 11/01/03 12:34:35 ERROR ql.Driver: FAILED: Execution Error, return code= 1 >>> from org.apache.hadoop.hive.ql.exec.MapRedTask >>> >>> Exception in thread "main" java.sql.SQLException: Query returned non-ze= ro >>> code: 9, cause: FAILED: Execution Error, return code 1 from >>> org.apache.hadoop.hive.ql.exec.MapRedTask >>> >>> at >>> org.apache.hadoop.hive.jdbc.HiveStatement.executeQuery(HiveStatement.ja= va:197) >>> >>> Creating and inserting works. >>> >>> Does anybody have a solution for that problem? >>> >>> Thanks >> >> >> -- >> _________________________________________ >> Dilip Antony Joseph >> http://csgrad.blogspot.com >> http://www.marydilip.info >> >