当前位置:首页 > 开发 > 开源软件 > 正文

zookeeper 启动错误问题

发表于: 2014-12-04   作者:conkeyn   来源:转载   浏览:
摘要: 1、3888端口一直无法连接上   -04 00:06:50,339 [myid:] - INFO [main:QuorumPeerConfig@103] - Reading configuration from: /home/conkeyn/zookeeper-3.4.6/bin/../conf/zoo.cfg 2014-12-04 00:06:50,344 [myid:] -

1、3888端口一直无法连接上

 

-04 00:06:50,339 [myid:] - INFO  [main:QuorumPeerConfig@103] - Reading configuration from: /home/conkeyn/zookeeper-3.4.6/bin/../conf/zoo.cfg
2014-12-04 00:06:50,344 [myid:] - WARN  [main:QuorumPeerConfig@293] - No server failure will be tolerated. You need at least 3 servers.
2014-12-04 00:06:50,344 [myid:] - INFO  [main:QuorumPeerConfig@340] - Defaulting to majority quorums
2014-12-04 00:06:50,349 [myid:1] - INFO  [main:DatadirCleanupManager@78] - autopurge.snapRetainCount set to 3
2014-12-04 00:06:50,349 [myid:1] - INFO  [main:DatadirCleanupManager@79] - autopurge.purgeInterval set to 0
2014-12-04 00:06:50,349 [myid:1] - INFO  [main:DatadirCleanupManager@101] - Purge task is not scheduled.
2014-12-04 00:06:50,390 [myid:1] - INFO  [main:QuorumPeerMain@127] - Starting quorum peer
2014-12-04 00:06:50,420 [myid:1] - INFO  [main:NIOServerCnxnFactory@94] - binding to port 0.0.0.0/0.0.0.0:2181
2014-12-04 00:06:50,460 [myid:1] - INFO  [main:QuorumPeer@959] - tickTime set to 2000
2014-12-04 00:06:50,461 [myid:1] - INFO  [main:QuorumPeer@979] - minSessionTimeout set to -1
2014-12-04 00:06:50,461 [myid:1] - INFO  [main:QuorumPeer@990] - maxSessionTimeout set to -1
2014-12-04 00:06:50,461 [myid:1] - INFO  [main:QuorumPeer@1005] - initLimit set to 10
2014-12-04 00:06:50,516 [myid:1] - INFO  [Thread-1:QuorumCnxManager$Listener@504] - My election bind port: hadoop.main/127.0.0.1:3888
2014-12-04 00:06:50,537 [myid:1] - INFO  [QuorumPeer[myid=1]/0:0:0:0:0:0:0:0:2181:QuorumPeer@714] - LOOKING
2014-12-04 00:06:50,543 [myid:1] - INFO  [QuorumPeer[myid=1]/0:0:0:0:0:0:0:0:2181:FastLeaderElection@815] - New election. My id =  1, proposed zxid=0x0

 启动后需要先观察下“ My election bind port”后面的域名及IP地址是否正确。起始配置的hadoop.main的ip地址既有127.0.0.1,又有192.168.0.36,而我们真正想要的IP地址是192.168.0.36。但zookeeper寻找到的IP地址却是127.0.0.1,说明/etc/hosts配置有问题

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.0.36    hadoop.main
127.0.0.1   hadoop.main
::1         hadoop.main
192.168.0.145   hadoop.slave1

 把下面这两行去掉即可:

127.0.0.1   hadoop.main
::1         hadoop.main

 

 

zookeeper 启动错误问题

  • 0

    开心

    开心

  • 0

    板砖

    板砖

  • 0

    感动

    感动

  • 0

    有用

    有用

  • 0

    疑问

    疑问

  • 0

    难过

    难过

  • 0

    无聊

    无聊

  • 0

    震惊

    震惊

版权所有 IT知识库 CopyRight © 2009-2015 IT知识库 IT610.com , All Rights Reserved. 京ICP备09083238号