Created on 02-27-2017 05:14 PM - edited 09-16-2022 04:09 AM
Hi,
I just want to stop the hadoop cluster (completey & cleanly) for the maintainence purpose. Could anyone send the complete steps which i will take to stop the services and cluster?
Best Regards
Muhammad Touseef
Created on 02-27-2017 05:49 PM - edited 08-19-2019 02:47 AM
You can shut down all services via ambari by going to right side tool bar and select stop all. This is clean shutdown.
Info here
Via api info here:
https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=41812517
Created 02-27-2017 05:52 PM
You can use the instructions to stop hadoop services before upgrade. One thing you absolutely want to make sure is no jobs are running. Let any running job complete. The right way to do it would be to stop queues so any running jobs will complete but no new jobs will be submitted. Once all jobs are completed and nothing is running, you can use "stop all" command from Ambari or simply follow the instructions below:
https://hadoop.apache.org/docs/r2.7.2/hadoop-yarn/hadoop-yarn-site/CapacityScheduler.html ---> check for how to stop queues
https://docs.hortonworks.com/HDPDocuments/Ambari-2.1.2.0/bk_upgrading_Ambari/content/_stop_cluster_a... -->stop all.