Storm Installation
Tested on Linux 14.04 LTS
Step 1: Download
In order to install Apache Storm, do the following steps given below. First login to your hadoop user.
Storm Installation
Tested on Linux 14.04 LTS
Step 1: Download
In order to install Apache Storm, do the following steps given below. First login to your hadoop user.
$ su - hduser
Download:
$ sudo wget http://www-us.apache.org/dist/storm/apache-storm-1.0.2/apache-storm-1.0.2.tar.gz
Step 2: Extract and Move
Use your root username instead of the “user”:
$ cd /home/user/Downloads
**Extract the downloaded file:**
$ sudo tar -zxvf apache-storm-1.0.2.tar.gz
Move the extracted file into installation directory
$ sudo mv apache-storm-1.0.2 /usr/local/storm
**Make a directory to store data:**
$ cd /usr/local/storm
$ sudo mkdir data
Step 3: Edit storm.yaml file:
Before editing storm.yaml file, you just need to know your java home path. To know your home path, use the following command:
echo $JAVA_HOME
Now execute the below commands:
$ cd /usr/local/storm/conf
$ sudo nano storm.yaml
The storm.yaml file will get open and write the following code in it (copy and paste):
storm.zookeeper.servers:
- "localhost"
# - "server2"
storm.zookeeper.port: 2181
nimbus.seeds: [localhost]
storm.local.dir: "/usr/local/storm/data"
java.library.path: "/usr/lib/jvm/java-7-openjdk-amd64"
nimbus.host: "localhost"
#
#
supervisor.slots.ports:
- 6700
- 6701
- 6702
- 6703
Make a copy of storm.yaml to main storm folder:
$ sudo cp /usr/local/storm/conf/storm.yaml /usr/local/storm/storm.yaml
Step 4: Run the daemons
$ cd /usr/local/storm/bin
$ sudo ./storm nimbus
You will get the output similar to the image given below:
Open a new tab in terminal and run the supervisor:
$ cd /usr/local/storm/bin
$ sudo ./storm supervisor
You will get the output similar to the image given below:
$ su - hduser
Download:
$ sudo wget http://www-us.apache.org/dist/storm/apache-storm-1.0.2/apache-storm-1.0.2.tar.gz
Step 2: Extract and Move
Use your root username instead of the “user”:
$ cd /home/user/Downloads
**Extract the downloaded file:**
$ sudo tar -zxvf apache-storm-1.0.2.tar.gz
Move the extracted file into installation directory
$ sudo mv apache-storm-1.0.2 /usr/local/storm
**Make a directory to store data:**
$ cd /usr/local/storm
$ sudo mkdir data
Step 3: Edit storm.yaml file:
Before editing storm.yaml file, you just need to know your java home path. To know your home path, use the following command:
echo $JAVA_HOME
Now execute the below commands:
$ cd /usr/local/storm/conf
$ sudo nano storm.yaml
The storm.yaml file will get open and write the following code in it (copy and paste):
storm.zookeeper.servers:
- "localhost"
# - "server2"
storm.zookeeper.port: 2181
nimbus.seeds: [localhost]
storm.local.dir: "/usr/local/storm/data"
java.library.path: "/usr/lib/jvm/java-7-openjdk-amd64"
nimbus.host: "localhost"
#
#
supervisor.slots.ports:
- 6700
- 6701
- 6702
- 6703
Make a copy of storm.yaml to main storm folder:
$ sudo cp /usr/local/storm/conf/storm.yaml /usr/local/storm/storm.yaml
Step 4: Run the daemons
$ cd /usr/local/storm/bin
$ sudo ./storm nimbus
You will get the output similar to the image given below:
Open a new tab in terminal and run the supervisor:
$ cd /usr/local/storm/bin
$ sudo ./storm supervisor
You will get the output similar to the image given below: