您当前的位置:首页 > 计算机 > 服务器 > 万维网络 > 中间件

zookeeper启动报错:Address unresolved

时间:07-15来源:作者:点击数:

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

2021-10-17 12:20:18,528 [myid:] - INFO  [main:QuorumPeerConfig@174] - Reading configuration from: /home/michael/apache-zookeeper-3.7.0-bin/conf/zoo1.cfg
2021-10-17 12:20:18,536 [myid:] - INFO  [main:QuorumPeerConfig@444] - clientPortAddress is 0.0.0.0:2181
2021-10-17 12:20:18,537 [myid:] - INFO  [main:QuorumPeerConfig@448] - secureClientPort is not set
2021-10-17 12:20:18,537 [myid:] - INFO  [main:QuorumPeerConfig@464] - observerMasterPort is not set
2021-10-17 12:20:18,537 [myid:] - INFO  [main:QuorumPeerConfig@481] - metricsProvider.className is org.apache.zookeeper.metrics.impl.DefaultMetricsProvider
2021-10-17 12:20:18,547 [myid:] - ERROR [main:QuorumPeerMain@99] - 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显示隐藏字符:

显示隐藏字符
方便获取更多学习、工作、生活信息请关注本站微信公众号城东书院 微信服务号城东书院 微信订阅号
推荐内容
相关内容
栏目更新
栏目热门