blob: 35c4794dbe88dd0067966d2f9b75efa333a80411 [file] [log] [blame]
buyingyi98e9a9b2013-03-10 21:24:35 +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
buyingyi26198a22013-03-22 06:40:46 +00008 PID=`ps -ef|grep ${USER}|grep java|grep 'hyracks'|awk '{print $2}'`
9fi
10
11if [ "$PID" == "" ]; then
buyingyi98e9a9b2013-03-10 21:24:35 +000012 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/*