Return-Path: X-Original-To: apmail-hbase-user-archive@www.apache.org Delivered-To: apmail-hbase-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C4AC09618 for ; Thu, 26 Apr 2012 09:56:56 +0000 (UTC) Received: (qmail 74919 invoked by uid 500); 26 Apr 2012 09:56:55 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 74775 invoked by uid 500); 26 Apr 2012 09:56:54 -0000 Mailing-List: contact user-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hbase.apache.org Delivered-To: mailing list user@hbase.apache.org Received: (qmail 74757 invoked by uid 99); 26 Apr 2012 09:56:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Apr 2012 09:56:54 +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 slimtbourbi@gmail.com designates 209.85.160.41 as permitted sender) Received: from [209.85.160.41] (HELO mail-pb0-f41.google.com) (209.85.160.41) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Apr 2012 09:56:48 +0000 Received: by pbcup15 with SMTP id up15so3177943pbc.14 for ; Thu, 26 Apr 2012 02:56:28 -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; bh=w1eNE4LizUmsm7kMdb8ToJwXyhVV3p0lMTgpDwoYUrs=; b=ycH2rXllUwdqRyFVrsoozUTfSEHRq0WozK0U4ew+Ght1VNU3bwtIPDW0zgHk1O9tGR 1xs+wBq6+Re3sbXiA3l3l49TGozdaf9GQWyxmgYulqN8msN7u8yxVaIB4rYH4X0H3KAl SnY7xQk3jF52Nj8t8Y5JY8Soq1GG/wKrQF80EIPLxIB63RyGdQg4tnNvhU4xG7UVI19z fpjfno1+wUxcOwY+xpEpxcGaHrHmRJyRjR3sQb9cHi7KXdWBA3TUi755Z7GsQuygo2w2 Okzn+e8Kcr3rafAgyKPHSyKyHW0kW+bSuC2SGWMPzwqCvZGdSICLmMiE2YRtPVMBS4jl M9+g== MIME-Version: 1.0 Received: by 10.68.204.103 with SMTP id kx7mr14631119pbc.147.1335434188520; Thu, 26 Apr 2012 02:56:28 -0700 (PDT) Received: by 10.68.36.232 with HTTP; Thu, 26 Apr 2012 02:56:28 -0700 (PDT) In-Reply-To: References: Date: Thu, 26 Apr 2012 11:56:28 +0200 Message-ID: Subject: Re: Exceptions with importtsv From: slim tebourbi To: user@hbase.apache.org, peter@vandenabeele.com Content-Type: multipart/alternative; boundary=047d7b10d1856d7c2e04be9200e2 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b10d1856d7c2e04be9200e2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable As you use a hbase client in the importer you should have the zookeeper dependency. So add it to the job classpath. I think that you should also add the hbase/zookeeper confs into your classpath. For your question on guava, it's used in the parser (the guava splitter). Slim. Le 26 avril 2012 11:51, Peter Vandenabeele a =E9cr= it : > On Thu, Apr 26, 2012 at 10:40 AM, Sambit Tripathy > wrote: > > Slim, > > > > > > That exception is gone now after adding guava jar. (I wonder why do we > need > > a Google Data Java Client !!!) > > > > Well there is something more, I am getting the following exception now. > > > > Exception in thread "main" java.lang.reflect.InvocationTargetException > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java= :39) > > at > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI= mpl.java:25) > > at java.lang.reflect.Method.invoke(Method.java:597) > > at org.apache.hadoop.hbase.mapreduce.Driver.main(Driver.java:51) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java= :39) > > at > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI= mpl.java:25) > > at java.lang.reflect.Method.invoke(Method.java:597) > > at org.apache.hadoop.util.RunJar.main(RunJar.java:156) > > Caused by: java.lang.NoClassDefFoundError: > > org/apache/zookeeper/KeeperException > > at > > > org.apache.hadoop.hbase.client.HConnectionManager.getConnection(HConnecti= onManager.java:186) > > at org.apache.hadoop.hbase.client.HTable.(HTable.java:194) > > at org.apache.hadoop.hbase.client.HTable.(HTable.java:171) > > at > > > org.apache.hadoop.hbase.mapreduce.ImportTsv.createSubmittableJob(ImportTs= v.java:220) > > at > > org.apache.hadoop.hbase.mapreduce.ImportTsv.main(ImportTsv.java:312) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java= :39) > > at > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI= mpl.java:25) > > at java.lang.reflect.Method.invoke(Method.java:597) > > at > > > org.apache.hadoop.util.ProgramDriver$ProgramDescription.invoke(ProgramDri= ver.java:68) > > at > > org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:139) > > ... 10 more > > Caused by: java.lang.ClassNotFoundException: > > org.apache.zookeeper.KeeperException > > at java.net.URLClassLoader$1.run(URLClassLoader.java:202) > > at java.security.AccessController.doPrivileged(Native Method) > > at java.net.URLClassLoader.findClass(URLClassLoader.java:190) > > at java.lang.ClassLoader.loadClass(ClassLoader.java:306) > > at java.lang.ClassLoader.loadClass(ClassLoader.java:247) > > ... 21 more > > > > > > Any idea? Looks like some issues with ZooKeeper, but I checked the logs > and > > zookeeper is just fine. This exception message gets printed in the > console. > > I remember seeing that error when setting up hive. The solution there > was to include /usr/lib/hive/lib/zookeeper-3.3.1.jar. > > In this case, you probably need to include /usr/lib/hbase/zookeeper.jar > > One primitive way I found to resolve these missing jar problems is to gre= p > for the missing class name (browsing the source code for the class > definition > would be the proper way, I presume): > > peterv@e6500:/usr/lib/hbase/lib$ rgrep KeeperException * > Binary file zookeeper.jar matches > > HTH, > > Peter > --047d7b10d1856d7c2e04be9200e2--