zookeeper集群部署,阿里云服务器,一台windows服务器配置完成后启动zookeeper闪退,日志如下
2023-05-25 16:06:30,964 [myid:] - INFO [main:o.a.z.s.q.QuorumPeerConfig@177] - Reading configuration from: D:\Yonghong\Vooltdb3\zookeeper\bin\..\conf\zoo.cfg
2023-05-25 16:06:30,983 [myid:] - INFO [main:o.a.z.s.q.QuorumPeerConfig@440] - clientPortAddress is 0.0.0.0:2182
2023-05-25 16:06:30,985 [myid:] - INFO [main:o.a.z.s.q.QuorumPeerConfig@444] - secureClientPort is not set
2023-05-25 16:06:30,985 [myid:] - INFO [main:o.a.z.s.q.QuorumPeerConfig@460] - observerMasterPort is not set
2023-05-25 16:06:30,985 [myid:] - INFO [main:o.a.z.s.q.QuorumPeerConfig@477] - metricsProvider.className is org.apache.zookeeper.metrics.impl.DefaultMetricsProvider
2023-05-25 16:06:31,047 [myid:3] - INFO [main:o.a.z.s.DatadirCleanupManager@78] - autopurge.snapRetainCount set to 3
2023-05-25 16:06:31,048 [myid:3] - INFO [main:o.a.z.s.DatadirCleanupManager@79] - autopurge.purgeInterval set to 0
2023-05-25 16:06:31,048 [myid:3] - INFO [main:o.a.z.s.DatadirCleanupManager@101] - Purge task is not scheduled.
2023-05-25 16:06:31,049 [myid:3] - INFO [main:o.a.z.j.ManagedUtil@46] - Log4j 1.2 jmx support not found; jmx disabled.
2023-05-25 16:06:31,049 [myid:3] - INFO [main:o.a.z.s.q.QuorumPeerMain@152] - Starting quorum peer, myid=3
2023-05-25 16:06:31,071 [myid:3] - INFO [main:o.a.z.s.ServerMetrics@64] - ServerMetrics initialized with provider org.apache.zookeeper.metrics.impl.DefaultMetricsProvider@1593948d
2023-05-25 16:06:31,082 [myid:3] - INFO [main:o.a.z.s.a.DigestAuthenticationProvider@47] - ACL digest algorithm is: SHA1
2023-05-25 16:06:31,082 [myid:3] - INFO [main:o.a.z.s.a.DigestAuthenticationProvider@61] - zookeeper.DigestAuthenticationProvider.enabled = true
2023-05-25 16:06:31,089 [myid:3] - INFO [main:o.a.z.s.ServerCnxnFactory@169] - Using org.apache.zookeeper.server.NIOServerCnxnFactory as server connection factory
2023-05-25 16:06:31,090 [myid:3] - WARN [main:o.a.z.s.ServerCnxnFactory@309] - maxCnxns is not configured, using default value 0.
2023-05-25 16:06:31,093 [myid:3] - INFO [main:o.a.z.s.NIOServerCnxnFactory@652] - Configuring NIO connection handler with 10s sessionless connection timeout, 1 selector thread(s), 8 worker threads, and 64 kB direct buffers.
2023-05-25 16:06:31,227 [myid:3] - INFO [main:o.a.z.s.NIOServerCnxnFactory@660] - binding to port 0.0.0.0/0.0.0.0:2182
2023-05-25 16:06:31,239 [myid:3] - INFO [main:o.a.z.s.q.QuorumPeer@798] - zookeeper.quorumCnxnTimeoutMs=-1
2023-05-25 16:06:31,267 [myid:3] - INFO [main:o.e.j.u.l.Log@170] - Logging initialized @663ms to org.eclipse.jetty.util.log.Slf4jLog
2023-05-25 16:06:31,371 [myid:3] - WARN [main:o.e.j.s.h.ContextHandler@1656] - o.e.j.s.ServletContextHandler@134593bf{/,null,STOPPED} contextPath ends with /*
2023-05-25 16:06:31,371 [myid:3] - WARN [main:o.e.j.s.h.ContextHandler@1667] - Empty contextPath
2023-05-25 16:06:31,393 [myid:3] - INFO [main:o.a.z.c.X509Util@77] - Setting -D jdk.tls.rejectClientInitiatedRenegotiation=true to disable client-initiated TLS renegotiation
2023-05-25 16:06:31,395 [myid:3] - INFO [main:o.a.z.s.p.FileTxnSnapLog@124] - zookeeper.snapshot.trust.empty : false
2023-05-25 16:06:31,400 [myid:3] - INFO [main:o.a.z.s.q.QuorumPeer@1764] - Local sessions disabled
2023-05-25 16:06:31,400 [myid:3] - INFO [main:o.a.z.s.q.QuorumPeer@1775] - Local session upgrading disabled
2023-05-25 16:06:31,400 [myid:3] - INFO [main:o.a.z.s.q.QuorumPeer@1742] - tickTime set to 2000
2023-05-25 16:06:31,400 [myid:3] - INFO [main:o.a.z.s.q.QuorumPeer@1786] - minSessionTimeout set to 4000
2023-05-25 16:06:31,400 [myid:3] - INFO [main:o.a.z.s.q.QuorumPeer@1797] - maxSessionTimeout set to 40000
2023-05-25 16:06:31,400 [myid:3] - INFO [main:o.a.z.s.q.QuorumPeer@1822] - initLimit set to 10
2023-05-25 16:06:31,585 [myid:3] - INFO [main:o.a.z.s.q.QuorumPeer@2009] - syncLimit set to 5
2023-05-25 16:06:31,586 [myid:3] - INFO [main:o.a.z.s.q.QuorumPeer@2024] - connectToLearnerMasterLimit set to 0
2023-05-25 16:06:31,600 [myid:3] - INFO [main:o.a.z.ZookeeperBanner@42] -
2023-05-25 16:06:31,600 [myid:3] - INFO [main:o.a.z.ZookeeperBanner@42] - ______ _
2023-05-25 16:06:31,600 [myid:3] - INFO [main:o.a.z.ZookeeperBanner@42] - |___ / | |
2023-05-25 16:06:31,601 [myid:3] - INFO [main:o.a.z.ZookeeperBanner@42] - / / ___ ___ | | __ ___ ___ _ __ ___ _ __
2023-05-25 16:06:31,601 [myid:3] - INFO [main:o.a.z.ZookeeperBanner@42] - / / / _ \ / _ \ | |/ / / _ \ / _ \ | '_ \ / _ \ | '__|
2023-05-25 16:06:31,601 [myid:3] - INFO [main:o.a.z.ZookeeperBanner@42] - / /__ | (_) | | (_) | | < | __/ | __/ | |_) | | __/ | |
2023-05-25 16:06:31,601 [myid:3] - INFO [main:o.a.z.ZookeeperBanner@42] - /_____| \___/ \___/ |_|\_\ \___| \___| | .__/ \___| |_|
2023-05-25 16:06:31,601 [myid:3] - INFO [main:o.a.z.ZookeeperBanner@42] - | |
2023-05-25 16:06:31,601 [myid:3] - INFO [main:o.a.z.ZookeeperBanner@42] - |_|
2023-05-25 16:06:31,601 [myid:3] - INFO [main:o.a.z.ZookeeperBanner@42] -
2023-05-25 16:06:31,610 [myid:3] - INFO [main:o.a.z.Environment@98] - Server environment:zookeeper.version=3.8.0-5a02a05eddb59aee6ac762f7ea82e92a68eb9c0f, built on 2022-02-25 08:49 UTC
2023-05-25 16:06:31,610 [myid:3] - INFO [main:o.a.z.Environment@98] - Server environment:host.name=iZhdvox5xb4nhhZ
2023-05-25 16:06:31,610 [myid:3] - INFO [main:o.a.z.Environment@98] - Server environment:java.version=1.8.0_181
2023-05-25 16:06:31,611 [myid:3] - INFO [main:o.a.z.Environment@98] - Server environment:java.vendor=Oracle Corporation
2023-05-25 16:06:31,611 [myid:3] - INFO [main:o.a.z.Environment@98] - Server environment:java.home=C:\Program Files\Java\jdk1.8.0_181\jre
2023-05-25 16:06:31,611 [myid:3] - INFO [main:o.a.z.Environment@98] - Server environment:java.class.path=D:\Yonghong\Vooltdb3\zookeeper\bin\..\build\classes;D:\Yonghong\Vooltdb3\zookeeper\bin\..\build\lib\*;D:\Yonghong\Vooltdb3\zookeeper\bin\..\*;D:\Yonghong\Vooltdb3\zookeeper\bin\..\lib\audience-annotations-0.12.0.jar;D:\Yonghong\Vooltdb3\zookeeper\bin\..\lib\commons-cli-1.4.jar;D:\Yonghong\Vooltdb3\zookeeper\bin\..\lib\commons-io-2.11.0.jar;D:\Yonghong\Vooltdb3\zookeeper\bin\..\lib\jackson-annotations-2.13.1.jar;D:\Yonghong\Vooltdb3\zookeeper\bin\..\lib\jackson-core-2.13.1.jar;D:\Yonghong\Vooltdb3\zookeeper\bin\..\lib\jackson-databind-2.13.1.jar;D:\Yonghong\Vooltdb3\zookeeper\bin\..\lib\javax.servlet-api-3.1.0.jar;D:\Yonghong\Vooltdb3\zookeeper\bin\..\lib\jetty-http-9.4.43.v20210629.jar;D:\Yonghong\Vooltdb3\zookeeper\bin\..\lib\jetty-io-9.4.43.v20210629.jar;D:\Yonghong\Vooltdb3\zookeeper\bin\..\lib\jetty-security-9.4.43.v20210629.jar;D:\Yonghong\Vooltdb3\zookeeper\bin\..\lib\jetty-server-9.4.43.v20210629.jar;D:\Yonghong\Vooltdb3\zookeeper\bin\..\lib\jetty-servlet-9.4.43.v20210629.jar;D:\Yonghong\Vooltdb3\zookeeper\bin\..\lib\jetty-util-9.4.43.v20210629.jar;D:\Yonghong\Vooltdb3\zookeeper\bin\..\lib\jetty-util-ajax-9.4.43.v20210629.jar;D:\Yonghong\Vooltdb3\zookeeper\bin\..\lib\jline-2.14.6.jar;D:\Yonghong\Vooltdb3\zookeeper\bin\..\lib\logback-classic-1.2.10.jar;D:\Yonghong\Vooltdb3\zookeeper\bin\..\lib\logback-core-1.2.10.jar;D:\Yonghong\Vooltdb3\zookeeper\bin\..\lib\metrics-core-4.1.12.1.jar;D:\Yonghong\Vooltdb3\zookeeper\bin\..\lib\netty-buffer-4.1.73.Final.jar;D:\Yonghong\Vooltdb3\zookeeper\bin\..\lib\netty-codec-4.1.73.Final.jar;D:\Yonghong\Vooltdb3\zookeeper\bin\..\lib\netty-common-4.1.73.Final.jar;D:\Yonghong\Vooltdb3\zookeeper\bin\..\lib\netty-handler-4.1.73.Final.jar;D:\Yonghong\Vooltdb3\zookeeper\bin\..\lib\netty-resolver-4.1.73.Final.jar;D:\Yonghong\Vooltdb3\zookeeper\bin\..\lib\netty-tcnative-2.0.48.Final.jar;D:\Yonghong\Vooltdb3\zookeeper\bin\..\lib\netty-tcnative-classes-2.0.48.Final.jar;D:\Yonghong\Vooltdb3\zookeeper\bin\..\lib\netty-transport-4.1.73.Final.jar;D:\Yonghong\Vooltdb3\zookeeper\bin\..\lib\netty-transport-classes-epoll-4.1.73.Final.jar;D:\Yonghong\Vooltdb3\zookeeper\bin\..\lib\netty-transport-native-epoll-4.1.73.Final.jar;D:\Yonghong\Vooltdb3\zookeeper\bin\..\lib\netty-transport-native-unix-common-4.1.73.Final.jar;D:\Yonghong\Vooltdb3\zookeeper\bin\..\lib\simpleclient-0.9.0.jar;D:\Yonghong\Vooltdb3\zookeeper\bin\..\lib\simpleclient_common-0.9.0.jar;D:\Yonghong\Vooltdb3\zookeeper\bin\..\lib\simpleclient_hotspot-0.9.0.jar;D:\Yonghong\Vooltdb3\zookeeper\bin\..\lib\simpleclient_servlet-0.9.0.jar;D:\Yonghong\Vooltdb3\zookeeper\bin\..\lib\slf4j-api-1.7.30.jar;D:\Yonghong\Vooltdb3\zookeeper\bin\..\lib\snappy-java-1.1.7.7.jar;D:\Yonghong\Vooltdb3\zookeeper\bin\..\lib\zookeeper-3.8.0.jar;D:\Yonghong\Vooltdb3\zookeeper\bin\..\lib\zookeeper-jute-3.8.0.jar;D:\Yonghong\Vooltdb3\zookeeper\bin\..\lib\zookeeper-prometheus-metrics-3.8.0.jar;D:\Yonghong\Vooltdb3\zookeeper\bin\..\conf
2023-05-25 16:06:31,611 [myid:3] - INFO [main:o.a.z.Environment@98] - Server environment:java.library.path=C:\Program Files\Java\jdk1.8.0_181\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\Docker;C:\Program Files\dotnet\;C:\Program Files (x86)\dotnet\;C:\Program Files (x86)\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\130\DTS\Binn\;C:\Program Files\Microsoft SQL Server\130\DTS\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files\Azure Data Studio\bin;D:\web\mysql-5.7.25-winx64\bin;C:\Program Files (x86)\NetSarang\Xftp 7\;C:\Program Files\VisualSVN Server\bin;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\150\DTS\Binn\;C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Azure Data Studio\bin;C:\Program Files\Bandizip\;C:\Users\Administrator\.dotnet\tools;C:\Program Files\Java\jdk1.8.0_181\bin;;.
2023-05-25 16:06:31,611 [myid:3] - INFO [main:o.a.z.Environment@98] - Server environment:java.io.tmpdir=C:\Users\ADMINI~1\AppData\Local\Temp\2\
2023-05-25 16:06:31,611 [myid:3] - INFO [main:o.a.z.Environment@98] - Server environment:java.compiler=<NA>
2023-05-25 16:06:31,611 [myid:3] - INFO [main:o.a.z.Environment@98] - Server environment:os.name=Windows Server 2016
2023-05-25 16:06:31,611 [myid:3] - INFO [main:o.a.z.Environment@98] - Server environment:os.arch=amd64
2023-05-25 16:06:31,611 [myid:3] - INFO [main:o.a.z.Environment@98] - Server environment:os.version=10.0
2023-05-25 16:06:31,611 [myid:3] - INFO [main:o.a.z.Environment@98] - Server environment:user.name=Administrator
2023-05-25 16:06:31,612 [myid:3] - INFO [main:o.a.z.Environment@98] - Server environment:user.home=C:\Users\Administrator
2023-05-25 16:06:31,612 [myid:3] - INFO [main:o.a.z.Environment@98] - Server environment:user.dir=D:\Yonghong\Vooltdb3\zookeeper\bin
2023-05-25 16:06:31,612 [myid:3] - INFO [main:o.a.z.Environment@98] - Server environment:os.memory.free=455MB
2023-05-25 16:06:31,612 [myid:3] - INFO [main:o.a.z.Environment@98] - Server environment:os.memory.max=7164MB
2023-05-25 16:06:31,612 [myid:3] - INFO [main:o.a.z.Environment@98] - Server environment:os.memory.total=483MB
2023-05-25 16:06:31,612 [myid:3] - INFO [main:o.a.z.s.ZooKeeperServer@140] - zookeeper.enableEagerACLCheck = false
2023-05-25 16:06:31,612 [myid:3] - INFO [main:o.a.z.s.ZooKeeperServer@153] - zookeeper.digest.enabled = true
2023-05-25 16:06:31,612 [myid:3] - INFO [main:o.a.z.s.ZooKeeperServer@157] - zookeeper.closeSessionTxn.enabled = true
2023-05-25 16:06:31,612 [myid:3] - INFO [main:o.a.z.s.ZooKeeperServer@1496] - zookeeper.flushDelay = 0 ms
2023-05-25 16:06:31,612 [myid:3] - INFO [main:o.a.z.s.ZooKeeperServer@1505] - zookeeper.maxWriteQueuePollTime = 0 ms
2023-05-25 16:06:31,613 [myid:3] - INFO [main:o.a.z.s.ZooKeeperServer@1514] - zookeeper.maxBatchSize=1000
2023-05-25 16:06:31,613 [myid:3] - INFO [main:o.a.z.s.ZooKeeperServer@264] - zookeeper.intBufferStartingSizeBytes = 1024
2023-05-25 16:06:31,619 [myid:3] - INFO [main:o.a.z.s.w.WatchManagerFactory@42] - Using org.apache.zookeeper.server.watch.WatchManager as watch manager
2023-05-25 16:06:31,619 [myid:3] - INFO [main:o.a.z.s.w.WatchManagerFactory@42] - Using org.apache.zookeeper.server.watch.WatchManager as watch manager
2023-05-25 16:06:31,619 [myid:3] - INFO [main:o.a.z.s.ZKDatabase@132] - zookeeper.snapshotSizeFactor = 0.33
2023-05-25 16:06:31,619 [myid:3] - INFO [main:o.a.z.s.ZKDatabase@152] - zookeeper.commitLogCount=500
2023-05-25 16:06:31,634 [myid:3] - INFO [main:o.a.z.s.q.QuorumPeer@2088] - Using insecure (non-TLS) quorum communication
2023-05-25 16:06:31,635 [myid:3] - INFO [main:o.a.z.s.q.QuorumPeer@2094] - Port unification disabled
2023-05-25 16:06:31,635 [myid:3] - INFO [main:o.a.z.s.q.QuorumPeer@181] - multiAddress.enabled set to false
2023-05-25 16:06:31,635 [myid:3] - INFO [main:o.a.z.s.q.QuorumPeer@206] - multiAddress.reachabilityCheckEnabled set to true
2023-05-25 16:06:31,635 [myid:3] - INFO [main:o.a.z.s.q.QuorumPeer@193] - multiAddress.reachabilityCheckTimeoutMs set to 1000
2023-05-25 16:06:31,635 [myid:3] - INFO [main:o.a.z.s.q.QuorumPeer@2549] - QuorumPeer communication is not secured! (SASL auth disabled)
2023-05-25 16:06:31,635 [myid:3] - INFO [main:o.a.z.s.q.QuorumPeer@2574] - quorum.cnxn.threads.size set to 20
2023-05-25 16:06:31,639 [myid:3] - INFO [main:o.a.z.s.p.SnapStream@61] - zookeeper.snapshot.compression.method = CHECKED
2023-05-25 16:06:31,640 [myid:3] - INFO [main:o.a.z.s.p.FileSnap@85] - Reading snapshot D:\Yonghong\Vooltdb3\zookeeper\data\version-2\snapshot.0
2023-05-25 16:06:31,643 [myid:3] - INFO [main:o.a.z.s.DataTree@1712] - The digest value is empty in snapshot
2023-05-25 16:06:31,646 [myid:3] - INFO [main:o.a.z.s.ZKDatabase@289] - Snapshot loaded in 11 ms, highest zxid is 0x0, digest is 1371985504
2023-05-25 16:06:31,650 [myid:3] - INFO [main:o.e.j.s.Server@375] - jetty-9.4.43.v20210629; built: 2021-06-30T11:07:22.254Z; git: 526006ecfa3af7f1a27ef3a288e2bef7ea9dd7e8; jvm 1.8.0_181-b13
2023-05-25 16:06:31,675 [myid:3] - INFO [main:o.e.j.s.s.DefaultSessionIdManager@334] - DefaultSessionIdManager workerName=node0
2023-05-25 16:06:31,675 [myid:3] - INFO [main:o.e.j.s.s.DefaultSessionIdManager@339] - No SessionScavenger set, using defaults
2023-05-25 16:06:31,677 [myid:3] - INFO [main:o.e.j.s.s.HouseKeeper@132] - node0 Scavenging every 660000ms
2023-05-25 16:06:31,682 [myid:3] - WARN [main:o.e.j.s.ConstraintSecurityHandler@759] - ServletContext@o.e.j.s.ServletContextHandler@134593bf{/,null,STARTING} has uncovered http methods for path: /*
2023-05-25 16:06:31,694 [myid:3] - INFO [main:o.e.j.s.h.ContextHandler@915] - Started o.e.j.s.ServletContextHandler@134593bf{/,null,AVAILABLE}
2023-05-25 16:06:31,697 [myid:3] - WARN [main:o.a.z.s.q.QuorumPeer@1137] - Problem starting AdminServer
org.apache.zookeeper.server.admin.AdminServer$AdminServerException: Problem starting AdminServer on address 0.0.0.0, port 8080 and command URL /commands
at org.apache.zookeeper.server.admin.JettyAdminServer.start(JettyAdminServer.java:194)
at org.apache.zookeeper.server.quorum.QuorumPeer.start(QuorumPeer.java:1135)
at org.apache.zookeeper.server.quorum.QuorumPeerMain.runFromConfig(QuorumPeerMain.java:229)
at org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:137)
at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:91)
Caused by: java.io.IOException: Failed to bind to /0.0.0.0:8080
at org.eclipse.jetty.server.ServerConnector.openAcceptChannel(ServerConnector.java:349)
at org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:310)
at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkConnector.java:80)
at org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java:234)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
at org.eclipse.jetty.server.Server.doStart(Server.java:401)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
at org.apache.zookeeper.server.admin.JettyAdminServer.start(JettyAdminServer.java:185)
... 4 common frames omitted
Caused by: java.net.BindException: Address already in use: bind
at sun.nio.ch.Net.bind0(Native Method)
at sun.nio.ch.Net.bind(Net.java:433)
at sun.nio.ch.Net.bind(Net.java:425)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
at org.eclipse.jetty.server.ServerConnector.openAcceptChannel(ServerConnector.java:344)
... 11 common frames omitted
2023-05-25 16:06:31,698 [myid:3] - INFO [main:o.a.z.s.q.QuorumPeer@2591] - Using 10000ms as the quorum cnxn socket timeout
2023-05-25 16:06:31,703 [myid:3] - INFO [main:o.a.z.s.q.QuorumCnxManager$Listener@924] - Election port bind maximum retries is 3
2023-05-25 16:06:31,705 [myid:3] - INFO [main:o.a.z.s.q.FastLeaderElection@90] - zookeeper.fastleader.minNotificationInterval = 200 ms
2023-05-25 16:06:31,706 [myid:3] - INFO [main:o.a.z.s.q.FastLeaderElection@92] - zookeeper.fastleader.maxNotificationInterval = 60000 ms
2023-05-25 16:06:31,709 [myid:3] - INFO [main:o.a.z.a.ZKAuditProvider@42] - ZooKeeper audit is disabled.
2023-05-25 16:06:31,710 [myid:] - ERROR [ListenerHandler-/8.142.69.36:3888:o.a.z.s.q.QuorumCnxManager$Listener$ListenerHandler@1099] - Exception while listening to address /8.142.69.36:3888
java.net.BindException: Cannot assign requested address: JVM_Bind
at java.net.DualStackPlainSocketImpl.bind0(Native Method)
at java.net.DualStackPlainSocketImpl.socketBind(DualStackPlainSocketImpl.java:106)
at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:190)
at java.net.ServerSocket.bind(ServerSocket.java:375)
at java.net.ServerSocket.bind(ServerSocket.java:329)
at org.apache.zookeeper.server.quorum.QuorumCnxManager$Listener$ListenerHandler.createNewServerSocket(QuorumCnxManager.java:1141)
at org.apache.zookeeper.server.quorum.QuorumCnxManager$Listener$ListenerHandler.acceptConnections(QuorumCnxManager.java:1070)
at org.apache.zookeeper.server.quorum.QuorumCnxManager$Listener$ListenerHandler.run(QuorumCnxManager.java:1039)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
2023-05-25 16:06:31,772 [myid:] - INFO [QuorumPeer[myid=3](plain=[0:0:0:0:0:0:0:0]:2182)(secure=disabled):o.a.z.s.q.QuorumPeer@1455] - LOOKING
2023-05-25 16:06:31,774 [myid:] - INFO [QuorumPeer[myid=3](plain=[0:0:0:0:0:0:0:0]:2182)(secure=disabled):o.a.z.s.q.FastLeaderElection@946] - New election. My id = 3, proposed zxid=0x0
2023-05-25 16:06:31,785 [myid:] - INFO [WorkerReceiver[myid=3]:o.a.z.s.q.FastLeaderElection$Messenger$WorkerReceiver@391] - Notification: my state:LOOKING; n.sid:3, n.state:LOOKING, n.leader:3, n.round:0x1, n.peerEpoch:0x0, n.zxid:0x0, message format version:0x2, n.config version:0x0
2023-05-25 16:06:31,989 [myid:] - INFO [QuorumPeer[myid=3](plain=[0:0:0:0:0:0:0:0]:2182)(secure=disabled):o.a.z.s.q.FastLeaderElection@996] - Notification time out: 400 ms
2023-05-25 16:06:32,390 [myid:] - INFO [QuorumPeer[myid=3](plain=[0:0:0:0:0:0:0:0]:2182)(secure=disabled):o.a.z.s.q.FastLeaderElection@996] - Notification time out: 800 ms
2023-05-25 16:06:32,710 [myid:] - ERROR [ListenerHandler-/8.142.69.36:3888:o.a.z.s.q.QuorumCnxManager$Listener$ListenerHandler@1099] - Exception while listening to address /8.142.69.36:3888
java.net.BindException: Cannot assign requested address: JVM_Bind
at java.net.DualStackPlainSocketImpl.bind0(Native Method)
at java.net.DualStackPlainSocketImpl.socketBind(DualStackPlainSocketImpl.java:106)
at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:190)
at java.net.ServerSocket.bind(ServerSocket.java:375)
at java.net.ServerSocket.bind(ServerSocket.java:329)
at org.apache.zookeeper.server.quorum.QuorumCnxManager$Listener$ListenerHandler.createNewServerSocket(QuorumCnxManager.java:1141)
at org.apache.zookeeper.server.quorum.QuorumCnxManager$Listener$ListenerHandler.acceptConnections(QuorumCnxManager.java:1070)
at org.apache.zookeeper.server.quorum.QuorumCnxManager$Listener$ListenerHandler.run(QuorumCnxManager.java:1039)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
2023-05-25 16:06:32,795 [myid:] - WARN [QuorumConnectionThread-[myid=3]-2:o.a.z.s.q.QuorumCnxManager@401] - Cannot open channel to 2 at election address /8.142.67.157:3888
java.net.ConnectException: Connection refused: connect
at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:85)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at org.apache.zookeeper.server.quorum.QuorumCnxManager.initiateConnection(QuorumCnxManager.java:384)
at org.apache.zookeeper.server.quorum.QuorumCnxManager$QuorumConnectionReqThread.run(QuorumCnxManager.java:458)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
2023-05-25 16:06:32,795 [myid:] - WARN [QuorumConnectionThread-[myid=3]-1:o.a.z.s.q.QuorumCnxManager@401] - Cannot open channel to 1 at election address /39.100.69.253:3888
java.net.ConnectException: Connection refused: connect
at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:85)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at org.apache.zookeeper.server.quorum.QuorumCnxManager.initiateConnection(QuorumCnxManager.java:384)
at org.apache.zookeeper.server.quorum.QuorumCnxManager$QuorumConnectionReqThread.run(QuorumCnxManager.java:458)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
2023-05-25 16:06:33,191 [myid:] - INFO [QuorumPeer[myid=3](plain=[0:0:0:0:0:0:0:0]:2182)(secure=disabled):o.a.z.s.q.FastLeaderElection@996] - Notification time out: 1600 ms
2023-05-25 16:06:33,710 [myid:] - ERROR [ListenerHandler-/8.142.69.36:3888:o.a.z.s.q.QuorumCnxManager$Listener$ListenerHandler@1099] - Exception while listening to address /8.142.69.36:3888
java.net.BindException: Cannot assign requested address: JVM_Bind
at java.net.DualStackPlainSocketImpl.bind0(Native Method)
at java.net.DualStackPlainSocketImpl.socketBind(DualStackPlainSocketImpl.java:106)
at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:190)
at java.net.ServerSocket.bind(ServerSocket.java:375)
at java.net.ServerSocket.bind(ServerSocket.java:329)
at org.apache.zookeeper.server.quorum.QuorumCnxManager$Listener$ListenerHandler.createNewServerSocket(QuorumCnxManager.java:1141)
at org.apache.zookeeper.server.quorum.QuorumCnxManager$Listener$ListenerHandler.acceptConnections(QuorumCnxManager.java:1070)
at org.apache.zookeeper.server.quorum.QuorumCnxManager$Listener$ListenerHandler.run(QuorumCnxManager.java:1039)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
2023-05-25 16:06:34,196 [myid:] - WARN [QuorumConnectionThread-[myid=3]-3:o.a.z.s.q.QuorumCnxManager@401] - Cannot open channel to 1 at election address /39.100.69.253:3888
java.net.ConnectException: Connection refused: connect
at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:85)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at org.apache.zookeeper.server.quorum.QuorumCnxManager.initiateConnection(QuorumCnxManager.java:384)
at org.apache.zookeeper.server.quorum.QuorumCnxManager$QuorumConnectionReqThread.run(QuorumCnxManager.java:458)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
2023-05-25 16:06:34,197 [myid:] - WARN [QuorumConnectionThread-[myid=3]-1:o.a.z.s.q.QuorumCnxManager@401] - Cannot open channel to 2 at election address /8.142.67.157:3888
java.net.ConnectException: Connection refused: connect
at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:85)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at org.apache.zookeeper.server.quorum.QuorumCnxManager.initiateConnection(QuorumCnxManager.java:384)
at org.apache.zookeeper.server.quorum.QuorumCnxManager$QuorumConnectionReqThread.run(QuorumCnxManager.java:458)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
2023-05-25 16:06:34,712 [myid:] - ERROR [ListenerHandler-/8.142.69.36:3888:o.a.z.s.q.QuorumCnxManager$Listener$ListenerHandler@1118] - Leaving listener thread for address 8.142.69.36:3888 after 3 errors. Use zookeeper.electionPortBindRetry property to increase retry count.
2023-05-25 16:06:34,712 [myid:] - INFO [QuorumPeerListener:o.a.z.s.q.QuorumCnxManager$Listener@985] - Leaving listener
2023-05-25 16:06:34,713 [myid:] - ERROR [QuorumPeerListener:o.a.z.s.q.QuorumCnxManager$Listener@987] - As I'm leaving the listener thread, I won't be able to participate in leader election any longer: 8.142.69.36:3888
2023-05-25 16:06:34,716 [myid:] - ERROR [QuorumPeerListener:o.a.z.u.ServiceUtils@42] - Exiting JVM with code 14
另一台linux启动后日志如下
2023-05-25 11:58:41,456 [myid:] - INFO [main:o.a.z.s.q.QuorumPeerConfig@177] - Reading configuration from: /opt/Yonghong/C2/zookeeper/bin/../conf/zoo.cfg
2023-05-25 11:58:41,467 [myid:] - INFO [main:o.a.z.s.q.QuorumPeerConfig@440] - clientPortAddress is 0.0.0.0:2182
2023-05-25 11:58:41,468 [myid:] - INFO [main:o.a.z.s.q.QuorumPeerConfig@444] - secureClientPort is not set
2023-05-25 11:58:41,469 [myid:] - INFO [main:o.a.z.s.q.QuorumPeerConfig@460] - observerMasterPort is not set
2023-05-25 11:58:41,469 [myid:] - INFO [main:o.a.z.s.q.QuorumPeerConfig@477] - metricsProvider.className is org.apache.zookeeper.metrics.impl.DefaultMetricsProvider
2023-05-25 11:58:41,476 [myid:2] - INFO [main:o.a.z.s.DatadirCleanupManager@78] - autopurge.snapRetainCount set to 3
2023-05-25 11:58:41,476 [myid:2] - INFO [main:o.a.z.s.DatadirCleanupManager@79] - autopurge.purgeInterval set to 0
2023-05-25 11:58:41,477 [myid:2] - INFO [main:o.a.z.s.DatadirCleanupManager@101] - Purge task is not scheduled.
2023-05-25 11:58:41,478 [myid:2] - INFO [main:o.a.z.j.ManagedUtil@46] - Log4j 1.2 jmx support not found; jmx disabled.
2023-05-25 11:58:41,478 [myid:2] - INFO [main:o.a.z.s.q.QuorumPeerMain@152] - Starting quorum peer, myid=2
2023-05-25 11:58:41,491 [myid:2] - INFO [main:o.a.z.s.ServerMetrics@64] - ServerMetrics initialized with provider org.apache.zookeeper.metrics.impl.DefaultMetricsProvider@431cd9b2
2023-05-25 11:58:41,494 [myid:2] - INFO [main:o.a.z.s.a.DigestAuthenticationProvider@47] - ACL digest algorithm is: SHA1
2023-05-25 11:58:41,494 [myid:2] - INFO [main:o.a.z.s.a.DigestAuthenticationProvider@61] - zookeeper.DigestAuthenticationProvider.enabled = true
2023-05-25 11:58:41,499 [myid:2] - INFO [main:o.a.z.s.ServerCnxnFactory@169] - Using org.apache.zookeeper.server.NIOServerCnxnFactory as server connection factory
2023-05-25 11:58:41,501 [myid:2] - WARN [main:o.a.z.s.ServerCnxnFactory@309] - maxCnxns is not configured, using default value 0.
2023-05-25 11:58:41,503 [myid:2] - INFO [main:o.a.z.s.NIOServerCnxnFactory@652] - Configuring NIO connection handler with 10s sessionless connection timeout, 1 selector thread(s), 8 worker threads, and 64 kB direct buffers.
2023-05-25 11:58:41,509 [myid:2] - INFO [main:o.a.z.s.NIOServerCnxnFactory@660] - binding to port 0.0.0.0/0.0.0.0:2182
2023-05-25 11:58:41,516 [myid:2] - INFO [main:o.a.z.s.q.QuorumPeer@798] - zookeeper.quorumCnxnTimeoutMs=-1
2023-05-25 11:58:41,539 [myid:2] - INFO [main:o.e.j.u.l.Log@170] - Logging initialized @666ms to org.eclipse.jetty.util.log.Slf4jLog
2023-05-25 11:58:41,614 [myid:2] - WARN [main:o.e.j.s.h.ContextHandler@1656] - o.e.j.s.ServletContextHandler@12d2ce03{/,null,STOPPED} contextPath ends with /*
2023-05-25 11:58:41,615 [myid:2] - WARN [main:o.e.j.s.h.ContextHandler@1667] - Empty contextPath
2023-05-25 11:58:41,632 [myid:2] - INFO [main:o.a.z.c.X509Util@77] - Setting -D jdk.tls.rejectClientInitiatedRenegotiation=true to disable client-initiated TLS renegotiation
2023-05-25 11:58:41,634 [myid:2] - INFO [main:o.a.z.s.p.FileTxnSnapLog@124] - zookeeper.snapshot.trust.empty : false
2023-05-25 11:58:41,637 [myid:2] - INFO [main:o.a.z.s.q.QuorumPeer@1764] - Local sessions disabled
2023-05-25 11:58:41,637 [myid:2] - INFO [main:o.a.z.s.q.QuorumPeer@1775] - Local session upgrading disabled
2023-05-25 11:58:41,637 [myid:2] - INFO [main:o.a.z.s.q.QuorumPeer@1742] - tickTime set to 2000
2023-05-25 11:58:41,638 [myid:2] - INFO [main:o.a.z.s.q.QuorumPeer@1786] - minSessionTimeout set to 4000
2023-05-25 11:58:41,638 [myid:2] - INFO [main:o.a.z.s.q.QuorumPeer@1797] - maxSessionTimeout set to 40000
2023-05-25 11:58:41,638 [myid:2] - INFO [main:o.a.z.s.q.QuorumPeer@1822] - initLimit set to 10
2023-05-25 11:58:41,638 [myid:2] - INFO [main:o.a.z.s.q.QuorumPeer@2009] - syncLimit set to 5
2023-05-25 11:58:41,638 [myid:2] - INFO [main:o.a.z.s.q.QuorumPeer@2024] - connectToLearnerMasterLimit set to 0
2023-05-25 11:58:41,646 [myid:2] - INFO [main:o.a.z.ZookeeperBanner@42] -
2023-05-25 11:58:41,646 [myid:2] - INFO [main:o.a.z.ZookeeperBanner@42] - ______ _
2023-05-25 11:58:41,647 [myid:2] - INFO [main:o.a.z.ZookeeperBanner@42] - |___ / | |
2023-05-25 11:58:41,647 [myid:2] - INFO [main:o.a.z.ZookeeperBanner@42] - / / ___ ___ | | __ ___ ___ _ __ ___ _ __
2023-05-25 11:58:41,647 [myid:2] - INFO [main:o.a.z.ZookeeperBanner@42] - / / / _ \ / _ \ | |/ / / _ \ / _ \ | '_ \ / _ \ | '__|
2023-05-25 11:58:41,647 [myid:2] - INFO [main:o.a.z.ZookeeperBanner@42] - / /__ | (_) | | (_) | | < | __/ | __/ | |_) | | __/ | |
2023-05-25 11:58:41,647 [myid:2] - INFO [main:o.a.z.ZookeeperBanner@42] - /_____| \___/ \___/ |_|\_\ \___| \___| | .__/ \___| |_|
2023-05-25 11:58:41,647 [myid:2] - INFO [main:o.a.z.ZookeeperBanner@42] - | |
2023-05-25 11:58:41,647 [myid:2] - INFO [main:o.a.z.ZookeeperBanner@42] - |_|
2023-05-25 11:58:41,647 [myid:2] - INFO [main:o.a.z.ZookeeperBanner@42] -
2023-05-25 11:58:41,648 [myid:2] - INFO [main:o.a.z.Environment@98] - Server environment:zookeeper.version=3.8.0-5a02a05eddb59aee6ac762f7ea82e92a68eb9c0f, built on 2022-02-25 08:49 UTC
2023-05-25 11:58:41,648 [myid:2] - INFO [main:o.a.z.Environment@98] - Server environment:host.name=iZhdvox5xb4nhgZ
2023-05-25 11:58:41,648 [myid:2] - INFO [main:o.a.z.Environment@98] - Server environment:java.version=11.0.1
2023-05-25 11:58:41,648 [myid:2] - INFO [main:o.a.z.Environment@98] - Server environment:java.vendor=Oracle Corporation
2023-05-25 11:58:41,649 [myid:2] - INFO [main:o.a.z.Environment@98] - Server environment:java.home=/opt/java/jdk-11.0.1
2023-05-25 11:58:41,649 [myid:2] - INFO [main:o.a.z.Environment@98] - Server environment:java.class.path=/opt/Yonghong/C2/zookeeper/bin/../zookeeper-server/target/classes:/opt/Yonghong/C2/zookeeper/bin/../build/classes:/opt/Yonghong/C2/zookeeper/bin/../zookeeper-server/target/lib/*.jar:/opt/Yonghong/C2/zookeeper/bin/../build/lib/*.jar:/opt/Yonghong/C2/zookeeper/bin/../lib/zookeeper-prometheus-metrics-3.8.0.jar:/opt/Yonghong/C2/zookeeper/bin/../lib/zookeeper-jute-3.8.0.jar:/opt/Yonghong/C2/zookeeper/bin/../lib/zookeeper-3.8.0.jar:/opt/Yonghong/C2/zookeeper/bin/../lib/snappy-java-1.1.7.7.jar:/opt/Yonghong/C2/zookeeper/bin/../lib/slf4j-api-1.7.30.jar:/opt/Yonghong/C2/zookeeper/bin/../lib/simpleclient_servlet-0.9.0.jar:/opt/Yonghong/C2/zookeeper/bin/../lib/simpleclient_hotspot-0.9.0.jar:/opt/Yonghong/C2/zookeeper/bin/../lib/simpleclient_common-0.9.0.jar:/opt/Yonghong/C2/zookeeper/bin/../lib/simpleclient-0.9.0.jar:/opt/Yonghong/C2/zookeeper/bin/../lib/netty-transport-native-unix-common-4.1.73.Final.jar:/opt/Yonghong/C2/zookeeper/bin/../lib/netty-transport-native-epoll-4.1.73.Final.jar:/opt/Yonghong/C2/zookeeper/bin/../lib/netty-transport-classes-epoll-4.1.73.Final.jar:/opt/Yonghong/C2/zookeeper/bin/../lib/netty-transport-4.1.73.Final.jar:/opt/Yonghong/C2/zookeeper/bin/../lib/netty-tcnative-classes-2.0.48.Final.jar:/opt/Yonghong/C2/zookeeper/bin/../lib/netty-tcnative-2.0.48.Final.jar:/opt/Yonghong/C2/zookeeper/bin/../lib/netty-resolver-4.1.73.Final.jar:/opt/Yonghong/C2/zookeeper/bin/../lib/netty-handler-4.1.73.Final.jar:/opt/Yonghong/C2/zookeeper/bin/../lib/netty-common-4.1.73.Final.jar:/opt/Yonghong/C2/zookeeper/bin/../lib/netty-codec-4.1.73.Final.jar:/opt/Yonghong/C2/zookeeper/bin/../lib/netty-buffer-4.1.73.Final.jar:/opt/Yonghong/C2/zookeeper/bin/../lib/metrics-core-4.1.12.1.jar:/opt/Yonghong/C2/zookeeper/bin/../lib/logback-core-1.2.10.jar:/opt/Yonghong/C2/zookeeper/bin/../lib/logback-classic-1.2.10.jar:/opt/Yonghong/C2/zookeeper/bin/../lib/jline-2.14.6.jar:/opt/Yonghong/C2/zookeeper/bin/../lib/jetty-util-ajax-9.4.43.v20210629.jar:/opt/Yonghong/C2/zookeeper/bin/../lib/jetty-util-9.4.43.v20210629.jar:/opt/Yonghong/C2/zookeeper/bin/../lib/jetty-servlet-9.4.43.v20210629.jar:/opt/Yonghong/C2/zookeeper/bin/../lib/jetty-server-9.4.43.v20210629.jar:/opt/Yonghong/C2/zookeeper/bin/../lib/jetty-security-9.4.43.v20210629.jar:/opt/Yonghong/C2/zookeeper/bin/../lib/jetty-io-9.4.43.v20210629.jar:/opt/Yonghong/C2/zookeeper/bin/../lib/jetty-http-9.4.43.v20210629.jar:/opt/Yonghong/C2/zookeeper/bin/../lib/javax.servlet-api-3.1.0.jar:/opt/Yonghong/C2/zookeeper/bin/../lib/jackson-databind-2.13.1.jar:/opt/Yonghong/C2/zookeeper/bin/../lib/jackson-core-2.13.1.jar:/opt/Yonghong/C2/zookeeper/bin/../lib/jackson-annotations-2.13.1.jar:/opt/Yonghong/C2/zookeeper/bin/../lib/commons-io-2.11.0.jar:/opt/Yonghong/C2/zookeeper/bin/../lib/commons-cli-1.4.jar:/opt/Yonghong/C2/zookeeper/bin/../lib/audience-annotations-0.12.0.jar:/opt/Yonghong/C2/zookeeper/bin/../zookeeper-*.jar:/opt/Yonghong/C2/zookeeper/bin/../zookeeper-server/src/main/resources/lib/*.jar:/opt/Yonghong/C2/zookeeper/bin/../conf:.:/opt/java/jdk-11.0.1/lib/tools.jar:/opt/java/jdk-11.0.1/lib/dt.jar
2023-05-25 11:58:41,649 [myid:2] - INFO [main:o.a.z.Environment@98] - Server environment:java.library.path=/usr/java/packages/lib:/usr/lib64:/lib64:/lib:/usr/lib
2023-05-25 11:58:41,649 [myid:2] - INFO [main:o.a.z.Environment@98] - Server environment:java.io.tmpdir=/tmp
2023-05-25 11:58:41,649 [myid:2] - INFO [main:o.a.z.Environment@98] - Server environment:java.compiler=<NA>
2023-05-25 11:58:41,649 [myid:2] - INFO [main:o.a.z.Environment@98] - Server environment:os.name=Linux
2023-05-25 11:58:41,649 [myid:2] - INFO [main:o.a.z.Environment@98] - Server environment:os.arch=amd64
2023-05-25 11:58:41,649 [myid:2] - INFO [main:o.a.z.Environment@98] - Server environment:os.version=4.19.91-26.al7.x86_64
2023-05-25 11:58:41,649 [myid:2] - INFO [main:o.a.z.Environment@98] - Server environment:user.name=root
2023-05-25 11:58:41,649 [myid:2] - INFO [main:o.a.z.Environment@98] - Server environment:user.home=/root
2023-05-25 11:58:41,649 [myid:2] - INFO [main:o.a.z.Environment@98] - Server environment:user.dir=/opt/Yonghong/C2/zookeeper/bin
2023-05-25 11:58:41,649 [myid:2] - INFO [main:o.a.z.Environment@98] - Server environment:os.memory.free=232MB
2023-05-25 11:58:41,649 [myid:2] - INFO [main:o.a.z.Environment@98] - Server environment:os.memory.max=1000MB
2023-05-25 11:58:41,650 [myid:2] - INFO [main:o.a.z.Environment@98] - Server environment:os.memory.total=242MB
2023-05-25 11:58:41,650 [myid:2] - INFO [main:o.a.z.s.ZooKeeperServer@140] - zookeeper.enableEagerACLCheck = false
2023-05-25 11:58:41,650 [myid:2] - INFO [main:o.a.z.s.ZooKeeperServer@153] - zookeeper.digest.enabled = true
2023-05-25 11:58:41,650 [myid:2] - INFO [main:o.a.z.s.ZooKeeperServer@157] - zookeeper.closeSessionTxn.enabled = true
2023-05-25 11:58:41,650 [myid:2] - INFO [main:o.a.z.s.ZooKeeperServer@1496] - zookeeper.flushDelay = 0 ms
2023-05-25 11:58:41,650 [myid:2] - INFO [main:o.a.z.s.ZooKeeperServer@1505] - zookeeper.maxWriteQueuePollTime = 0 ms
2023-05-25 11:58:41,650 [myid:2] - INFO [main:o.a.z.s.ZooKeeperServer@1514] - zookeeper.maxBatchSize=1000
2023-05-25 11:58:41,650 [myid:2] - INFO [main:o.a.z.s.ZooKeeperServer@264] - zookeeper.intBufferStartingSizeBytes = 1024
2023-05-25 11:58:41,653 [myid:2] - INFO [main:o.a.z.s.w.WatchManagerFactory@42] - Using org.apache.zookeeper.server.watch.WatchManager as watch manager
2023-05-25 11:58:41,654 [myid:2] - INFO [main:o.a.z.s.w.WatchManagerFactory@42] - Using org.apache.zookeeper.server.watch.WatchManager as watch manager
2023-05-25 11:58:41,655 [myid:2] - INFO [main:o.a.z.s.ZKDatabase@132] - zookeeper.snapshotSizeFactor = 0.33
2023-05-25 11:58:41,655 [myid:2] - INFO [main:o.a.z.s.ZKDatabase@152] - zookeeper.commitLogCount=500
2023-05-25 11:58:41,663 [myid:2] - INFO [main:o.a.z.s.q.QuorumPeer@2088] - Using insecure (non-TLS) quorum communication
2023-05-25 11:58:41,663 [myid:2] - INFO [main:o.a.z.s.q.QuorumPeer@2094] - Port unification disabled
2023-05-25 11:58:41,663 [myid:2] - INFO [main:o.a.z.s.q.QuorumPeer@181] - multiAddress.enabled set to false
2023-05-25 11:58:41,663 [myid:2] - INFO [main:o.a.z.s.q.QuorumPeer@206] - multiAddress.reachabilityCheckEnabled set to true
2023-05-25 11:58:41,663 [myid:2] - INFO [main:o.a.z.s.q.QuorumPeer@193] - multiAddress.reachabilityCheckTimeoutMs set to 1000
2023-05-25 11:58:41,663 [myid:2] - INFO [main:o.a.z.s.q.QuorumPeer@2549] - QuorumPeer communication is not secured! (SASL auth disabled)
2023-05-25 11:58:41,664 [myid:2] - INFO [main:o.a.z.s.q.QuorumPeer@2574] - quorum.cnxn.threads.size set to 20
2023-05-25 11:58:41,666 [myid:2] - INFO [main:o.a.z.s.p.SnapStream@61] - zookeeper.snapshot.compression.method = CHECKED
2023-05-25 11:58:41,666 [myid:2] - INFO [main:o.a.z.s.p.FileSnap@85] - Reading snapshot /opt/Yonghong/C2/zookeeper/data/version-2/snapshot.0
2023-05-25 11:58:41,669 [myid:2] - INFO [main:o.a.z.s.DataTree@1712] - The digest value is empty in snapshot
2023-05-25 11:58:41,671 [myid:2] - INFO [main:o.a.z.s.ZKDatabase@289] - Snapshot loaded in 7 ms, highest zxid is 0x0, digest is 1371985504
2023-05-25 11:58:41,675 [myid:2] - INFO [main:o.e.j.s.Server@375] - jetty-9.4.43.v20210629; built: 2021-06-30T11:07:22.254Z; git: 526006ecfa3af7f1a27ef3a288e2bef7ea9dd7e8; jvm 11.0.1+13
2023-05-25 11:58:41,709 [myid:2] - INFO [main:o.e.j.s.s.DefaultSessionIdManager@334] - DefaultSessionIdManager workerName=node0
2023-05-25 11:58:41,709 [myid:2] - INFO [main:o.e.j.s.s.DefaultSessionIdManager@339] - No SessionScavenger set, using defaults
2023-05-25 11:58:41,711 [myid:2] - INFO [main:o.e.j.s.s.HouseKeeper@132] - node0 Scavenging every 660000ms
2023-05-25 11:58:41,715 [myid:2] - WARN [main:o.e.j.s.ConstraintSecurityHandler@759] - ServletContext@o.e.j.s.ServletContextHandler@12d2ce03{/,null,STARTING} has uncovered http methods for path: /*
2023-05-25 11:58:41,725 [myid:2] - INFO [main:o.e.j.s.h.ContextHandler@915] - Started o.e.j.s.ServletContextHandler@12d2ce03{/,null,AVAILABLE}
2023-05-25 11:58:41,732 [myid:2] - INFO [main:o.e.j.s.AbstractConnector@331] - Started ServerConnector@5c45d770{HTTP/1.1, (http/1.1)}{0.0.0.0:8080}
2023-05-25 11:58:41,733 [myid:2] - INFO [main:o.e.j.s.Server@415] - Started @861ms
2023-05-25 11:58:41,733 [myid:2] - INFO [main:o.a.z.s.a.JettyAdminServer@196] - Started AdminServer on address 0.0.0.0, port 8080 and command URL /commands
2023-05-25 11:58:41,734 [myid:2] - INFO [main:o.a.z.s.q.QuorumPeer@2591] - Using 10000ms as the quorum cnxn socket timeout
2023-05-25 11:58:41,739 [myid:2] - INFO [main:o.a.z.s.q.QuorumCnxManager$Listener@924] - Election port bind maximum retries is 3
2023-05-25 11:58:41,741 [myid:2] - INFO [main:o.a.z.s.q.FastLeaderElection@90] - zookeeper.fastleader.minNotificationInterval = 200 ms
2023-05-25 11:58:41,742 [myid:2] - INFO [main:o.a.z.s.q.FastLeaderElection@92] - zookeeper.fastleader.maxNotificationInterval = 60000 ms
2023-05-25 11:58:41,758 [myid:2] - INFO [main:o.a.z.a.ZKAuditProvider@42] - ZooKeeper audit is disabled.
2023-05-25 11:58:41,769 [myid:] - INFO [QuorumPeer[myid=2](plain=[0:0:0:0:0:0:0:0]:2182)(secure=disabled):o.a.z.s.q.QuorumPeer@1455] - LOOKING
2023-05-25 11:58:41,772 [myid:] - INFO [QuorumPeer[myid=2](plain=[0:0:0:0:0:0:0:0]:2182)(secure=disabled):o.a.z.s.q.FastLeaderElection@946] - New election. My id = 2, proposed zxid=0x0
2023-05-25 11:58:41,771 [myid:] - ERROR [ListenerHandler-/8.142.67.157:3888:o.a.z.s.q.QuorumCnxManager$Listener$ListenerHandler@1099] - Exception while listening to address /8.142.67.157:3888
java.net.BindException: 无法指定被请求的地址 (Bind failed)
at java.base/java.net.PlainSocketImpl.socketBind(Native Method)
at java.base/java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:436)
at java.base/java.net.ServerSocket.bind(ServerSocket.java:381)
at java.base/java.net.ServerSocket.bind(ServerSocket.java:335)
at org.apache.zookeeper.server.quorum.QuorumCnxManager$Listener$ListenerHandler.createNewServerSocket(QuorumCnxManager.java:1141)
at org.apache.zookeeper.server.quorum.QuorumCnxManager$Listener$ListenerHandler.acceptConnections(QuorumCnxManager.java:1070)
at org.apache.zookeeper.server.quorum.QuorumCnxManager$Listener$ListenerHandler.run(QuorumCnxManager.java:1039)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
2023-05-25 11:58:41,780 [myid:] - INFO [WorkerReceiver[myid=2]:o.a.z.s.q.FastLeaderElection$Messenger$WorkerReceiver@391] - Notification: my state:LOOKING; n.sid:2, n.state:LOOKING, n.leader:2, n.round:0x1, n.peerEpoch:0x0, n.zxid:0x0, message format version:0x2, n.config version:0x0
2023-05-25 11:58:41,783 [myid:] - WARN [QuorumConnectionThread-[myid=2]-1:o.a.z.s.q.QuorumCnxManager@401] - Cannot open channel to 1 at election address /39.100.69.253:3888
java.net.ConnectException: 拒绝连接 (Connection refused)
at java.base/java.net.PlainSocketImpl.socketConnect(Native Method)
at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399)
at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242)
at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224)
at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:403)
at java.base/java.net.Socket.connect(Socket.java:591)
at org.apache.zookeeper.server.quorum.QuorumCnxManager.initiateConnection(QuorumCnxManager.java:384)
at org.apache.zookeeper.server.quorum.QuorumCnxManager$QuorumConnectionReqThread.run(QuorumCnxManager.java:458)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
2023-05-25 11:58:41,784 [myid:] - WARN [QuorumConnectionThread-[myid=2]-2:o.a.z.s.q.QuorumCnxManager@401] - Cannot open channel to 3 at election address /8.142.69.36:3888
java.net.ConnectException: 拒绝连接 (Connection refused)
at java.base/java.net.PlainSocketImpl.socketConnect(Native Method)
at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399)
at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242)
at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224)
at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:403)
at java.base/java.net.Socket.connect(Socket.java:591)
at org.apache.zookeeper.server.quorum.QuorumCnxManager.initiateConnection(QuorumCnxManager.java:384)
at org.apache.zookeeper.server.quorum.QuorumCnxManager$QuorumConnectionReqThread.run(QuorumCnxManager.java:458)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
2023-05-25 11:58:41,984 [myid:] - INFO [QuorumPeer[myid=2](plain=[0:0:0:0:0:0:0:0]:2182)(secure=disabled):o.a.z.s.q.FastLeaderElection@996] - Notification time out: 400 ms
2023-05-25 11:58:41,986 [myid:] - WARN [QuorumConnectionThread-[myid=2]-2:o.a.z.s.q.QuorumCnxManager@401] - Cannot open channel to 3 at election address /8.142.69.36:3888
java.net.ConnectException: 拒绝连接 (Connection refused)
at java.base/java.net.PlainSocketImpl.socketConnect(Native Method)
at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399)
at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242)
at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224)
at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:403)
at java.base/java.net.Socket.connect(Socket.java:591)
at org.apache.zookeeper.server.quorum.QuorumCnxManager.initiateConnection(QuorumCnxManager.java:384)
at org.apache.zookeeper.server.quorum.QuorumCnxManager$QuorumConnectionReqThread.run(QuorumCnxManager.java:458)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
2023-05-25 11:58:41,986 [myid:] - WARN [QuorumConnectionThread-[myid=2]-3:o.a.z.s.q.QuorumCnxManager@401] - Cannot open channel to 1 at election address /39.100.69.253:3888
java.net.ConnectException: 拒绝连接 (Connection refused)
at java.base/java.net.PlainSocketImpl.socketConnect(Native Method)
at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399)
at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242)
at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224)
at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:403)
at java.base/java.net.Socket.connect(Socket.java:591)
at org.apache.zookeeper.server.quorum.QuorumCnxManager.initiateConnection(QuorumCnxManager.java:384)
at org.apache.zookeeper.server.quorum.QuorumCnxManager$QuorumConnectionReqThread.run(QuorumCnxManager.java:458)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
2023-05-25 11:58:42,385 [myid:] - INFO [QuorumPeer[myid=2](plain=[0:0:0:0:0:0:0:0]:2182)(secure=disabled):o.a.z.s.q.FastLeaderElection@996] - Notification time out: 800 ms
2023-05-25 11:58:42,387 [myid:] - WARN [QuorumConnectionThread-[myid=2]-2:o.a.z.s.q.QuorumCnxManager@401] - Cannot open channel to 1 at election address /39.100.69.253:3888
java.net.ConnectException: 拒绝连接 (Connection refused)
at java.base/java.net.PlainSocketImpl.socketConnect(Native Method)
at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399)
at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242)
at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224)
at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:403)
at java.base/java.net.Socket.connect(Socket.java:591)
at org.apache.zookeeper.server.quorum.QuorumCnxManager.initiateConnection(QuorumCnxManager.java:384)
at org.apache.zookeeper.server.quorum.QuorumCnxManager$QuorumConnectionReqThread.run(QuorumCnxManager.java:458)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
2023-05-25 11:58:42,387 [myid:] - WARN [QuorumConnectionThread-[myid=2]-3:o.a.z.s.q.QuorumCnxManager@401] - Cannot open channel to 3 at election address /8.142.69.36:3888
java.net.ConnectException: 拒绝连接 (Connection refused)
at java.base/java.net.PlainSocketImpl.socketConnect(Native Method)
at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399)
at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242)
at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224)
at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:403)
at java.base/java.net.Socket.connect(Socket.java:591)
at org.apache.zookeeper.server.quorum.QuorumCnxManager.initiateConnection(QuorumCnxManager.java:384)
at org.apache.zookeeper.server.quorum.QuorumCnxManager$QuorumConnectionReqThread.run(QuorumCnxManager.java:458)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
2023-05-25 11:58:42,775 [myid:] - ERROR [ListenerHandler-/8.142.67.157:3888:o.a.z.s.q.QuorumCnxManager$Listener$ListenerHandler@1099] - Exception while listening to address /8.142.67.157:3888
java.net.BindException: 无法指定被请求的地址 (Bind failed)
at java.base/java.net.PlainSocketImpl.socketBind(Native Method)
at java.base/java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:436)
at java.base/java.net.ServerSocket.bind(ServerSocket.java:381)
at java.base/java.net.ServerSocket.bind(ServerSocket.java:335)
at org.apache.zookeeper.server.quorum.QuorumCnxManager$Listener$ListenerHandler.createNewServerSocket(QuorumCnxManager.java:1141)
at org.apache.zookeeper.server.quorum.QuorumCnxManager$Listener$ListenerHandler.acceptConnections(QuorumCnxManager.java:1070)
at org.apache.zookeeper.server.quorum.QuorumCnxManager$Listener$ListenerHandler.run(QuorumCnxManager.java:1039)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
2023-05-25 11:58:43,186 [myid:] - INFO [QuorumPeer[myid=2](plain=[0:0:0:0:0:0:0:0]:2182)(secure=disabled):o.a.z.s.q.FastLeaderElection@996] - Notification time out: 1600 ms
2023-05-25 11:58:43,188 [myid:] - WARN [QuorumConnectionThread-[myid=2]-3:o.a.z.s.q.QuorumCnxManager@401] - Cannot open channel to 1 at election address /39.100.69.253:3888
java.net.ConnectException: 拒绝连接 (Connection refused)
at java.base/java.net.PlainSocketImpl.socketConnect(Native Method)
at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399)
at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242)
at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224)
at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:403)
at java.base/java.net.Socket.connect(Socket.java:591)
at org.apache.zookeeper.server.quorum.QuorumCnxManager.initiateConnection(QuorumCnxManager.java:384)
at org.apache.zookeeper.server.quorum.QuorumCnxManager$QuorumConnectionReqThread.run(QuorumCnxManager.java:458)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
2023-05-25 11:58:43,188 [myid:] - WARN [QuorumConnectionThread-[myid=2]-2:o.a.z.s.q.QuorumCnxManager@401] - Cannot open channel to 3 at election address /8.142.69.36:3888
java.net.ConnectException: 拒绝连接 (Connection refused)
at java.base/java.net.PlainSocketImpl.socketConnect(Native Method)
at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399)
at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242)
at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224)
at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:403)
at java.base/java.net.Socket.connect(Socket.java:591)
at org.apache.zookeeper.server.quorum.QuorumCnxManager.initiateConnection(QuorumCnxManager.java:384)
at org.apache.zookeeper.server.quorum.QuorumCnxManager$QuorumConnectionReqThread.run(QuorumCnxManager.java:458)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
2023-05-25 11:58:43,776 [myid:] - ERROR [ListenerHandler-/8.142.67.157:3888:o.a.z.s.q.QuorumCnxManager$Listener$ListenerHandler@1099] - Exception while listening to address /8.142.67.157:3888
java.net.BindException: 无法指定被请求的地址 (Bind failed)
at java.base/java.net.PlainSocketImpl.socketBind(Native Method)
at java.base/java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:436)
at java.base/java.net.ServerSocket.bind(ServerSocket.java:381)
at java.base/java.net.ServerSocket.bind(ServerSocket.java:335)
at org.apache.zookeeper.server.quorum.QuorumCnxManager$Listener$ListenerHandler.createNewServerSocket(QuorumCnxManager.java:1141)
at org.apache.zookeeper.server.quorum.QuorumCnxManager$Listener$ListenerHandler.acceptConnections(QuorumCnxManager.java:1070)
at org.apache.zookeeper.server.quorum.QuorumCnxManager$Listener$ListenerHandler.run(QuorumCnxManager.java:1039)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
2023-05-25 11:58:44,777 [myid:] - ERROR [ListenerHandler-/8.142.67.157:3888:o.a.z.s.q.QuorumCnxManager$Listener$ListenerHandler@1118] - Leaving listener thread for address 8.142.67.157:3888 after 3 errors. Use zookeeper.electionPortBindRetry property to increase retry count.
2023-05-25 11:58:44,778 [myid:] - INFO [QuorumPeerListener:o.a.z.s.q.QuorumCnxManager$Listener@985] - Leaving listener
2023-05-25 11:58:44,779 [myid:] - ERROR [QuorumPeerListener:o.a.z.s.q.QuorumCnxManager$Listener@987] - As I'm leaving the listener thread, I won't be able to participate in leader election any longer: 8.142.67.157:3888
2023-05-25 11:58:44,781 [myid:] - ERROR [QuorumPeerListener:o.a.z.u.ServiceUtils@42] - Exiting JVM with code 14
zookeeper配置文件zoo.cfg
windwos版本
server.1=39.100.69.253:2888:3888
server.2=8.142.67.157:2888:3888
server.3=8.142.69.36:2888:3888
initLimit=10
syncLimit=5
tickTime=2000
clientPort=2182
dataDir=D:/Yonghong/Vooltdb3/zookeeper/data
dataLogDir=D:/Yonghong/Vooltdb3/zookeeper/log
linux版本
server.1=39.100.69.253\:2888\:3888
server.2=8.142.67.157\:2888\:3888
server.3=8.142.69.36\:2888\:3888
initLimit=10
syncLimit=5
tickTime=2000
clientPort=2182
dataDir=/opt/Yonghong/C2/zookeeper/data
dataLogDir=/opt/Yonghong/C2/zookeeper/log
|