启动zookeeper后看到2181端口已经占用
然后运行:zkCli.sh -server server1:2181
运行后在welcome to zookeeper!后不断出错误信息:
2013-06-06 20:03:06,014 [myid:] - INFO [main-SendThread(localhost:2181):ClientCnxn$SendThread@966] - Opening socket connection to server localhost/0:0:0:0:0:0:0:1:2181. Will not attempt to authenticate using SASL (unknown error)
JLine support is enabled
2013-06-06 20:03:06,023 [myid:] - INFO [main-SendThread(localhost:2181):ClientCnxn$SendThread@849] - Socket connection established to localhost/0:0:0:0:0:0:0:1:2181, initiating session
2013-06-06 20:03:06,029 [myid:] - INFO [main-SendThread(localhost:2181):ClientCnxn$SendThread@1085] - Unable to read additional data from server sessionid 0x0, likely server has closed socket, closing socket connection and attempting reconnect
ZOOKEEPER配置错误
把hbase-site.xml
zoo.cfg
/etc/hosts
贴出来看看
我把host文件又恢复为昨天的,居然启动不了hbase 了,启动后进入hbase shell后运行命令会出现
KeeperErrorCode = ConnectionLoss for /hbase/hbaseid
之类的异常信息,我清空了hdfs并且 hadoop namenode -format 清空data目录重新启动zookeeper后,hbase 也不行了,太奇怪了