If High Availability is not enabled for the YARN ResourceManager, shut down the ResourceManager process, switch to the newer version, and start the ResourceManager process:
su - yarn -c "/usr/hdp/current/hadoop-yarn-resourcemanager/sbin/yarn-daemon.sh
stop resourcemanager"
hdp-select set hadoop-yarn-resourcemanager 2.2.4.2-2
su - yarn -c "/usr/hdp/current/hadoop-yarn-resourcemanager/sbin/yarn-daemon.sh
start resourcemanager"
If High Availability is enabled for the YARN ResourceManager, you’ll need to upgrade both ResourceManager processes, starting with the standby process. This is similar to the process you used for the NameNode pair:
Upgrade the standby process
Failover from active to standby
Upgrade the new standby process (formerly the active process)
In the following instructions, RM1 refers to the currently active ResourceManager. RM2 refers to the current standby ResourceManager.
Shut down the standby Resource Manager (RM2), switch to the newer version, and start RM2:
su - yarn -c "/usr/hdp/current/hadoop-yarn-resourcemanager/sbin/yarn-daemon.sh stop resourcemanager"
hdp-select set hadoop-yarn-resourcemanager 2.2.4.2-2
su - yarn -c "/usr/hdp/current/hadoop-yarn-resourcemanager/sbin/yarn-daemon.sh start resourcemanager"
RM2 will start, and will become the standby ResourceManager.
To switch the standby ResourceManager, stop the active ResourceManager:
su - yarn -c "/usr/hdp/current/hadoop-yarn-resourcemanager/sbin/yarn-daemon.sh stop resourcemanager"
Shut down the new standby ResourceManager (RM1), switch to the new version, and start RM1:
su - yarn -c "/usr/hdp/current/hadoop-yarn-resourcemanager/sbin/yarn-daemon.sh stop resourcemanager"
hdp-select set hadoop-yarn-resourcemanager 2.2.4.2-2
su - yarn -c "/usr/hdp/current/hadoop-yarn-resourcemanager/sbin/yarn-daemon.sh start resourcemanager"
RM1 will start and become the standby ResourceManager. For version info, see
http://<node-name>:8088/cluster/cluster
.