Configure and Start Apache Storm
Storm is fairly independent of changes to the HDP cluster, but you must upgrade Apache Storm for rolling upgrade support in HDP 2.2 and to be on the latest version of Storm.
Deactivate all running topologies.
Stop Storm Services on the storm node.
Stop ZooKeeper Services on the storm node.
Remove Storm and zookeeper from the storm node and install the HDP 2.2 version:
For RHEL/CentOS/Oracle Linux:
yum erase stormyum erase zookeeperyum install stormyum install zookeeperFor SLES:
zypper rm stormzypper rm zookeeperzypper install stormzypper install zookeeperFor Ubuntu/Debian:
apt-get remove storm --purgeapt-get remove zookeeper --purgeapt-get install stormapt-get install zookeeper
Replace your configuration after upgrading. Copy /etc/storm/conf from the template to the conf directory .
Replace your ZooKeeper configuration after upgrading. Replace the ZooKeeper template configuration in
/etc/zookeeper/conf.Start ZooKeeper. On the storm node, run the following command:
sudo su -l $ZOOKEEPER_USER -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
$ZOOKEEPER_USER is the ZooKeeper Service user. For example, zookeeper.
$ZOO_LOG_DIR is the directory where ZooKeeper server logs are stored. For example, /var/log/zookeeper.
Start Storm using a process controller, such as supervisord:
su storm /usr/hdp/current/storm-supervisor/bin/storm supervisorwhere $STORM_USER is the operating system user that installed Storm. For example, storm.

