blob: 35c4794dbe88dd0067966d2f9b75efa333a80411 [file] [log] [blame]
buyingyi5df938f2013-03-24 07:20:08 +00001hostname
2. conf/cluster.properties
3
4#Kill process
5PID=`ps -ef|grep ${USER}|grep java|grep 'Dapp.name=hyracksnc'|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 USERID=`id | sed 's/^uid=//;s/(.*$//'`
13 PID=`ps -ef|grep ${USERID}|grep java|grep 'Dapp.name=hyracksnc'|awk '{print $2}'`
14fi
15
16echo $PID
17kill -9 $PID
18
19#Clean up I/O working dir
20io_dirs=$(echo $IO_DIRS | tr "," "\n")
21for io_dir in $io_dirs
22do
23 rm -rf $io_dir/*
24done
25
26#Clean up NC temp dir
27rm -rf $NCTMP_DIR/*