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 C8C5E109F9 for ; Mon, 25 Nov 2013 09:08:02 +0000 (UTC) Received: (qmail 26524 invoked by uid 500); 25 Nov 2013 09:07:55 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 26473 invoked by uid 500); 25 Nov 2013 09:07:51 -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 26465 invoked by uid 99); 25 Nov 2013 09:07:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Nov 2013 09:07:51 +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 silvio.digregorio@gmail.com designates 209.85.223.182 as permitted sender) Received: from [209.85.223.182] (HELO mail-ie0-f182.google.com) (209.85.223.182) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Nov 2013 09:07:46 +0000 Received: by mail-ie0-f182.google.com with SMTP id as1so6402828iec.27 for ; Mon, 25 Nov 2013 01:07:24 -0800 (PST) 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=zHX7ZaIzykO5IwDiAZQVOqsWTMydjG0mnCGjOgSQ7pM=; b=LETFi7pBH92xqW3JFhSalEO6/IMHxpBHOMmUho3Wk8MEp+FcUscNfIDpUNtpf3masF jj10Rb1sXPpJJcISmh0KrU0p0iuhZqpHcHXQDSg+lKI9Sa72nx8vCwcskFogcCJJW/G9 RjPd0ipp2zz9N3UTABwEH1c9T+iXVDLIeDUDxShoeADCyw4KEulwUS6FcIILkJCvCkZy +Wub7wBY9mF/rfTTiqXxRLHg0JXbKcV1ekUQxL1/NUluSSKCMXEZabyGQOcgcLipHf2+ 91sWq0vdaytn24tg4JUINzzSMmIIf3v4lF2gMirw4z0ukJ1QIq33arujjNa/ENukXTnB 37iw== MIME-Version: 1.0 X-Received: by 10.42.113.66 with SMTP id b2mr12352874icq.21.1385370444705; Mon, 25 Nov 2013 01:07:24 -0800 (PST) Received: by 10.64.239.226 with HTTP; Mon, 25 Nov 2013 01:07:24 -0800 (PST) In-Reply-To: References: Date: Mon, 25 Nov 2013 10:07:24 +0100 Message-ID: Subject: Re: example of hbase definitive guide From: Silvio Di gregorio To: user@hbase.apache.org Content-Type: multipart/alternative; boundary=001a11c3ef343d57b404ebfcb123 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c3ef343d57b404ebfcb123 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable also i have tried to execute the example in standalone mode, i have downloaded the hbase-0.94.13.tar.gz, and after i have launched java -cp hbase-trai.jar:hbase/hbase-0.94.13 client.PutWriteBufferExample as result i have had: Exception in thread "main" java.lang.NoClassDefFoundError: org.apache.hadoop.hbase.HBaseConfiguration at client.PutWriteBufferExample.main(PutWriteBufferExample.java:18) 2013/11/25 Silvio Di gregorio > Exception in thread "main" java.lang.NoClassDefFoundError: > org.apache.hadoop.hbase.HBaseConfiguration > at client.PutWriteBufferExample.main(PutWriteBufferExample.java:18) > > > > 2013/11/25 Haosong Huang > >> I think the structure of your hbase directory may be have some problem. >> Try >> the command below, I think you would get a different error message: >> >> java -cp >> hbase-trai.jar:/opt/cloudera/parcels/CDH-4.3.0-1.cdh4.3.0.p0.22/lib/hbas= e/hbase.jar >> client.PutWriteBufferExample >> >> >> >> On Mon, Nov 25, 2013 at 3:47 PM, Silvio Di gregorio < >> silvio.digregorio@gmail.com> wrote: >> >> > Good morning, >> > the "grep" result is: >> > /opt/cloudera/parcels/CDH-4.3.0-1.cdh4.3.0.p0.22/lib/hbase/hbase.jar >> > matches, >> > hbase.jar is a link to hbase-0.94.6-cdh4.3.0-security.jar. >> > >> > >> > 2013/11/23 Haosong Huang >> > >> > > Execute "grep 'org.apache.hadoop.hbase.HBaseConfiguration' >> /opt/cloudera/ >> > > parcels/CDH-4.3.0-1.cdh4.3.0.p0.22/*.jar " and post the result to th= is >> > > email. >> > > >> > > On Fri, Nov 22, 2013 at 8:29 PM, Silvio Di gregorio < >> > > silvio.digregorio@gmail.com> wrote: >> > > >> > > > the same error: >> > > > Exception in thread "main" java.lang.NoClassDefFoundError: >> > > > org.apache.hadoop.hbase.HBaseConfiguration >> > > > at >> client.PutWriteBufferExample.main(PutWriteBufferExample.java:18) >> > > > >> > > > i believed that in *hadoop jar hbase-trai.jar >> > > client.PutWriteBufferExample >> > > > -libjars `hbase classpath` *Command >> > > > >> > > > * - libjars `hbase classpath` - would provide all hbase jara and = - >> > > hadoop >> > > > jar - all hadoop jar* >> > > > >> > > > >> > > > >> > > > 2013/11/22 Haosong Huang >> > > > >> > > > > Make sure you are add all dependent jars to classpath correctly. >> If >> > you >> > > > > still failed after execute the command above, post the error >> message >> > to >> > > > > this email please. :-) >> > > > > >> > > > > On Fri, Nov 22, 2013 at 7:53 PM, Haosong Huang < >> haosdent@gmail.com> >> > > > wrote: >> > > > > >> > > > > > The error log looks like you don't add the hbase jar correctly= . >> Try >> > > the >> > > > > > commond below: >> > > > > > >> > > > > > java -cp >> hbase-trai.jar:/opt/cloudera/parcels/CDH-4.3.0-1.cdh4.3.0. >> > > > > > p0.22/lib/*:/opt/cloudera/parcels/CDH-4.3.0-1.cdh4.3.0.p0.22/* >> > > > > > client.PutWriteBufferExample >> > > > > > >> > > > > > >> > > > > > On Fri, Nov 22, 2013 at 7:17 PM, Silvio Di gregorio < >> > > > > > silvio.digregorio@gmail.com> wrote: >> > > > > > >> > > > > >> Hi to All >> > > > > >> this is the first time, i have launched the example >> > > > > PutWriteBufferExample, >> > > > > >> chapter 3 of the "hbase definitive guide" in a working hadoop >> > > cluster >> > > > > and >> > > > > >> returns this error >> > > > > >> >> > > > > >> Caused by: java.lang.ClassNotFoundException: >> > > > > >> org.apache.hadoop.hbase.HBaseConfiguration >> > > > > >> >> > > > > >> i have build the example in eclipse with all necessary jar, >> after >> > > the >> > > > > >> command i have launched: >> > > > > >> >> > > > > >> *- java -cp hbase-trai.jar client.PutWriteBufferExample >> -classpath >> > > > > `hbase >> > > > > >> classpath`* >> > > > > >> ERROR: >> > > > > >> Exception in thread "main" java.lang.NoClassDefFoundError: >> > > > > >> org/apache/hadoop/hbase/HBaseConfiguration >> > > > > >> at >> > > > > >> >> client.PutWriteBufferExample.main(PutWriteBufferExample.java:18) >> > > > > >> >> > > > > >> *- hadoop jar hbase-trai.jar client.PutWriteBufferExample >> -libjars >> > > > > `hbase >> > > > > >> classpath`* >> > > > > >> ERROR: >> > > > > >> Exception in thread "main" java.lang.NoClassDefFoundError: >> > > > > >> org/apache/hadoop/hbase/HBaseConfiguration >> > > > > >> at >> > > > > >> >> client.PutWriteBufferExample.main(PutWriteBufferExample.java:18) >> > > > > >> >> > > > > >> hbase classpath work, a piace of output >> > > > > >> >> > > > > >> >> > > > > >> >> > > > > >> > > > >> > > >> > >> /opt/cloudera/parcels/CDH-4.3.0-1.cdh4.3.0.p0.22/lib/hbase/bin/../conf:/= opt/jdk1.7.0_21//lib/tools.jar:/opt/cloudera/parcels/CDH-4.3.0-1.cdh4.3.0.p= 0.22/lib/hbase/bin/..:/opt/cloudera/parcels/CDH-4.3.0-1.cdh4.3.0.p0.22/lib/= hbase/bin/../hbase-0.94.6-cdh4.3.0-security.jar:/opt/cloudera/parcels/CDH-4= .3.0-1.cdh4.3.0.p0.22/lib/hbase/bin/../hbase-0.94.6-cdh4.3.0-security-tests= .jar:/opt/cloudera/parcels/CDH-4.3.0-1.cdh4.3.0.p0.22/lib/hbase/bin/../hbas= e.jar:/opt/cloudera/parcels/CDH-4.3.0-1.cdh4.3.0.p0.22/lib/hbase/bin/../lib= /activation-1.1.jar:/opt/cloudera/parcels/CDH-4.3.0-1.cdh4.3.0.p0.22/lib/hb= ase/bin/../lib/aopalliance-1.0.jar:/opt/cloudera/parcels/CDH-4.3.0-1.cdh4.3= .0.p0.22/lib/hbase/bin/../lib/asm-3.2.jar:/opt/cloudera/parcels/CDH-4.3.0-1= .cdh4.3.0.p0.22/lib/hbase/bin/../lib/avro-1.7.4.jar:/opt/cloudera/parcels/C= DH-4.3.0-1.cdh4.3.0.p0.22/lib/hbase/bin/../lib/commons-beanutils-1.7.0.jar:= /opt/cloudera/parcels/CDH-4.3.0-1.cdh4.3.0.p0.22/lib/hbase/bin/../lib/commo= ns-beanutils-core-1.8.0.jar:/opt/cloudera/parcels/CDH-4.3.0-1.cdh4.3.0.p0.2= 2/lib/hbase/bin/../lib/commons-cli-1.2.jar:/opt/cloudera/parcels/CDH-4.3.0-= 1.cdh4.3.0.p0.22/lib/hbase/bin/../lib/commons-codec-1.4.jar:/opt/cloudera/p= arcels/CDH-4.3.0-1.cdh4.3.0.p0.22/lib/hbase/bin/../lib/commons-collections-= 3.2.1.jar:/opt/cloudera/parcels/CDH-4.3.0-1.cdh4.3.0.p0.22/lib/hbase/bin/..= /lib/commons-compress-1.4.1.jar:/opt/cloudera/parcels/CDH-4.3.0-1.cdh4.3.0.= p0.22/lib/hbase/bin/../lib/commons-configuration-1.6.jar:/opt/cloudera/parc= els/CDH-4.3.0-1.cdh4.3.0.p0.22/lib/hbase/bin/../lib/commons-daemon-1.0.3.ja= r:/opt/cloudera/parcels/CDH-4.3.0-1.cdh4.3.0.p0.22/lib/hbase/bin/../lib/com= mons-digester-1.8.jar:/opt/cloudera/parcels/CDH-4.3.0-1.cdh4.3.0.p0.22/lib/= hbase/bin/../lib/commons-el-1.0.jar:/opt/cloudera/parcels/CDH-4.3.0-1.cdh4.= 3.0.p0.22/lib/hbase/bin/../lib/commons-httpclient-3.1.jar:/opt/cloudera/par= cels/CDH-4.3.0-1.cdh4.3.0.p0.22/lib/hbase/bin/../lib/commons-io-2.1.jar:/op= t/cloude >> > > > > >> ........ >> > > > > >> >> > > > > >> Can you help me? i'm newbie. >> > > > > >> thanks in advance >> > > > > >> Silvio >> > > > > >> >> > > > > > >> > > > > > >> > > > > > >> > > > > > -- >> > > > > > Best Regards, >> > > > > > Haosdent Huang >> > > > > > >> > > > > >> > > > > >> > > > > >> > > > > -- >> > > > > Best Regards, >> > > > > Haosdent Huang >> > > > > >> > > > >> > > >> > > >> > > >> > > -- >> > > Best Regards, >> > > Haosdent Huang >> > > >> > >> >> >> >> -- >> Best Regards, >> Haosdent Huang >> > > --001a11c3ef343d57b404ebfcb123--