In HDFS rolling upgrade page at a high level I am seeing the steps mentioned like below
hdfs dfsadmin -rollingUpgrade prepare
hdfs dfsadmin -rollingUpgrade started
hdfs dfsadmin -rollingUpgrade started
But in cloudera documentation of Hadoop to prepare the cluster for upgrade it is just saying to enter NN in safemode & save namespace
sudo -u hdfs hdfs dfsadmin -safemode enter
sudo -u hdfs hdfs dfsadmin -saveNamespace
-safemode
before doing the upgrade? -rollingUpgrade started
do then?-safemode leave
. When it will leave the safemode
? Will it auto leave the safemode
? The Cloudera instructions are not for upgrading with zero downtime on the core Hadoop services. It explicitly says to shutdown everything.
I assume rollingUpgrade started
command flags the namenode process to tell it not to attempt to become the active in case the standby fails over during the upgrade and it also makes the namenode become the standby, which is different from safe mode. Safe mode prevents metadata updates in the middle of the upgrade process
I do not think it automatically leaves safe mode. Please comment on the answer once you get there and figure that out