Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

java.lang.NoClassDefFoundError: org/apache/hadoop/hbase/filter/Filter

I am trying to run completebulkload on hbase-1.0.0. But it meets an error,

"java.lang.NoClassDefFoundError: org/apache/hadoop/hbase/filter/Filter"

$ hadoop jar /opt/hbase-1.0.0/lib/hbase-server-1.0.0.jar completebulkload -c ../conf/hbase-site.xml temp bldg

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/hbase/filter/Filter

Setting HADOOP_CLASSPATH with /opt/hbase-1.0.0/lib/.jar files doesn't help. I check all jar files with ${HBASE_HOME}/lib/.jar with jar command. It is strange that any file doesn't include org.apache.hadoop.hbase.filter.Filter class. What is missing? Where is the class file?

Thanks in advance

like image 751
Jaechul Avatar asked Apr 15 '26 13:04

Jaechul


1 Answers

I find out that org/apache/hadoop/hbase/filter/Filter is included at ${HBASE_HOME}/lib/hbase-client-1.0.0.jar.

Totally, I need the following HADOOP_CLASSPATH to run completebulkload.

HADOOP_CLASSPATH=${HBASE_HOME}/lib/hbase-server-1.0.0.jar:${HBASE_HOME}/lib/hbase-server-1.0.0-tests.jar:${HBASE_HOME}/lib/zookeeper-3.4.5.jar:${HBA SE_HOME}/lib/protobuf-java-2.5.0.jar:${HBASE_HOME}/lib/guava-11.0.2.jar:${HBASE_HOME}/lib/hbase-client-1.0.0.jar:${HBASE_HOME}/lib/hbase-common-1.0. 0.jar:${HBASE_HOME}/lib/hbase-protocol-1.0.0.jar:${HBASE_HOME}/lib/htrace-core-3.1.0-incubating.jar:${HBASE_HOME}/lib/netty-all-4.0.23.Final.jar

like image 190
Jaechul Avatar answered Apr 22 '26 16:04

Jaechul



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!