like "extrema ratio" i have did a very dirty solution: a runnable JAR with all required libraries inside. Now the error is: Exception in thread "main" java.lang.reflect.InvocationTargetException at java.lang.reflect.Method.invoke(libgcj.so.10) at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58) Caused by: java.lang.NoClassDefFoundError: com.google.common.collect.Interners
Although i have packaged com.google.guava.source_1.6.0 inside 2013/11/25 Silvio Di gregorio <[email protected]> > 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 <[email protected]> > >> Exception in thread "main" java.lang.NoClassDefFoundError: >> org.apache.hadoop.hbase.HBaseConfiguration >> at client.PutWriteBufferExample.main(PutWriteBufferExample.java:18) >> >> >> >> 2013/11/25 Haosong Huang <[email protected]> >> >>> 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/hbase/hbase.jar >>> client.PutWriteBufferExample >>> >>> >>> >>> On Mon, Nov 25, 2013 at 3:47 PM, Silvio Di gregorio < >>> [email protected]> 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 <[email protected]> >>> > >>> > > 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 >>> this >>> > > email. >>> > > >>> > > On Fri, Nov 22, 2013 at 8:29 PM, Silvio Di gregorio < >>> > > [email protected]> 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 <[email protected]> >>> > > > >>> > > > > 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 < >>> [email protected]> >>> > > > 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 < >>> > > > > > [email protected]> 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.p0.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/../hbase.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/hbase/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/CDH-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/commons-beanutils-core-1.8.0.jar:/opt/cloudera/parcels/CDH-4.3.0-1.cdh4.3.0.p0.22/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/parcels/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/parcels/CDH-4.3.0-1.cdh4.3.0.p0.22/lib/hbase/bin/../lib/commons-daemon-1.0.3.jar:/opt/cloudera/parcels/CDH-4.3.0-1.cdh4.3.0.p0.22/lib/hbase/bin/../lib/commons-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/parcels/CDH-4.3.0-1.cdh4.3.0.p0.22/lib/hbase/bin/../lib/commons-io-2.1.jar:/opt/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 >>> >> >> >
