Apache Storm is fairly independent of changes to the HDP cluster, but you must upgrade 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 storm
yum erase zookeeper
yum install storm
yum install zookeeper
For SLES:
zypper rm storm
zypper rm zookeeper
zypper install storm
zypper install zookeeper
For Ubuntu/Debian:
apt-get remove storm --purge
apt-get remove zookeeper --purge
apt-get install storm
apt-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 supervisor
where $STORM_USER is the operating system user that installed Storm. For example, storm.