Skip to content

Instantly share code, notes, and snippets.

@kodekracker
Created May 8, 2015 20:28
Show Gist options
  • Select an option

  • Save kodekracker/2212e75282508e5a2f8a to your computer and use it in GitHub Desktop.

Select an option

Save kodekracker/2212e75282508e5a2f8a to your computer and use it in GitHub Desktop.
A script to stop Cloudera Hadoop with YARN
#!/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