September 2017
Beginner to intermediate
360 pages
8h 13m
English
In addition to the previous configuration, add the following configuration to the cluster as well:
server.1=zkp-1:2888:3888 server.2=zkp-2:2888:3888 server.3=zkp-3:2888:3888
server.x=[hostname]nnnn:mmmm: Here x is id assigned to each Zookeeper node. In datadir, configured previously, create a file called myid and put the corresponding ID of Zookeeper in it. It should be unique across the cluster. The same ID is used as x here. nnnn is port used by followers to connect with leader node and mmmm is port used for leader election.
Read now
Unlock full access