问题描述:
进入hbase shell后,使用list查询时报错
问题分析:
通过查询日志文件的报错信息,大概推测是hbase-site.xml文件中的rootdir路径不对
问题解决-urisyntaxexception:
修改前
修改后
修改完成后,日志里报错没有了,但是hbase shell中查询list时仍然报错: error:keepererrorcode = nonode for /hbase/master
问题描述:
刚启动hbase之后使用jps查看进程时,hmaster和hregionserver进程都在,过一会再jps查看时只剩下hregionserver进程了。
问题分析:
排除了zookeeper问题和版本兼容问题,最后推断出是因为hmster宕机出现error:keepererrorcode = nonode for /hbase/master 报错的,所以解决hmaster宕机问题也就解决了error:keepererrorcode = nonode for /hbase/master报错
问题解决-error:keepererrorcode = nonode for /hbase/master:
---以下是在我这种情况下解决报错的方法--
在hbase-site.xml文件中追加:
</property>
<property>
<name>hbase.unsafe.stream.capability.enforce</name>
<value>false</value>
</property>
将$hbase_home/lib/client-facing-thirdparty/htrace-core4-4.2.0-incubating.jar jar包拷贝到$hbase_home/lib 目录下
cp $hbase_home/lib/client-facing-thirdparty/htrace-core4-4.2.0-incubating.jar $hbase_home/lib
参考:
发表评论