创建Zookeeper伪集群启动失败

  • Post author:
  • Post category:其他




创建Zookeeper伪集群启动失败


😂报的错误


2020-10-20 11:09:35,169 [myid:] – ERROR [main:QuorumPeerMain@98] – Invalid config, exiting abnormally

org.apache.zookeeper.server.quorum.QuorumPeerConfig



C

o

n

f

i

g

E

x

c

e

p

t

i

o

n

:

A

d

d

r

e

s

s

u

n

r

e

s

o

l

v

e

d

:

192.168.84.128

:

3881

a

t

o

r

g

.

a

p

a

c

h

e

.

z

o

o

k

e

e

p

e

r

.

s

e

r

v

e

r

.

q

u

o

r

u

m

.

Q

u

o

r

u

m

P

e

e

r

ConfigException: Address unresolved: 192.168.84.128:3881 at org.apache.zookeeper.server.quorum.QuorumPeer






C


o


n


f


i


g


E


x


c


e


p


t


i


o


n




:








A


d


d


r


e


s


s


u


n


r


e


s


o


l


v


e


d




:








1


9


2


.


1


6


8


.


8


4


.


1


2


8




:








3


8


8


1


a


t


o


r


g


.


a


p


a


c


h


e


.


z


o


o


k


e


e


p


e


r


.


s


e


r


v


e


r


.


q


u


o


r


u


m


.


Q


u


o


r


u


m


P


e


e


r





QuorumServer.(QuorumPeer.java:319)

at org.apache.zookeeper.server.quorum.flexible.QuorumMaj.(QuorumMaj.java:92)

at org.apache.zookeeper.server.quorum.QuorumPeerConfig.createQuorumVerifier(QuorumPeerConfig.java:672)

at org.apache.zookeeper.server.quorum.QuorumPeerConfig.parseDynamicConfig(QuorumPeerConfig.java:703)

at org.apache.zookeeper.server.quorum.QuorumPeerConfig.setupQuorumPeerConfig(QuorumPeerConfig.java:677)

at org.apache.zookeeper.server.quorum.QuorumPeerConfig.parseProperties(QuorumPeerConfig.java:506)

at org.apache.zookeeper.server.quorum.QuorumPeerConfig.parse(QuorumPeerConfig.java:193)

at org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:124)

at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:90)

Invalid config, exiting abnormally

2020-10-20 11:09:35,171 [myid:] – INFO [main:ZKAuditProvider@42] – ZooKeeper audit is disabled.

2020-10-20 11:09:35,172 [myid:] – ERROR [main:ServiceUtils@42] – Exiting JVM with code 2

在这里插入图片描述

配置项后面不能有空格;

去掉空格问题就解决了。



版权声明:本文为haochenfeishi原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。