ERROR: Can't get master address from ZooKeeper; znode data == null
Here is some help for this command:
List all tables in hbase. Optional regular expression parameter could
be used to filter the output. Examples:
hbase> list
hbase> list 'abc.*'
复制代码
解决方法:
1.重启hbase
stop-hbase.sh
复制代码
然后
start-hbase.sh
复制代码
问题解决。这里也找了其他解决办法,作为一个整理。
2.解决方法2:格式化namenode
2节点的datanode 日志信息中:
Incompatible namespaceIDs in /home/hadoop/tmp/dfs/data: namenode namespaceID = 1780037790
1节点的namenode日志信息::java.io.IOException: File /home/hadoop/tmp/mapred/system/jobtracker.info could only be replicated to 0 nodes, instead of 1
将namenode的信息删除,重新格式化
重新启动,hbase正常
你好,我安装的是hbase-0.98.5-hadoop1
现在HMaster已经正常启动,但是zookeeper没有安装,Linux下jps也没有zookeeper的进程
我用eclipse链接HBase是一直出现如下错误:
WARN zookeeper.ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection refused: no further information
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:716)
at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081)
请问是什么原因啊?
难道要安装zookeeper后,才能用eclipse链接HBase吗?
谢谢