Welcome to my website, have a nice day!
Dream it, Do it, Make it!

zookeeper启动报错:Address unresolved

ZOOKEEPER节点启动报错信息如下:

2021-10-17 12:20:18,528 [myid:] - INFO  [main:[email protected]] - Reading configuration from: /home/michael/apache-zookeeper-3.7.0-bin/conf/zoo1.cfg
2021-10-17 12:20:18,536 [myid:] - INFO  [main:[email protected]] - clientPortAddress is 0.0.0.0:2181
2021-10-17 12:20:18,537 [myid:] - INFO  [main:[email protected]] - secureClientPort is not set
2021-10-17 12:20:18,537 [myid:] - INFO  [main:[email protected]] - observerMasterPort is not set
2021-10-17 12:20:18,537 [myid:] - INFO  [main:QuorumPeerCo[email protected]] - metricsProvider.className is org.apache.zookeeper.metrics.impl.DefaultMetricsProvider
2021-10-17 12:20:18,547 [myid:] - ERROR [main:[email protected]] - Invalid config, exiting abnormally
org.apache.zookeeper.server.quorum.QuorumPeerConfig$ConfigException: Address unresolved: master:3888 
    at org.apache.zookeeper.server.quorum.QuorumPeer$QuorumServer.initializeWithAddressString(QuorumPeer.java:357)
    at org.apache.zookeeper.server.quorum.QuorumPeer$QuorumServer.<init>(QuorumPeer.java:278)
    at org.apache.zookeeper.server.quorum.QuorumPeer$QuorumServer.<init>(QuorumPeer.java:273)
    at org.apache.zookeeper.server.quorum.flexible.QuorumMaj.<init>(QuorumMaj.java:92)
    at org.apache.zookeeper.server.quorum.QuorumPeerConfig.createQuorumVerifier(QuorumPeerConfig.java:658)
    at org.apache.zookeeper.server.quorum.QuorumPeerConfig.parseDynamicConfig(QuorumPeerConfig.java:689)
    at org.apache.zookeeper.server.quorum.QuorumPeerConfig.setupQuorumPeerConfig(QuorumPeerConfig.java:663)
    at org.apache.zookeeper.server.quorum.QuorumPeerConfig.parseProperties(QuorumPeerConfig.java:491)
    at org.apache.zookeeper.server.quorum.QuorumPeerConfig.parse(QuorumPeerConfig.java:194)
    at org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:125)
    at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:91)
Invalid config, exiting abnormally

地址配置错误,比如hosts文件未映射,端口前有空格等。

查看配置文件,设置:set list显示隐藏字符:

显示隐藏字符

赞(0)
未经允许禁止转载:Ddmit » zookeeper启动报错:Address unresolved

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址