You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Silvio Di gregorio <si...@gmail.com> on 2013/11/22 12:17:21 UTC

example of hbase definitive guide

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

Re: example of hbase definitive guide

Posted by Silvio Di gregorio <si...@gmail.com>.
this finally works
 java -cp `hbase classpath`:`hadoop classpath`:hbase-trai.jar
client.PutWriteBufferExample

basically my hbase it wasn't well configurated, i have adjusted with your
advices and now it works
thanks



2013/11/25 Ted Yu <yu...@gmail.com>

> This error implies there are multiple projects in the class path whose
> hbase-default.xml are not compatible.
>
> Can you find the complete class path ?
>
> Cheers
>
> On Nov 25, 2013, at 5:18 AM, Silvio Di gregorio <
> silvio.digregorio@gmail.com> wrote:
>
> > Caused by: java.lang.RuntimeException: hbase-default.xml file seems to be
> > for and old version of HBase (0.94.13), this version is Unknown
> >   at
> >
> org.apache.hadoop.hbase.HBaseConfiguration.checkDefaultsVersion(HBaseConfiguration.java:68)
> >   at
> >
> org.apache.hadoop.hbase.HBaseConfiguration.addHbaseResources(HBaseConfiguration.java:100)
> >   at
> >
> org.apache.hadoop.hbase.HBaseConfiguration.create(HBaseConfiguration.java:111)
> >   at client.PutWriteBufferExample.main(PutWriteBufferExample.java:18)
> >   at java.lang.reflect.Method.invoke(libgcj.so.10)
> >
> >
> >
> > 2013/11/25 Silvio Di gregorio <si...@gmail.com>
> >
> >> sorry for the grammatical error " i have did a very dirty solution"
> >> perhaps better "i tried a very dirty solution"
> >>
> >>
> >> 2013/11/25 Silvio Di gregorio <si...@gmail.com>
> >>
> >>> 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 <si...@gmail.com>
> >>>
> >>>> 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 <si...@gmail.com>
> >>>>
> >>>>> Exception in thread "main" java.lang.NoClassDefFoundError:
> >>>>> org.apache.hadoop.hbase.HBaseConfiguration
> >>>>>   at client.PutWriteBufferExample.main(PutWriteBufferExample.java:18)
> >>>>>
> >>>>>
> >>>>>
> >>>>> 2013/11/25 Haosong Huang <ha...@gmail.com>
> >>>>>
> >>>>>> 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 <
> >>>>>> 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 <ha...@gmail.com>
> >>>>>>>
> >>>>>>>> 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 <
> >>>>>>>> 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 <ha...@gmail.com>
> >>>>>>>>>
> >>>>>>>>>> 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.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
> >>
>

Re: example of hbase definitive guide

Posted by Ted Yu <yu...@gmail.com>.
This error implies there are multiple projects in the class path whose hbase-default.xml are not compatible. 

Can you find the complete class path ?

Cheers

On Nov 25, 2013, at 5:18 AM, Silvio Di gregorio <si...@gmail.com> wrote:

> Caused by: java.lang.RuntimeException: hbase-default.xml file seems to be
> for and old version of HBase (0.94.13), this version is Unknown
>   at
> org.apache.hadoop.hbase.HBaseConfiguration.checkDefaultsVersion(HBaseConfiguration.java:68)
>   at
> org.apache.hadoop.hbase.HBaseConfiguration.addHbaseResources(HBaseConfiguration.java:100)
>   at
> org.apache.hadoop.hbase.HBaseConfiguration.create(HBaseConfiguration.java:111)
>   at client.PutWriteBufferExample.main(PutWriteBufferExample.java:18)
>   at java.lang.reflect.Method.invoke(libgcj.so.10)
> 
> 
> 
> 2013/11/25 Silvio Di gregorio <si...@gmail.com>
> 
>> sorry for the grammatical error " i have did a very dirty solution"
>> perhaps better "i tried a very dirty solution"
>> 
>> 
>> 2013/11/25 Silvio Di gregorio <si...@gmail.com>
>> 
>>> 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 <si...@gmail.com>
>>> 
>>>> 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 <si...@gmail.com>
>>>> 
>>>>> Exception in thread "main" java.lang.NoClassDefFoundError:
>>>>> org.apache.hadoop.hbase.HBaseConfiguration
>>>>>   at client.PutWriteBufferExample.main(PutWriteBufferExample.java:18)
>>>>> 
>>>>> 
>>>>> 
>>>>> 2013/11/25 Haosong Huang <ha...@gmail.com>
>>>>> 
>>>>>> 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 <
>>>>>> 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 <ha...@gmail.com>
>>>>>>> 
>>>>>>>> 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 <
>>>>>>>> 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 <ha...@gmail.com>
>>>>>>>>> 
>>>>>>>>>> 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.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
>> 

Re: example of hbase definitive guide

Posted by Silvio Di gregorio <si...@gmail.com>.
Caused by: java.lang.RuntimeException: hbase-default.xml file seems to be
for and old version of HBase (0.94.13), this version is Unknown
   at
org.apache.hadoop.hbase.HBaseConfiguration.checkDefaultsVersion(HBaseConfiguration.java:68)
   at
org.apache.hadoop.hbase.HBaseConfiguration.addHbaseResources(HBaseConfiguration.java:100)
   at
