完全分布式安装Hbase后启动出错。

wizard 发布于 2015/11/25 20:40
阅读 323
收藏 0

运行环境:CENTOS 6.5, Hadoop2.6, Hbase1.0.1.1。zookeeper使用 Hbase自带的

完全分布式安装Hadoop,1个master,3个slave

master.hadoop 
slave1.hadoop 
slave2.hadoop 
slave3.hadoop

HADOOP安装完毕后,安装Hbase。配置环境变量和hbase配置文件

hbase-site.xml

<property>
<name>hbase.rootdir</name>
<value>hdfs://master.hadoop:9000/hbase</value>
</property>
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>
<property>
<name>hbase.tmp.dir</name>
<value>/usr/hbase-1.0.1.1/tmp</value>
</property>
<property>
<name>hbase.zookeeper.quorum</name>
<value>master.hadoop,slave1.hadoop,slave2.hadoop,slave3.hadoop</value>
</property>
<property>
<name>hbase.zookeeper.property.dataDir</name>
<value>/usr/hbase-1.0.1.1/zookeeper</value>
</property>

start-hbase.sh运行后,master主机进程有HQuorumPeer,ResourceManager,NameNode,HMaster。slave主机进程有HQuorumPeer DataNode NodeManager HRegionServer 

运行Hbase sheel命令出错,ZooKeeper exists failed after 4 attempts.

此时运行JPS发现HMaster进程自己终止。

2015-11-26 02:45:50,611 INFO  [main] zookeeper.ZooKeeper: Initiating client connection, connectString=slave3.hadoop:2181,slave2.hadoop:2181,slave1.hadoop:2181,master.hadoop:2181 sessionTimeout=90000 watcher=master:160200x0, quorum=slave3.hadoop:2181,slave2.hadoop:2181,slave1.hadoop:2181,master.hadoop:2181, baseZNode=/hbase
2015-11-26 02:45:50,625 INFO  [main-SendThread(master.hadoop:2181)] zookeeper.ClientCnxn: Opening socket connection to server master.hadoop/192.168.0.144:2181. Will not attempt to authenticate using SASL (unknown error)
2015-11-26 02:45:50,628 WARN  [main-SendThread(master.hadoop:2181)] zookeeper.ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection refused
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:739)
at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081)



加载中
返回顶部
顶部