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 2F4E39562 for ; Thu, 26 Apr 2012 09:51:59 +0000 (UTC) Received: (qmail 62674 invoked by uid 500); 26 Apr 2012 09:51:57 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 62549 invoked by uid 500); 26 Apr 2012 09:51:57 -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 62541 invoked by uid 99); 26 Apr 2012 09:51:57 -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:51:57 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of peter.vandenabeele.be@gmail.com designates 209.85.216.41 as permitted sender) Received: from [209.85.216.41] (HELO mail-qa0-f41.google.com) (209.85.216.41) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Apr 2012 09:51:50 +0000 Received: by qabg27 with SMTP id g27so2101869qab.14 for ; Thu, 26 Apr 2012 02:51:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; bh=+Q1kcxAc8ohLwkvhNykA0UNyw3PtbNT18qpgH22Y8rY=; b=U+HKoV2i7jIlzYLer8lcMrSJLBjT9YnDwwgElfUmShxzUBBC+4OJZ3VJiP5nfJezgW Rf0xyQUNTZ1nnEpmUKric3PRAAJeRs1q+jf2HwIrPSIbl7JydmdlkN2LEOyO0WK0tvnf Vy/390og0VkoYfHnS5NafootCw7xKocBjhmBPZm+CLlz821DH2wW7FTVujYIblEA9/le axyBkoOQEHPkEBe6UfWS9CgyAh0WgVOubLuibtvIuA9Y1EYz8gqu5sUdDCjrddEY5Wys duYlELs55ldc6lmzMn+HBJZ1jZjunOFIaCw1HLy/1OswWmUhyYjUXvv0yerBmSzrG9XV o5gA== MIME-Version: 1.0 Received: by 10.229.137.13 with SMTP id u13mr1323783qct.90.1335433889910; Thu, 26 Apr 2012 02:51:29 -0700 (PDT) Reply-To: peter@vandenabeele.com Sender: peter.vandenabeele.be@gmail.com Received: by 10.229.58.220 with HTTP; Thu, 26 Apr 2012 02:51:29 -0700 (PDT) In-Reply-To: References: Date: Thu, 26 Apr 2012 10:51:29 +0100 X-Google-Sender-Auth: cwhgmYFgsbFH9yjmjmk9_paP8zg Message-ID: Subject: Re: Exceptions with importtsv From: Peter Vandenabeele To: user@hbase.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Thu, Apr 26, 2012 at 10:40 AM, Sambit Tripathy wrot= e: > Slim, > > > That exception is gone now after adding guava jar. (I wonder why do we ne= ed > 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 > =C2=A0 =C2=A0 =C2=A0 =C2=A0at sun.reflect.NativeMethodAccessorImpl.invoke= 0(Native Method) > =C2=A0 =C2=A0 =C2=A0 =C2=A0at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java= :39) > =C2=A0 =C2=A0 =C2=A0 =C2=A0at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI= mpl.java:25) > =C2=A0 =C2=A0 =C2=A0 =C2=A0at java.lang.reflect.Method.invoke(Method.java= :597) > =C2=A0 =C2=A0 =C2=A0 =C2=A0at org.apache.hadoop.hbase.mapreduce.Driver.ma= in(Driver.java:51) > =C2=A0 =C2=A0 =C2=A0 =C2=A0at sun.reflect.NativeMethodAccessorImpl.invoke= 0(Native Method) > =C2=A0 =C2=A0 =C2=A0 =C2=A0at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java= :39) > =C2=A0 =C2=A0 =C2=A0 =C2=A0at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI= mpl.java:25) > =C2=A0 =C2=A0 =C2=A0 =C2=A0at java.lang.reflect.Method.invoke(Method.java= :597) > =C2=A0 =C2=A0 =C2=A0 =C2=A0at org.apache.hadoop.util.RunJar.main(RunJar.j= ava:156) > Caused by: java.lang.NoClassDefFoundError: > org/apache/zookeeper/KeeperException > =C2=A0 =C2=A0 =C2=A0 =C2=A0at > org.apache.hadoop.hbase.client.HConnectionManager.getConnection(HConnecti= onManager.java:186) > =C2=A0 =C2=A0 =C2=A0 =C2=A0at org.apache.hadoop.hbase.client.HTable.(HTable.java:194) > =C2=A0 =C2=A0 =C2=A0 =C2=A0at org.apache.hadoop.hbase.client.HTable.(HTable.java:171) > =C2=A0 =C2=A0 =C2=A0 =C2=A0at > org.apache.hadoop.hbase.mapreduce.ImportTsv.createSubmittableJob(ImportTs= v.java:220) > =C2=A0 =C2=A0 =C2=A0 =C2=A0at > org.apache.hadoop.hbase.mapreduce.ImportTsv.main(ImportTsv.java:312) > =C2=A0 =C2=A0 =C2=A0 =C2=A0at sun.reflect.NativeMethodAccessorImpl.invoke= 0(Native Method) > =C2=A0 =C2=A0 =C2=A0 =C2=A0at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java= :39) > =C2=A0 =C2=A0 =C2=A0 =C2=A0at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI= mpl.java:25) > =C2=A0 =C2=A0 =C2=A0 =C2=A0at java.lang.reflect.Method.invoke(Method.java= :597) > =C2=A0 =C2=A0 =C2=A0 =C2=A0at > org.apache.hadoop.util.ProgramDriver$ProgramDescription.invoke(ProgramDri= ver.java:68) > =C2=A0 =C2=A0 =C2=A0 =C2=A0at > org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:139) > =C2=A0 =C2=A0 =C2=A0 =C2=A0... 10 more > Caused by: java.lang.ClassNotFoundException: > org.apache.zookeeper.KeeperException > =C2=A0 =C2=A0 =C2=A0 =C2=A0at java.net.URLClassLoader$1.run(URLClassLoade= r.java:202) > =C2=A0 =C2=A0 =C2=A0 =C2=A0at java.security.AccessController.doPrivileged= (Native Method) > =C2=A0 =C2=A0 =C2=A0 =C2=A0at java.net.URLClassLoader.findClass(URLClassL= oader.java:190) > =C2=A0 =C2=A0 =C2=A0 =C2=A0at java.lang.ClassLoader.loadClass(ClassLoader= .java:306) > =C2=A0 =C2=A0 =C2=A0 =C2=A0at java.lang.ClassLoader.loadClass(ClassLoader= .java:247) > =C2=A0 =C2=A0 =C2=A0 =C2=A0... 21 more > > > Any idea? Looks like some issues with ZooKeeper, but I checked the logs a= nd > zookeeper is just fine. This exception message gets printed in the consol= e. 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 grep for the missing class name (browsing the source code for the class definiti= on would be the proper way, I presume): peterv@e6500:/usr/lib/hbase/lib$ rgrep KeeperException * Binary file zookeeper.jar matches HTH, Peter