Return-Path: X-Original-To: apmail-hadoop-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A17ADD970 for ; Wed, 15 Aug 2012 08:01:49 +0000 (UTC) Received: (qmail 57339 invoked by uid 500); 15 Aug 2012 08:01:44 -0000 Delivered-To: apmail-hadoop-user-archive@hadoop.apache.org Received: (qmail 57113 invoked by uid 500); 15 Aug 2012 08:01:43 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 57088 invoked by uid 99); 15 Aug 2012 08:01:42 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Aug 2012 08:01:42 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FSL_RCVD_USER,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of haavard.kongsgaard@gmail.com designates 209.85.212.182 as permitted sender) Received: from [209.85.212.182] (HELO mail-wi0-f182.google.com) (209.85.212.182) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Aug 2012 08:01:36 +0000 Received: by wibhq12 with SMTP id hq12so1002319wib.11 for ; Wed, 15 Aug 2012 01:01:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=Joy5pxB8Xs7vSuO/JSsjOzOG4NNBN/TZSsXQd+63Nwk=; b=iaFTPxpgqXal3FKGTabLpZgIYUpVT6dZeuo6S0kLti/XOL8NWck3VyDCfmGJ4PoXcN 4wA2h9hTjgnNgv/vcvTP9bwn0sF+BVuA0KNxBTq/KYiRMLNXGK3/MnfMuAItaqxV0y7C WCK8m1cFR0SCt2YiegtifakaFlqmiViqzbULejdd0pqxaYMi+qP0uvqEphDhV4zyh/Hm XNYFnDs5OdI7YM3olbOTUBpKnuBwzAJdQsQJ2sFfu3GBslHNCi2eJIRNczG2EIwwV18l kuzC9y57Y23Pes0AM+st8MAaRizWyrORWKc7oZnV50RFhwFdomzSF8lQzCa02MB87h+F +05w== MIME-Version: 1.0 Received: by 10.180.95.193 with SMTP id dm1mr35017858wib.10.1345017676683; Wed, 15 Aug 2012 01:01:16 -0700 (PDT) Received: by 10.194.40.7 with HTTP; Wed, 15 Aug 2012 01:01:16 -0700 (PDT) In-Reply-To: References: Date: Wed, 15 Aug 2012 10:01:16 +0200 Message-ID: Subject: Re: pipes(pydoop) and hbase classpath From: =?ISO-8859-1?Q?H=E5vard_Wahl_Kongsg=E5rd?= To: user@hadoop.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi, needed to add this as well hbase.mapred.tablecolumns col_fam:name -H=E5vard On Wed, Aug 15, 2012 at 9:42 AM, H=E5vard Wahl Kongsg=E5rd wrote: > Hi, my job config is > > > mapred.input.format.class > org.apache.hadoop.hbase.mapred.TableInputFormat > > > > hadoop.pipes.java.recordreader > true > > > > Exception in thread "main" java.lang.RuntimeException: Error in > configuring object > at org.apache.hadoop.util.ReflectionUtils.setJobConf(ReflectionUt= ils.java:93) > at org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils= .java:64) > at org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionU= tils.java:117) > at org.apache.hadoop.mapred.JobConf.getInputFormat(JobConf.java:5= 96) > at org.apache.hadoop.mapred.JobClient.writeOldSplits(JobClient.ja= va:977) > at org.apache.hadoop.mapred.JobClient.writeSplits(JobClient.java:= 969) > at org.apache.hadoop.mapred.JobClient.access$500(JobClient.java:1= 70) > at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:880) > at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:833) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:396) > at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroup= Information.java:1177) > at org.apache.hadoop.mapred.JobClient.submitJobInternal(JobClient= .java:833) > at org.apache.hadoop.mapred.JobClient.submitJob(JobClient.java:80= 7) > at org.apache.hadoop.mapred.JobClient.runJob(JobClient.java:1248) > at org.apache.hadoop.mapred.pipes.Submitter.runJob(Submitter.java= :248) > at org.apache.hadoop.mapred.pipes.Submitter.run(Submitter.java:47= 9) > at org.apache.hadoop.mapred.pipes.Submitter.main(Submitter.java:4= 94) > Caused by: java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess= orImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth= odAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at org.apache.hadoop.util.ReflectionUtils.setJobConf(ReflectionUt= ils.java:88) > ... 17 more > Caused by: java.lang.NullPointerException > at org.apache.hadoop.hbase.mapred.TableInputFormat.configure(Tabl= eInputFormat.java:51) > > > should I included the col names? according to the api it's deprecated? > http://hbase.apache.org/apidocs/org/apache/hadoop/hbase/mapred/TableInput= Format.html > > > -H=E5vard > > > On Tue, Aug 14, 2012 at 11:17 PM, Harsh J wrote: >> Hi, >> >> Per: >> >>> org.apache.hadoop.hbase.mapreduce.TableInputFormat not >> org.apache.hadoop.mapred.InputFormat >> >> Pydoop seems to be expecting you to pass it an old API class for >> InputFormat/etc. but you've passed in the newer class. I am unsure >> what part of your code exactly may be at fault since I do not have >> access to it, but you probably want to use the deprecated >> org.apache.hadoop.hbase.mapred.* package classes such as >> org.apache.hadoop.hbase.mapred.TableInputFormat, and not the >> org.apache.hadoop.hbase.mapreduce.* classes, as you are using at the >> moment. >> >> HTH! >> >> On Wed, Aug 15, 2012 at 2:39 AM, H=E5vard Wahl Kongsg=E5rd >> wrote: >>> Hi, I'am trying to read hbase key-values with pipes(pydoop). As hadoop >>> is unable to find the hbase jar files. I get >>> >>> Exception in thread "main" java.lang.RuntimeException: >>> java.lang.RuntimeException: class >>> org.apache.hadoop.hbase.mapreduce.TableInputFormat not >>> org.apache.hadoop.mapred.InputFormat >>> >>> have added export >>> HADOOP_CLASSPATH=3D/usr/lib/hbase/hbase-0.90.6-cdh3u4.jar to my >>> hadoop-env.sh >>> >>> According to the doc from cloudera, >>> https://ccp.cloudera.com/display/CDHDOC/HBase+Installation#HBaseInstall= ation-UsingMapReducewithHBase >>> TableMapReduceUtil.addDependencyJars(job); can be used as an >>> alternative. But is that possible with pipes? >>> >>> -H=E5vard >> >> >> >> -- >> Harsh J > > > > -- > H=E5vard Wahl Kongsg=E5rd > Faculty of Medicine & > Department of Mathematical Sciences > NTNU > > http://havard.security-review.net/