You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Denis Kreis <de...@gmail.com> on 2011/11/17 21:23:05 UTC

importtsv bulk load error

Hi,

i'm getting this error when trying to use the importtsv tool with
hadoop-0.20.205.0 and hbase-0.92.0

hadoop jar ../../hbase-0.92.0-SNAPSHOT/hbase-0.92.0-SNAPSHOT.jar importtsv
Exception in thread "main" java.lang.NoClassDefFoundError:
com/google/common/collect/Multimap
at org.apache.hadoop.hbase.mapreduce.Driver.main(Driver.java:43)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.hadoop.util.RunJar.main(RunJar.java:156)
Caused by: java.lang.ClassNotFoundException:
com.google.common.collect.Multimap
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 6 more

Does anyone know what is wrong?

Thanks!
Denis

Re: importtsv bulk load error

Posted by Shrijeet Paliwal <sh...@rocketfuel.com>.
Shouldn't "hadoop jar hbase-version.jar importtsv" , execute OK (displaying
the usage of the tool) irrespective of classpath being set correctly or
not. Atleast that used to be the behavior  some time back. No?

I spent some time going through recent changes in LoadIncrementalHFiles to
understand why jvm is trying to load Multimap class when it should not be
doing so (yet).
No luck yet.

On Thu, Nov 17, 2011 at 1:24 PM, Bill Graham <bi...@gmail.com> wrote:

> Make sure guava.jar is in your classpath.
>
> On Thu, Nov 17, 2011 at 12:23 PM, Denis Kreis <de...@gmail.com> wrote:
>
> > Hi,
> >
> > i'm getting this error when trying to use the importtsv tool with
> > hadoop-0.20.205.0 and hbase-0.92.0
> >
> > hadoop jar ../../hbase-0.92.0-SNAPSHOT/hbase-0.92.0-SNAPSHOT.jar
> importtsv
> > Exception in thread "main" java.lang.NoClassDefFoundError:
> > com/google/common/collect/Multimap
> > at org.apache.hadoop.hbase.mapreduce.Driver.main(Driver.java:43)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at
> >
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > at
> >
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> > at java.lang.reflect.Method.invoke(Method.java:597)
> > at org.apache.hadoop.util.RunJar.main(RunJar.java:156)
> > Caused by: java.lang.ClassNotFoundException:
> > com.google.common.collect.Multimap
> > at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> > at java.security.AccessController.doPrivileged(Native Method)
> > at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> > at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> > at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
> > ... 6 more
> >
> > Does anyone know what is wrong?
> >
> > Thanks!
> > Denis
> >
>

Re: importtsv bulk load error

Posted by Shrijeet Paliwal <sh...@rocketfuel.com>.
-  user@hbase.apache.org,
+ dev@hbase.apache.org

I am still a bit puzzled why HADOOP_CLASSPATH needs to be set when all I
need to see is what all tools are available ("hadoop jar hbase-version.jar"
output)
If required, may be hbase book
http://hbase.apache.org/bulk-loads.htmlneeds a small note to do so.

-Shrijeet

On Thu, Nov 17, 2011 at 2:08 PM, Denis Kreis <de...@gmail.com> wrote:

> I meant: explicitly set HADOOP_CLASSPATH
>
> 2011/11/17 Denis Kreis <de...@gmail.com>
>
> > I first tried with -jarfile, but it did not work.
> > But if you explicitly set Hadoop. It works.
> > Thank you Bill
> >
> > 2011/11/17 Bill Graham <bi...@gmail.com>
> >
> >> Make sure guava.jar is in your classpath.
> >>
> >> On Thu, Nov 17, 2011 at 12:23 PM, Denis Kreis <de...@gmail.com>
> wrote:
> >>
> >> > Hi,
> >> >
> >> > i'm getting this error when trying to use the importtsv tool with
> >> > hadoop-0.20.205.0 and hbase-0.92.0
> >> >
> >> > hadoop jar ../../hbase-0.92.0-SNAPSHOT/hbase-0.92.0-SNAPSHOT.jar
> >> importtsv
> >> > Exception in thread "main" java.lang.NoClassDefFoundError:
> >> > com/google/common/collect/Multimap
> >> > at org.apache.hadoop.hbase.mapreduce.Driver.main(Driver.java:43)
> >> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >> > at
> >> >
> >> >
> >>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >> > at
> >> >
> >> >
> >>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >> > at java.lang.reflect.Method.invoke(Method.java:597)
> >> > at org.apache.hadoop.util.RunJar.main(RunJar.java:156)
> >> > Caused by: java.lang.ClassNotFoundException:
> >> > com.google.common.collect.Multimap
> >> > at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> >> > at java.security.AccessController.doPrivileged(Native Method)
> >> > at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> >> > at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> >> > at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
> >> > ... 6 more
> >> >
> >> > Does anyone know what is wrong?
> >> >
> >> > Thanks!
> >> > Denis
> >> >
> >>
> >
> >
>

