blob: 092e2328a09fbd29d298bdd3491b920aba9206ee [file] [log] [blame]
jianfeng.jia@gmail.com8b059c02013-03-05 01:46:42 +00001hostname
2. conf/cluster.properties
3
4#Kill process
jianfeng53938702013-04-19 12:41:42 -07005PID=`ps -ef|grep ${USER}|grep java|grep 'Dapp.name=genomixnc'|awk '{print $2}'`
6
7if [ "$PID" == "" ]; then
8 PID=`ps -ef|grep ${USER}|grep java|grep 'hyracks'|awk '{print $2}'`
9fi
10
11if [ "$PID" == "" ]; then
12 PID=`ps -ef|grep ${USER}|grep java|grep 'hyracks'|awk '{print $2}'`
13fi
jianfeng.jia@gmail.com8b059c02013-03-05 01:46:42 +000014
15if [ "$PID" == "" ]; then
16 USERID=`id | sed 's/^uid=//;s/(.*$//'`
jianfeng53938702013-04-19 12:41:42 -070017 PID=`ps -ef|grep ${USERID}|grep java|grep 'Dapp.name=genomixnc'|awk '{print $2}'`
jianfeng.jia@gmail.com8b059c02013-03-05 01:46:42 +000018fi
19
20echo $PID
jianfeng53938702013-04-19 12:41:42 -070021kill -9 $PID
jianfeng.jia@gmail.com8b059c02013-03-05 01:46:42 +000022
23#Clean up I/O working dir
24io_dirs=$(echo $IO_DIRS | tr "," "\n")
25for io_dir in $io_dirs
26do
27 rm -rf $io_dir/*
28done
29
30#Clean up NC temp dir
31rm -rf $NCTMP_DIR/*