• No products in the cart.

Storm Installation

 

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:

DV Analytics

DV Data & Analytics is a leading data science training and consulting firm, led by industry experts. We are aiming to train and prepare resources to acquire the most in-demand data science job opportunities in India and abroad.

Bangalore Center

DV Data & Analytics Bangalore Private Limited
#52, 2nd Floor:
Malleshpalya Maruthinagar Bengaluru.
Bangalore 560075
India
(+91) 9019 030 033 (+91) 8095 881 188
Email: info@dvanalyticsmds.com

Bhubneshwar Center

DV Data & Analytics Private Limited Bhubaneswar
Plot No A/7 :
Adjacent to Maharaja Cine Complex, Bhoinagar, Acharya Vihar
Bhubaneswar 751022
(+91) 8095 881 188 (+91) 8249 430 414
Email: info@dvanalyticsmds.com

top
© 2020. All Rights Reserved.