Upgrading HDP Manually
Also available as:
PDF
loading table of contents...

Configure and Start Apache Storm

Before you can upgrade Apache Storm, you must have first upgraded your HDP components to the latest version (in this case, 2.4.2). This section assumes that you have already upgraded your components for HDP 2.4.2. If you have not already completed these steps, return to Getting Ready to Upgrade and Upgrade 2.2 Components for instructions on how to upgrade your HDP components to 2.4.2.

[Note]Note

The su commands in this section use "zookeeper" to represent the ZooKeeper Service user. If you are using another name for your ZooKeeper Service user, you will need to substitute your ZooKeeper Service user name for "zookeeper" in each of the su commands.

Storm is fairly independent of changes to the HDP cluster, but you must upgrade Storm for rolling upgrade support in HDP 2.4.2 and be on the latest version of Storm.

  1. After upgrading Storm, replace your configuration. Copy /etc/storm/conf from the template to the conf directory .

  2. Replace your ZooKeeper configuration after upgrading. Replace the ZooKeeper template configuration in /etc/zookeeper/conf.

  3. Ensure ZooKeeper is running. On the storm node, run the following command:

    su - zookeeper -c "source /etc/zookeeper/conf/zookeeper-env.sh; export ZOOCFGDIR=/etc/zookeeper/conf; /usr/hdp/current/zookeeper-server/bin/zkServer.sh start >> $ZOO_LOG_DIR/zoo.out\"

    where

    • $ZOO_LOG_DIR is the directory where ZooKeeper server logs are stored. For example, /var/log/zookeeper.

  4. Start nimbus, then supervisor/ui/drpc/logviewer:

    /usr/hdp/current/storm-nimbus/bin/storm nimbus.

  5. Start Storm, using a process controller, such as supervisor:

    su - storm /usr/hdp/current/storm-supervisor/bin/storm supervisor

    You can use the same command syntax to start Storm using nimbus/ui and logviewer.

    su - storm /usr/hdp/current/storm-supervisor/bin/storm nimbus

    su - storm /usr/hdp/current/storm-supervisor/bin/storm ui

    su - storm /usr/hdp/current/storm-supervisor/bin/storm logviewer

    su - storm /usr/hdp/current/storm-supervisor/bin/storm drpc