Before setting up Storm, we need to set up Zookeeper, which is required by Storm:
What follows are instructions on how to install, configure and run Zookeeper in standalone and cluster mode.
Download Zookeeper from http://www-eu.apache.org/dist/zookeeper/zookeeper-3.4.6/zookeeper-3.4.6.tar.gz. After the download, extract zookeeper-3.4.6.tar.gz
as follows:
tar -xvf zookeeper-3.4.6.tar.gz
The following files and folders will be extracted:
There are two types of deployment with Zookeeper; they are standalone and cluster. There is no big difference in configuration, just new extra parameters for cluster mode.
As shown in the previous figure, go to the conf
folder and change the zoo.cfg
file as follows:
tickTime=2000 # Length of single tick in milliseconds. It is used to # regulate heartbeat and timeouts. initLimit=5 # Amount of time to allow followers to connect and sync # with leader. syncLimit=2 # Amount of...