Name Node shutdown for maintenance /upgrade
Getting Ready to Upgrade
1. Stop all services (including MapReduce) and client applications deployed on HDFS using the following instructions1. Stopping HDP services
Before trying any upgrades or uninstalling software, stop all Hadoop services in the following order:
- Stop Nagios. On the Nagios host machine, execute the following command:
service nagios stop
- Stop Ganglia.
- Execute this command on the Ganglia server host machine:
/etc/init.d/hdp-gmetad stop
- Execute this command on all the nodes in your Hadoop cluster:
/etc/init.d/hdp-gmond stop
- Stop Oozie.
- Stop WebHCat. On the WebHCat host machine, execute the following command:
su -l hcat -c "/usr/lib/hcatalog/sbin/webhcat_server.sh stop"
- Stop Hive. On the Hive Metastore host machine and Hive Server2 host machine, execute the following command:
ps aux | awk '{print $1,$2}' | grep hive | awk '{print $2}' | xargs kill >/dev/null 2>&1
- Stop ZooKeeper. On the ZooKeeper host machine, execute the following command:
su - zookeeper -c "export ZOOCFGDIR=/etc/zookeeper/conf ; export ZOOCFG=zoo.cfg ;source /etc/zookeeper/conf/zookeeper-env.sh ; /usr/lib/zookeeper/bin/zkServer.sh stop"
- Stop HBase.
- Execute these commands on all RegionServers:
su -l hbase -c "/usr/lib/hbase/bin/hbase-daemon.sh --config /etc/hbase/conf stop regionserver"
- Execute these commands on the HBase Master host machine:
su -l hbase -c "/usr/lib/hbase/bin/hbase-daemon.sh --config /etc/hbase/conf stop master"
- Stop MapReduce
- Execute these commands on all TaskTrackers:
su -l mapred -c "/usr/lib/hadoop/bin/hadoop-daemon.sh --config /etc/hadoop/conf stop tasktracker"
- Execute these commands on the JobTracker host machine:
su -l mapred -c "/usr/lib/hadoop/bin/hadoop-daemon.sh --config /etc/hadoop/conf stop historyserver"
- Execute theses commands on the JobTracker host machine:
su -l mapred -c "/usr/lib/hadoop/bin/hadoop-daemon.sh --config /etc/hadoop/conf stop jobtracker"
- Stop HDFS
- Execute these commands on all DataNodes:
su -l hdfs -c "/usr/lib/hadoop/bin/hadoop-daemon.sh --config /etc/hadoop/conf stop datanode"
- Execute these commands on the Secondary NameNode host machine:
su -l hdfs -c "/usr/lib/hadoop/bin/hadoop-daemon.sh --config /etc/hadoop/conf stop secondarynamenode”
- Execute these commands on the NameNode host machine:
su -l hdfs -c "/usr/lib/hadoop/bin/hadoop-daemon.sh --config /etc/hadoop/conf stop namenode"
0 responses to “Name Node shutdown for maintenance /upgrade”