当前位置:   article > 正文

hadoop fs –ls /hbase 无内容_HBase常见问题集合

memstoreflusherchore requesting flush of hbase:meta,,1.1588230740 because in

【问题1】client.HConnectionManager$HConnectionImplementation: Can”t get connection to ZooKeeper: KeeperErrorCode = ConnectionLoss for /hbase

HBase分布式部署模式,执行 >hbase shell — >status

显示以上错误,解决方法:关闭防火墙

PS:Centos关闭防火墙方法

systemctl stop firewalld.service #停止firewall

systemctl disable firewalld.service #禁止firewall开机启动

firewall-cmd –state #查看默认防火墙状态(关闭后显示notrunning,开启后显示running)

【问题2】 The node /hbase is not in ZooKeeper. It should have been written by the master. Check the value configured in ‘zookeeper.znode.parent’. There could be a mismatch with the one configured in the master.

原因:zookeeper datadir未配置

解决方法:vi hbase-site.xml,添加

hbase.zookeeper.property.datadDir

/tmp/zookeeper

【问题3】HBase Shell无法回退删除

解决方法:如果是使用CRT访问Linux,可以在CRT-会话选项-终端-仿真里,勾选终端类型为Linux,然后就可以在回退的时候是有CTRL+BACKSPACE键操作

【问题4】

ERROR: Illegal character code:29, <> at 9. User-space table qualifiers can only contain ‘alphanumeric characters’: i.e. [a-zA-Z_0-9-.]: testtable

数据库名中含有空格之类的非法字符

【问题5】The table xxx does not exist in meta but has a znode. run hbck to fix inconsistencies.

以table bigdata为例

(1)执行hbase zkcli命令进入zookeeper client模式

(2)ls /hbase/table命令查看是否有bigdata这个表

(3)使用rmr /hbase/table/bigdata命令删除表

(4)重启Hbase

【问题6】regionserver.HRegionServer: s2,16020,1508333876913-MemstoreFlusherChore requesting flush of hbase:meta,,1.1588230740 because info has an old edit so flush to free WALs after random delay 262099ms

批量插入数据时设置手动flush

【问题7】HBase Shell:ERROR: org.apache.hadoop.hbase.IPc.ServerNotRunningYetException: Server is not running yet

原因:hadoop处于safe mode

hadoop dfsadmin -safemode get 查看hadoop当前启动状态是否为safe mode

hadoop dfsadmin -safemode leave 退出

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/AllinToyou/article/detail/724331
推荐阅读
相关标签
  

闽ICP备14008679号