I am quite new for zookeeper port through which I am coming across from past few days.
I introduced with zookeeper port keyword at two occasion:
Then, I came across Apache Zookeeper, (which I guess is related to distributed application, I am a newbie in distributed application as well). hence question came in my mind:
Any help would be appreciated, Thanks.
ZooKeeper Service PortsPort used by ZooKeeper peers to talk to each other.
Conventionally, ZooKeeper uses port 2181 to listen for client connections.
The Admin Server is enabled by default in the cp-zookeeper image version 5.4. 0. This means that zookeeper spawns up a web server on port 8080 by default.
ZooKeeper is an open source Apache project that provides a centralized service for providing configuration information, naming, synchronization and group services over large clusters in distributed systems. The goal is to make these systems easier to manage with improved, more reliable propagation of changes.
Zookeeper is used in distributed applications mainly for configuration management and high availability operations. Zookeeper does this by a Master-Slave architecture. Neo4j and VoltDb might be using zookeeper for this purpose
Coming to the ports understanding : suppose u have 3 servers for zookeepers ... You need to mention in configuration as
clientPort=2181 server.1=zookeeper1:2888:3888 server.2=zookeeper2:2888:3888 server.3=zookeeper3:2888:3888
Out of these one server will be the master and rest all will be slaves.If any server goes OFF then zookeeper elects leader automatically .
Servers listen on three ports: 2181 for client connections; 2888 for follower connections, if they are the leader; and 3888 for other server connections during the leader election phase .
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With