Executing the topology in the distributed mode
To set up Storm in distributed mode, we will need to perform the following steps.
Set up Zookeeper (V 3.3.5) for Storm
The coordination of a Storm topology is maintained by a Zookeeper cluster. The utilization of Zookeeper is not very high, as it just maintains the runnable state of the Storm cluster. In most cases, a single Zookeeper node should suffice, but in production scenarios, at least a three-node Zookeeper cluster is recommended so that a single node doesn't become a single point of failure.
For reliable Zookeeper service, deploy Zookeeper in a cluster known as an ensemble. As long as the majority of the ensemble is up, the service will be available. One of the nodes in the ensemble is automatically selected as a leader and others as followers. If the leader goes down, one of the follower nodes becomes the leader.
Perform the following steps on all the machines that will be part of the Zookeeper ensemble to set up the Zookeeper cluster...