Guest User

Untitled

a guest
Oct 24th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. start() {
  4. source "/etc/profile.d/hadoop.sh"
  5.  
  6. start-dfs.sh
  7. start-yarn.sh
  8. }
  9.  
  10. stop() {
  11. source "/etc/profile.d/hadoop.sh"
  12.  
  13. stop-yarn.sh
  14. stop-dfs.sh
  15. }
  16.  
  17. case $1 in
  18. start|stop) "$1" ;;
  19. esac
  20.  
  21. exit 0
Add Comment
Please, Sign In to add comment