kafka启动时,先启动Zookeeper时出现问题

各位大佬请问一下,今天下午安装kafka,在启动Zookeeper时,停止在INFO binding to port 0.0.0.0/0.0.0.0:21(org.apache.zookeeper.server.NIOServerCnxnFactory)界面,只能中止。
使用free -m查看还有90%的内存,所以应该不是内存的问题。
请问这是因为什么?谢谢






发表于: 11天前   最后更新时间: 11天前   游览量:119
上一条: 到头了!
下一条: 已经是最后了!

评论…


  • 21端口被占用,zookeeper默认端口2181,你改成21了?
    • 我把端口改成2181了,可是还是就卡住了
      [2018-11-08 18:50:24,298] INFO Server environment:java.library.path=/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib (org.apache.zookeeper.server.ZooKeeperServer)
      [2018-11-08 18:50:24,298] INFO Server environment:java.io.tmpdir=/tmp (org.apache.zookeeper.server.ZooKeeperServer)
      [2018-11-08 18:50:24,298] INFO Server environment:java.compiler=<NA> (org.apache.zookeeper.server.ZooKeeperServer)
      [2018-11-08 18:50:24,298] INFO Server environment:os.name=Linux (org.apache.zookeeper.server.ZooKeeperServer)
      [2018-11-08 18:50:24,298] INFO Server environment:os.arch=amd64 (org.apache.zookeeper.server.ZooKeeperServer)
      [2018-11-08 18:50:24,298] INFO Server environment:os.version=3.10.0-862.el7.x86_64 (org.apache.zookeeper.server.ZooKeeperServer)
      [2018-11-08 18:50:24,298] INFO Server environment:user.name=root (org.apache.zookeeper.server.ZooKeeperServer)
      [2018-11-08 18:50:24,299] INFO Server environment:user.home=/root (org.apache.zookeeper.server.ZooKeeperServer)
      [2018-11-08 18:50:24,299] INFO Server environment:user.dir=/opt/kafka/kafka_2.11-1.1.1 (org.apache.zookeeper.server.ZooKeeperServer)
      [2018-11-08 18:50:24,311] INFO tickTime set to 3000 (org.apache.zookeeper.server.ZooKeeperServer)
      [2018-11-08 18:50:24,311] INFO minSessionTimeout set to -1 (org.apache.zookeeper.server.ZooKeeperServer)
      [2018-11-08 18:50:24,311] INFO maxSessionTimeout set to -1 (org.apache.zookeeper.server.ZooKeeperServer)
      [2018-11-08 18:50:24,329] INFO binding to port 0.0.0.0/0.0.0.0:2181 (org.apache.zookeeper.server.NIOServerCnxnFactory)

      • 评论…
        • in this conversation