kafka启动时,先启动Zookeeper时出现停留在NIOServerCnxnFactory

发表于: 2019-02-22   最后更新时间: 2019-02-22  

刚从kafka官网上下载的kafka_2.11-2.1.0,按官网上的教程,解压然后启动zookeeper在启动Zookeeper时,停止在INFO binding to port 0.0.0.0/0.0.0.0:21(org.apache.zookeeper.server.NIOServerCnxnFactory)不动了。

请问各位大佬这是因为什么?解压就直接运行了,未修改任何配置。谢谢



您需要解锁本帖隐藏内容请: 点击这里
本帖隐藏的内容





发表于: 5月前   最后更新时间: 5月前   游览量:650
上一条: java.lang.IllegalArgumentException: Cannot truncate to a negative offset (-1)
下一条: kafka 发送消息报错:LEADER_NOT_AVAILABLE

  • 恭喜你,成功了,这个是会话前端保持的,你加&可以后台运行。

    • nohup: 忽略输入并把输出追加到"nohup.out"

      [2]+ 退出 1 nohup bin/zookeeper-server-start.sh config/zookeeper.properties
      运行结果,好像没成功啊,telnet端口没通

        • [2019-02-22 16:18:00,745] INFO Reading configuration from: config/zookeeper.properties (org.apache.zookeeper.server.quorum.QuorumPeerConfig)
          [2019-02-22 16:18:00,747] INFO autopurge.snapRetainCount set to 3 (org.apache.zookeeper.server.DatadirCleanupManager)
          [2019-02-22 16:18:00,747] INFO autopurge.purgeInterval set to 0 (org.apache.zookeeper.server.DatadirCleanupManager)
          [2019-02-22 16:18:00,748] INFO Purge task is not scheduled. (org.apache.zookeeper.server.DatadirCleanupManager)
          [2019-02-22 16:18:00,748] WARN Either no config or no quorum defined in config, running in standalone mode (org.apache.zookeeper.server.quorum.QuorumPeerMain)
          [2019-02-22 16:18:00,778] INFO Reading configuration from: config/zookeeper.properties (org.apache.zookeeper.server.quorum.QuorumPeerConfig)
          [2019-02-22 16:18:00,779] INFO Starting server (org.apache.zookeeper.server.ZooKeeperServerMain)
          [2019-02-22 16:18:00,789] INFO Server environment:zookeeper.version=3.4.13-2d71af4dbe22557fda74f9a9b4309b15a7487f03, built on 06/29/2018 00:39 GMT (org.apache.zookeeper.server.ZooKeeperServer)
          [2019-02-22 16:18:00,789] INFO Server environment:host.name=hwb (org.apache.zookeeper.server.ZooKeeperServer)
          [2019-02-22 16:18:00,789] INFO Server environment:java.version=11.0.2 (org.apache.zookeeper.server.ZooKeeperServer)
          [2019-02-22 16:18:00,789] INFO Server environment:java.vendor=Oracle Corporation (org.apache.zookeeper.server.ZooKeeperServer)
          [2019-02-22 16:18:00,789] INFO Server environment:java.home=/opt/jdk-11.0.2 (org.apache.zookeeper.server.ZooKeeperServer)
          @ @ @ @
          "nohup.out" 41L, 9027C