blob: 3928bb7e3086b399d4cbd172b8c597d1fae36a66 [file] [log] [blame]
jianfeng.jia@gmail.com8b059c02013-03-05 01:46:42 +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
13[ "$PID" != "" ] && kill -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/*