Created
May 8, 2015 20:28
-
-
Save kodekracker/2212e75282508e5a2f8a to your computer and use it in GitHub Desktop.
A script to stop Cloudera Hadoop with YARN
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # stop YARN | |
| sudo service hadoop-yarn-resourcemanager stop | |
| sudo service hadoop-yarn-nodemanager stop | |
| sudo service hadoop-mapreduce-historyserver stop | |
| # stop Hadoop | |
| for x in `cd /etc/init.d ; ls hadoop-hdfs-*` ; do sudo service $x stop ; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment