Changeset 232 for hadoop4win-setup/my_packages/hadoop/bin/stop-hadoop
- Timestamp:
- Dec 22, 2010, 12:43:15 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
hadoop4win-setup/my_packages/hadoop/bin/stop-hadoop
r129 r232 1 1 #!/bin/bash 2 /opt/hadoop/bin/hadoop-daemon.sh stop tasktracker 3 /opt/hadoop/bin/hadoop-daemon.sh stop jobtracker 4 /opt/hadoop/bin/hadoop-daemon.sh stop datanode 5 /opt/hadoop/bin/hadoop-daemon.sh stop namenode 2 if [ ! -z "$(jps | grep TaskTracker)" ];then /opt/hadoop/bin/hadoop-daemon.sh stop tasktracker ; fi 3 if [ ! -z "$(jps | grep DataNode)" ];then /opt/hadoop/bin/hadoop-daemon.sh stop datanode ; fi 4 if [ ! -z "$(jps | grep JobTracker)" ];then /opt/hadoop/bin/hadoop-daemon.sh stop jobtracker ; fi 5 if [ ! -z "$(jps | grep SecondaryNameNode)" ];then /opt/hadoop/bin/hadoop-daemon.sh stop secondarynamenode ; fi 6 if [ ! -z "$(jps | grep NameNode)" ]; then /opt/hadoop/bin/hadoop-daemon.sh stop namenode ; fi
Note: See TracChangeset
for help on using the changeset viewer.