jianfeng.jia@gmail.com | 8b059c0 | 2013-03-05 01:46:42 +0000 | [diff] [blame] | 1 | hostname |
| 2 | . conf/cluster.properties |
| 3 | |
| 4 | #Kill process |
jianfeng | 5393870 | 2013-04-19 12:41:42 -0700 | [diff] [blame^] | 5 | PID=`ps -ef|grep ${USER}|grep java|grep 'Dapp.name=genomixcc'|awk '{print $2}'` |
| 6 | |
| 7 | if [ "$PID" == "" ]; then |
| 8 | PID=`ps -ef|grep ${USER}|grep java|grep 'hyracks'|awk '{print $2}'` |
| 9 | fi |
| 10 | |
| 11 | if [ "$PID" == "" ]; then |
| 12 | USERID=`id | sed 's/^uid=//;s/(.*$//'` |
| 13 | PID=`ps -ef|grep ${USERID}|grep java|grep 'Dapp.name=genomixcc'|awk '{print $2}'` |
| 14 | fi |
| 15 | |
jianfeng.jia@gmail.com | 8b059c0 | 2013-03-05 01:46:42 +0000 | [diff] [blame] | 16 | echo $PID |
jianfeng | 5393870 | 2013-04-19 12:41:42 -0700 | [diff] [blame^] | 17 | kill -9 $PID |
jianfeng.jia@gmail.com | 8b059c0 | 2013-03-05 01:46:42 +0000 | [diff] [blame] | 18 | |
| 19 | #Clean up CC temp dir |
| 20 | rm -rf $CCTMP_DIR/* |