You should have the Java JDK and ZooKeeper ensemble installed before starting the deployment of the Storm cluster.
Storm prerequisites
Installing Java SDK 7
Perform the following steps to install the Java SDK 7 on your machine. You can also go with JDK 1.8:
- Download the Java SDK 7 RPM from Oracle's site (http://www.oracle.com/technetwork/java/javase/downloads/index.html).
- Install the Java jdk-7u<version>-linux-x64.rpm file on your CentOS machine using the following command:
sudo rpm -ivh jdk-7u<version>-linux-x64.rpm
- Add the following environment variable in the ~/.bashrc file:
export JAVA_HOME=/usr/java/jdk<version>
- Add the path of the bin directory of the JDK to the PATH system environment variable...