I am studying the content of the hbase-book repository. While doing so, I encountered the following error when running the Java file at https://github.com/larsgeorge/hbase-book/blob/master/ch04/src/main/java/coprocessor/LoadWithTableDescriptorExample.java.
Caused by: org.apache.hadoop.hbase.ipc.RemoteWithExtrasException(org.apache.hadoop.hbase.DoNotRetryIOException): org.apache.hadoop.hbase.DoNotRetryIOException: java.lang.NoClassDefFoundError: org/apache/hadoop/hbase/coprocessor/BaseRegionObserver
Since BaseRegionObserver is a default coprocessor, why can’t it find the class?
I just run that code. and wanna get table with CoustmCoprocessor.
Here is my conf setting info
hbase-env.sh
export HBASE_CLASSPATH=$HBASE_CLASSPATH:/Users/me/IDE/hbase-book/ch04/target/hbase-book-ch04-2.0.jar
hbase-site.xml
<property>
<name>hbase.rootdir</name>
<value>hdfs://localhost:9000/hbase</value>
</property>
<property>
<name>dfs.replication</name>
<value>1</value>
</property>
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>`your text`
</property>
<property>
<name>hbase.wal.provider</name>
<value>filesystem</value>
</property>
김지환 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.