hadoop - Importtsv command does not work in Hbase1.0.1.1 -
i trying import tsv file hbase table. using following command:
hadoop jar /usr/local/hbase-1.0.1.1/lib/hbase-it-1.0.1.1.jar importtsv -dimporttsv.columns=hbase_row_key,a,b '-dtable_name.separator=\t' table-name /path-to-input-file
it gives me following error:
exception in thread "main" java.lang.classnotfoundexception: importtsv @ java.net.urlclassloader$1.run(urlclassloader.java:366) @ java.net.urlclassloader$1.run(urlclassloader.java:355) @ java.security.accesscontroller.doprivileged(native method) @ java.net.urlclassloader.findclass(urlclassloader.java:354) @ java.lang.classloader.loadclass(classloader.java:425) @ java.lang.classloader.loadclass(classloader.java:358) @ java.lang.class.forname0(native method) @ java.lang.class.forname(class.java:274) @ org.apache.hadoop.util.runjar.run(runjar.java:214) @ org.apache.hadoop.util.runjar.main(runjar.java:136)
have added guava jar in hadoop classpath. below bashrc file.
export java_home=/usr/lib/jvm/java-7-openjdk-amd64 export hadoop_home=/usr/local/hadoop-2.6.0 export hbase_home=/usr/local/hbase-1.0.1.1 export hadoop_mapred_home=$hadoop_home export hadoop_common_home=$hadoop_home export hadoop_hdfs_home=$hadoop_home export yarn_home=$hadoop_home export hadoop_conf_dir=$hadoop_home/etc/hadoop export yarn_conf_dir=$hadoop_home/etc/hadoop export path=$java_home/bin:$path export path=$path:/usr/local/hadoop-2.6.0/bin export hadoop_classpath=$java_home/lib/tools.jar export hadoop_classpath=$hbase_home/bin export hadoop_classpath=$hbase_home/lib/guava-12.0.1.jar export hbase_conf_dir=$hbase_home/conf export hbase_class_path=$hbase_conf_dir export path=$hbase_home/bin:$path
any appreciated. in advance.
ps: hadoop version - 2.6.0, hbase version-1.0.1.1
Comments
Post a Comment