Hi Sambit, I think that you should add google guava jar to your job classpath.
Slim. Le 26 avril 2012 10:50, Sambit Tripathy <sambi...@gmail.com> a écrit : > Hi All, > > Can anyone help me with this exception? > > I have been trying to import data from csv files into HBase. > > As per my understanding the process is > > 1. Import as HFile using *importtsv *tool provided by HBase > 2. Bulkupload the data from those HFiles into HBase using > *completebulkupload > *tool. > > However when I issue the following command, I encounter exception. > > hadoop@srtidev001:/usr/local/hbase> hadoop jar hbase-0.92.1.jar importtsv > -Dimporttsv.bulk.output=/user/hadoop/input.bulk > -Dimporttsv.columns=HBASE_ROW_KEY,ns: -Dimporttsv.separator=, testTable > /opt/hadoop/raw > 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 > > *Note: I have removed the native libraries during hadoop installation. I > doubt if this is causing the exception as it is looking for the "Google > Data Java client". > > > > *Thanks > Sambit. >