Re: importtsv bulk load error

Posted by Denis Kreis <de...@gmail.com>.
I meant: explicitly set HADOOP_CLASSPATH

2011/11/17 Denis Kreis <de...@gmail.com>

> I first tried with -jarfile, but it did not work.
> But if you explicitly set Hadoop. It works.
> Thank you Bill
>
> 2011/11/17 Bill Graham <bi...@gmail.com>
>
>> Make sure guava.jar is in your classpath.
>>
>> On Thu, Nov 17, 2011 at 12:23 PM, Denis Kreis <de...@gmail.com> wrote:
>>
>> > Hi,
>> >
>> > i'm getting this error when trying to use the importtsv tool with
>> > hadoop-0.20.205.0 and hbase-0.92.0
>> >
>> > hadoop jar ../../hbase-0.92.0-SNAPSHOT/hbase-0.92.0-SNAPSHOT.jar
>> importtsv
>> > Exception in thread "main" java.lang.NoClassDefFoundError:
>> > com/google/common/collect/Multimap
>> > at org.apache.hadoop.hbase.mapreduce.Driver.main(Driver.java:43)
>> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> > at
>> >
>> >
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> > at
>> >
>> >
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> > at java.lang.reflect.Method.invoke(Method.java:597)
>> > at org.apache.hadoop.util.RunJar.main(RunJar.java:156)
>> > Caused by: java.lang.ClassNotFoundException:
>> > com.google.common.collect.Multimap
>> > at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>> > at java.security.AccessController.doPrivileged(Native Method)
>> > at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>> > at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>> > at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>> > ... 6 more
>> >
>> > Does anyone know what is wrong?
>> >
>> > Thanks!
>> > Denis
>> >
>>
>
>

Re: importtsv bulk load error

Posted by Denis Kreis <de...@gmail.com>.
I first tried with -jarfile, but it did not work.
But if you explicitly set Hadoop. It works.
Thank you Bill

2011/11/17 Bill Graham <bi...@gmail.com>

> Make sure guava.jar is in your classpath.
>
> On Thu, Nov 17, 2011 at 12:23 PM, Denis Kreis <de...@gmail.com> wrote:
>
> > Hi,
> >
> > i'm getting this error when trying to use the importtsv tool with
> > hadoop-0.20.205.0 and hbase-0.92.0
> >
> > hadoop jar ../../hbase-0.92.0-SNAPSHOT/hbase-0.92.0-SNAPSHOT.jar
> importtsv
> > Exception in thread "main" java.lang.NoClassDefFoundError:
> > com/google/common/collect/Multimap
> > at org.apache.hadoop.hbase.mapreduce.Driver.main(Driver.java:43)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at
> >
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > at
> >
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> > at java.lang.reflect.Method.invoke(Method.java:597)
> > at org.apache.hadoop.util.RunJar.main(RunJar.java:156)
> > Caused by: java.lang.ClassNotFoundException:
> > com.google.common.collect.Multimap
> > at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> > at java.security.AccessController.doPrivileged(Native Method)
> > at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> > at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> > at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
> > ... 6 more
> >
> > Does anyone know what is wrong?
> >
> > Thanks!
> > Denis
> >
>

Re: importtsv bulk load error

Posted by Bill Graham <bi...@gmail.com>.
Make sure guava.jar is in your classpath.

On Thu, Nov 17, 2011 at 12:23 PM, Denis Kreis <de...@gmail.com> wrote:

> Hi,
>
> i'm getting this error when trying to use the importtsv tool with
> hadoop-0.20.205.0 and hbase-0.92.0
>
> hadoop jar ../../hbase-0.92.0-SNAPSHOT/hbase-0.92.0-SNAPSHOT.jar importtsv
> Exception in thread "main" java.lang.NoClassDefFoundError:
> com/google/common/collect/Multimap
> at org.apache.hadoop.hbase.mapreduce.Driver.main(Driver.java:43)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.apache.hadoop.util.RunJar.main(RunJar.java:156)
> Caused by: java.lang.ClassNotFoundException:
> com.google.common.collect.Multimap
> at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
> ... 6 more
>
> Does anyone know what is wrong?
>
> Thanks!
> Denis
>