|
|
-
importtsv bulk load error
Denis Kreis 2011-11-17, 20:23
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
+
Denis Kreis 2011-11-17, 20:23
-
Re: importtsv bulk load error
Bill Graham 2011-11-17, 21:24
Make sure guava.jar is in your classpath.
On Thu, Nov 17, 2011 at 12:23 PM, Denis Kreis <[EMAIL PROTECTED]> 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 >
+
Bill Graham 2011-11-17, 21:24
-
Re: importtsv bulk load error
Shrijeet Paliwal 2011-11-17, 21:50
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 <[EMAIL PROTECTED]> wrote:
> Make sure guava.jar is in your classpath. > > On Thu, Nov 17, 2011 at 12:23 PM, Denis Kreis <[EMAIL PROTECTED]> 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 > > >
+
Shrijeet Paliwal 2011-11-17, 21:50
-
Re: importtsv bulk load error
Denis Kreis 2011-11-17, 21:54
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 <[EMAIL PROTECTED]>
> Make sure guava.jar is in your classpath. > > On Thu, Nov 17, 2011 at 12:23 PM, Denis Kreis <[EMAIL PROTECTED]> 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 > > >
+
Denis Kreis 2011-11-17, 21:54
-
Re: importtsv bulk load error
Denis Kreis 2011-11-17, 22:08
I meant: explicitly set HADOOP_CLASSPATH
2011/11/17 Denis Kreis <[EMAIL PROTECTED]>
> 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 <[EMAIL PROTECTED]> > >> Make sure guava.jar is in your classpath. >> >> On Thu, Nov 17, 2011 at 12:23 PM, Denis Kreis <[EMAIL PROTECTED]> 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 >> > >> > >
+
Denis Kreis 2011-11-17, 22:08
|
|