Skip to content

Instantly share code, notes, and snippets.

@JoeyAndres
Last active October 23, 2017 20:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JoeyAndres/c01774ab0898a7e55f5c6faf65af051a to your computer and use it in GitHub Desktop.
Save JoeyAndres/c01774ab0898a7e55f5c6faf65af051a to your computer and use it in GitHub Desktop.
#!/bin/bash
start() {
source "/etc/profile.d/hadoop.sh"
start-dfs.sh
start-yarn.sh
}
stop() {
source "/etc/profile.d/hadoop.sh"
stop-yarn.sh
stop-dfs.sh
}
case $1 in
start|stop) "$1" ;;
esac
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment