source: hadoop4win-setup/my_packages/hadoop/bin/stop-hadoop @ 241

Last change on this file since 241 was 232, checked in by jazz, 14 years ago
  • 加入 0.1.3 變更內容,保留 0.1.2 的 cygwin_mirror/setup.ini
File size: 511 bytes
Line 
1#!/bin/bash
2if [ ! -z "$(jps | grep TaskTracker)" ];then /opt/hadoop/bin/hadoop-daemon.sh stop tasktracker ; fi
3if [ ! -z "$(jps | grep DataNode)" ];then /opt/hadoop/bin/hadoop-daemon.sh stop datanode ; fi
4if [ ! -z "$(jps | grep JobTracker)" ];then /opt/hadoop/bin/hadoop-daemon.sh stop jobtracker ; fi
5if [ ! -z "$(jps | grep SecondaryNameNode)" ];then /opt/hadoop/bin/hadoop-daemon.sh stop secondarynamenode ; fi
6if [ ! -z "$(jps | grep NameNode)" ]; then /opt/hadoop/bin/hadoop-daemon.sh stop namenode ; fi
Note: See TracBrowser for help on using the repository browser.