blob: 03ce4e71bd8f160c96868f75196d5867749bde8a [file] [log] [blame]
vinayakb5d8a2f22013-01-29 19:45:44 +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 USERID=`id | sed 's/^uid=//;s/(.*$//'`
9 PID=`ps -ef|grep ${USERID}|grep java|grep 'Dapp.name=hyracksnc'|awk '{print $2}'`
10fi
11
12echo $PID
13kill -9 $PID
14
15#Clean up I/O working dir
16io_dirs=$(echo $IO_DIRS | tr "," "\n")
17for io_dir in $io_dirs
18do
19 rm -rf $io_dir/*
20done
21
22#Clean up NC temp dir
23rm -rf $NCTMP_DIR/*