Hbase部署问题解决

Hbase出现java.lang.NoClassDefFoundError: org/apache/htrace/SamplerBuilder

之前搭建Hbase集群的时候一直无法出现HMaster进程:
查看hbase-hadoop-master-master.log日志,发现master退出,并有如下异常
在这里插入图片描述
在网上找了一些办法,有人提出使用如下命令:

cp $HBASE_HOME/lib/client-facing-thirdparty/htrace-core-3.1.0-incubating.jar $HBASE_HOME/lib/

解决了该问题,但并不知道具体原因,(待续)

java.lang.IllegalStateException: The procedure WAL relies on the ability to hsync for proper operation during component failures, but the underlying filesystem does not support doing so. Please check the config value of ‘hbase.procedure.store.wal.use.hsync’ to set the desired level of robustness and ensure the config value of ‘hbase.wal.dir’ points to a FileSystem mount that can provide it.

在这里插入图片描述
参考了网上一些博客https://blog.csdn.net/SL_World/article/details/84952725

解决方案:

在habse-site.xml文件中添加如下属性:

<property>
  <name>hbase.unsafe.stream.capability.enforce</name>
  <value>false</value>
</property>

这个属性主要作用是禁止检查流功能(stream capabilities)[hflush/hsync]。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值