org.apache.hadoop.hbase.HBaseConfiguration.create(HBaseConfiguration.java:111)
   at client.PutWriteBufferExample.main(PutWriteBufferExample.java:18)
   at java.lang.reflect.Method.invoke(libgcj.so.10)



2013/11/25 Silvio Di gregorio <si...@gmail.com>

> sorry for the grammatical error " i have did a very dirty solution"
> perhaps better "i tried a very dirty solution"
>
>
> 2013/11/25 Silvio Di gregorio <si...@gmail.com>
>
>> 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 <si...@gmail.com>
>>
>>> 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 <si...@gmail.com>
>>>
>>>> Exception in thread "main" java.lang.NoClassDefFoundError:
>>>> org.apache.hadoop.hbase.HBaseConfiguration
>>>>    at client.PutWriteBufferExample.main(PutWriteBufferExample.java:18)
>>>>
>>>>
>>>>
>>>> 2013/11/25 Haosong Huang <ha...@gmail.com>
>>>>
>>>>>  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 <
>>>>> 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 <ha...@gmail.com>
>>>>> >
>>>>> > > 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 <
>>>>> > > 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 <ha...@gmail.com>
>>>>> > > >
>>>>> > > > > 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.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
>>>>>
>>>>
>>>>
>>>
>>
>

Re: example of hbase definitive guide

Posted by Silvio Di gregorio <si...@gmail.com>.
sorry for the grammatical error " i have did a very dirty solution"
perhaps better "i tried a very dirty solution"


2013/11/25 Silvio Di gregorio <si...@gmail.com>

> 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 <si...@gmail.com>
>
>> 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 <si...@gmail.com>
>>
>>> Exception in thread "main" java.lang.NoClassDefFoundError:
>>> org.apache.hadoop.hbase.HBaseConfiguration
>>>    at client.PutWriteBufferExample.main(PutWriteBufferExample.java:18)
>>>
>>>
>>>
>>> 2013/11/25 Haosong Huang <ha...@gmail.com>
>>>
>>>>  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 <
>>>> 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 <ha...@gmail.com>
>>>> >
>>>> > > 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 <
>>>> > > 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 <ha...@gmail.com>
>>>> > > >
>>>> > > > > 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.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
>>>>
>>>
>>>
>>
>

Re: example of hbase definitive guide

Posted by Silvio Di gregorio <si...@gmail.com>.
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 <si...@gmail.com>

> 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 <si...@gmail.com>
>
>> Exception in thread "main" java.lang.NoClassDefFoundError:
>> org.apache.hadoop.hbase.HBaseConfiguration
>>    at client.PutWriteBufferExample.main(PutWriteBufferExample.java:18)
>>
>>
>>
>> 2013/11/25 Haosong Huang <ha...@gmail.com>
>>
>>>  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 <
>>> 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 <ha...@gmail.com>
>>> >
>>> > > 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 <
>>> > > 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 <ha...@gmail.com>
>>> > > >
>>> > > > > 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.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
>>>
>>
>>
>

Re: example of hbase definitive guide

Posted by Silvio Di gregorio <si...@gmail.com>.
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 <si...@gmail.com>

> Exception in thread "main" java.lang.NoClassDefFoundError:
> org.apache.hadoop.hbase.HBaseConfiguration
>    at client.PutWriteBufferExample.main(PutWriteBufferExample.java:18)
>
>
>
> 2013/11/25 Haosong Huang <ha...@gmail.com>
>
>> 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 <
>> 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 <ha...@gmail.com>
>> >
>> > > 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 <
>> > > 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 <ha...@gmail.com>
>> > > >
>> > > > > 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.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
>>
>
>

Re: example of hbase definitive guide

Posted by Silvio Di gregorio <si...@gmail.com>.
Exception in thread "main" java.lang.NoClassDefFoundError:
org.apache.hadoop.hbase.HBaseConfiguration
   at client.PutWriteBufferExample.main(PutWriteBufferExample.java:18)



2013/11/25 Haosong Huang <ha...@gmail.com>

> 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 <
> 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 <ha...@gmail.com>
> >
> > > 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 <
> > > 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 <ha...@gmail.com>
> > > >
> > > > > 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.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
>

Re: example of hbase definitive guide

Posted by Haosong Huang <ha...@gmail.com>.
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 <
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 <ha...@gmail.com>
>
> > 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 <
> > 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 <ha...@gmail.com>
> > >
> > > > 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 <ha...@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.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

Re: example of hbase definitive guide

Posted by Silvio Di gregorio <si...@gmail.com>.
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 <ha...@gmail.com>

> 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 <
> 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 <ha...@gmail.com>
> >
> > > 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 <ha...@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.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
>

Re: example of hbase definitive guide

Posted by Haosong Huang <ha...@gmail.com>.
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 <
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 <ha...@gmail.com>
>
> > 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 <ha...@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.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

Re: example of hbase definitive guide

Posted by Silvio Di gregorio <si...@gmail.com>.
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 <ha...@gmail.com>

> 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 <ha...@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.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
>

Re: example of hbase definitive guide

Posted by Haosong Huang <ha...@gmail.com>.
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 <ha...@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.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

Re: example of hbase definitive guide

Posted by Haosong Huang <ha...@gmail.com>.
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.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