In the last chapter, we saw how to set up a single-node Storm cluster. In this chapter, we will learn how to set up a three-node Storm cluster, of which one node will be the master node (Nimbus) and the other two will be worker nodes (supervisors).
The following is the deployment diagram of our three-node Storm cluster:
The following are the steps that need to be performed to set up a three-node Storm cluster:
Install and run the ZooKeeper cluster. The steps for installing ZooKeeper are mentioned in the previous section.
Download the latest stable Storm release from https://storm.incubator.apache.org/downloads.html; at the time of this writing, the latest version is Storm 0.9.0.1.
Once you have downloaded the latest version, copy and unzip it in all three machines. Now, we will set the
$STORM_HOME
environment variable on each machine to make the setup easier.Go to the
$STORM_HOME/conf
directory at the master node and add the following...