buyingyi | c73348c | 2012-11-02 00:31:31 +0000 | [diff] [blame^] | 1 | #!/bin/bash |
| 2 | |
| 3 | #PID=`/usr/local/java/vms/java/bin/jps | grep NCDriver | awk '{print $1}'` |
| 4 | |
| 5 | PID=`ps -ef|grep yingyib|grep java|grep hyracks|awk '{print $2}'` |
| 6 | |
| 7 | echo $PID |
| 8 | kill -9 $PID |
| 9 | |
| 10 | PID=`ps -ef|grep yingyib|grep java|grep datanode|awk '{print $2}'` |
| 11 | |
| 12 | echo $PID |
| 13 | kill -9 $PID |
| 14 | |
| 15 | |
| 16 | PID=`ps -ef|grep yingyib|grep java|grep tasktracker|awk '{print $2}'` |
| 17 | |
| 18 | echo $PID |
| 19 | kill -9 $PID |
| 20 | |
| 21 | rm -rf /mnt/data/sda/space/yingyi/tmp/* |
| 22 | rm -rf /mnt/data/sdb/space/yingyi/tmp/* |
| 23 | rm -rf /mnt/data/sdc/space/yingyi/tmp/* |
| 24 | rm -rf /mnt/data/sdd/space/yingyi/tmp/* |