各位大佬请问一下,今天下午安装kafka,在启动Zookeeper时,停止在INFO binding to port 0.0.0.0/0.0.0.0:21(org.apache.zookeeper.server.NIOServerCnxnFactory)界面,只能中止。 使用free -m查看还有90%的内存,所以应该不是内存的问题。 请问这是因为什么?谢谢
我把端口改成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)
21端口被占用,zookeeper默认端口2181,你改成21了?
你好,请问怎么修改zookeeper端口?
把你zookeeper配置文件zoo.cfg粘贴出来看下
我把端口改成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)
卡住就是启成功了。。
解决了吗?我需要看zoo.cfg你是怎么配的
卡住以后进行什么操作。。
按照教程,继续你的操作呀。
你可以telnet一下zookeeper
telnet localhost 2181
你的答案