HBase启动regionserver报错;Caused by: java.lang.ClassNotFoundException: org.apache.htrace.SamplerBuilder

HBase启动不了regionserver,查看hbase-0.98.24-hadoop2/logs/hbase-root-regionserver-hadoop1.out日志,发现:
ERROR [main] regionserver.HRegionServerCommandLine: Region server exiting
java.lang.NoClassDefFoundError: org/apache/htrace/SamplerBuilder

解决:
将hadoop下的htrace-core-3.1.0-incubating.jar拷贝到hbase 的lib目录下
cp /opt/app/hadoop-2.7.2/share/hadoop/common/lib/htrace-core-3.1.0-incubating.jar /opt/app/hbase-0.98.24-hadoop2/lib/

再启动,解决

你可能感兴趣的:(HBase)