Home > other >  Zookeeper ali cloud the network structures, error
Zookeeper ali cloud the network structures, error

Time:10-09

Hello, I bought three machine in ali cloud ecs, but set up zookeeper is always an error, then build the pseudo distributed write localhost server IP can build successful, if written in the network IP address, start is an error, the following is the configuration localhost
Server. 1=localhost: 40001-50001
Server. 2=localhost: 40002-50002
Server. 3=localhost: 40003-50003, so provide can succeed,
Server. 1=node3:40001-50001
Server. 2=node3:40002-50002
Server. 3=node3:40003-50003
This will be an error, error confidence following
The 2016-12-16 09:14:02, 659 [3] myid: - ERROR [node3/120.77.171.8:50003: QuorumCnxManager $Listener @ 517] - Exception while liste
Ning
Java.net.BindException: always assign a requested address
The at java.net.PlainSocketImpl.socketBind (Native Method)
At java.net.AbstractPlainSocketImpl.bind AbstractPlainSocketImpl. Java: (376)
The at java.net.ServerSocket.bind ServerSocket. Java: (376)
The at java.net.ServerSocket.bind ServerSocket. Java: (330)
The at org. Apache. Zookeeper. Server. Quorum. QuorumCnxManager $Listener. Run (QuorumCnxManager. Java: 507)
The 2016-12-16 09:14:02, 672 [3] myid: - INFO [QuorumPeer [myid=3]/0.0.0.0:60003: QuorumPeer @ 714] - &
The 2016-12-16 09:14:02, 675 [3] myid: - INFO [QuorumPeer [myid=3]/0.0.0.0:60003: FastLeaderElection @ 815] - New election.
My id=3, programs zxid=0 x100000097
The 2016-12-16 09:14:02, 678 [3] myid: - WARN [WorkerSender [myid=3] : QuorumCnxManager @ 382] - always open a channel to 1 at electi
On the address node3/120.77.171.8:50001
Java.net.ConnectException: Connection refused
The at java.net.PlainSocketImpl.socketConnect (Native Method)
At java.net.AbstractPlainSocketImpl.doConnect AbstractPlainSocketImpl. Java: (339)
At java.net.AbstractPlainSocketImpl.connectToAddress AbstractPlainSocketImpl. Java: (200)
At java.net.AbstractPlainSocketImpl.connect AbstractPlainSocketImpl. Java: (182)
At java.net.SocksSocketImpl.connect SocksSocketImpl. Java: (392)
At java.net.Socket.connect (579) Socket. Java:
The at org. Apache. Zookeeper. Server. Quorum. QuorumCnxManager. ConnectOne (QuorumCnxManager. Java: 368)
The at org. Apache. Zookeeper. Server. Quorum. QuorumCnxManager. ToSend (QuorumCnxManager. Java: 341)
The at org. Apache. Zookeeper. Server. Quorum. FastLeaderElection $$WorkerSender Messenger. The process (FastLeaderElection. Java: 4
49)
The at org. Apache. Zookeeper. Server. Quorum. FastLeaderElection $$WorkerSender Messenger. The run (FastLeaderElection. Java: 430)
The at Java. Lang. Thread. The run (Thread. Java: 745)
The 2016-12-16 09:14:02, 681 [3] myid: - WARN [WorkerSender [myid=3] : QuorumCnxManager @ 382] - always open a channel to 2 at electi
On the address node3/120.77.171.8:50002
Java.net.ConnectException: Connection refused
The at java.net.PlainSocketImpl.socketConnect (Native Method)
At java.net.AbstractPlainSocketImpl.doConnect AbstractPlainSocketImpl. Java: (339)
At java.net.AbstractPlainSocketImpl.connectToAddress AbstractPlainSocketImpl. Java: (200)
At java.net.AbstractPlainSocketImpl.connect AbstractPlainSocketImpl. Java: (182)
At java.net.SocksSocketImpl.connect SocksSocketImpl. Java: (392)
At java.net.Socket.connect (579) Socket. Java:
The at org. Apache. Zookeeper. Server. Quorum. QuorumCnxManager. ConnectOne (QuorumCnxManager. Java: 368)
The at org. Apache. Zookeeper. Server. Quorum. QuorumCnxManager. ToSend (QuorumCnxManager. Java: 341)
The at org. Apache. Zookeeper. Server. Quorum. FastLeaderElection $$WorkerSender Messenger. The process (FastLeaderElection. Java: 4
49) at org. Apache. The zookeeper. Server. The quorum. FastLeaderElection $$WorkerSender Messenger. The run (FastLeaderElection. Java: 430)
The at Java. Lang. Thread. The run (Thread. Java: 745)
Get for a long time didn't find the problem, if you have time, I hope you help me have a look, my mailbox 249180439 @qq.com, thank you

CodePudding user response:

Can use private network

CodePudding user response:

Long-term sale of various regions and looking for server sales staff has the need to add qq2790138611 private chat

CodePudding user response:

Refer to https://blog.csdn.net/sl1992/article/details/79879209 can help you

CodePudding user response:

The general is a problem of firewall ports not mapped out

CodePudding user response:

Hello, I bought 3 sets of tencent is cloud hosting, build a zookeeper cluster, you can start, but check the cluster state hint:
The Error contacting service. It is probably not running.
Then I'll go to see a zookeeper. Out log file:
The 2020-03-30 17:28:10, 863 [2] myid: - WARN [QuorumPeer [myid=2]/0:0:0:0:0:0:0:0:21 81: QuorumCnxManager @ 400] - always open a channel to 3 at election address/10.206. * *. * * : 3888
Java.net.ConnectException: Connection refused (Connection refused)
The at java.net.PlainSocketImpl.socketConnect (Native Method)
The at java.net.AbstractPlainSocketImpl.doConnect (AbstractPlai
The connection is refused, the firewall? Check the firewall 3 full closed:
[root @ VM_0_15_centos ZKdataDir] # systemctl status iptables. Service
. Low iptables service - IPv4 is firewall with iptables
The Loaded: the Loaded (/usr/lib/systemd/system/iptables service; Disabled; Vendor preset: disabled)
Active: inactive (dead)