Commit eeba3299 authored by 赵建伟's avatar 赵建伟

update codes

parent 0126e42e
......@@ -9,16 +9,16 @@ for element in "${task_names[@]}"
app_id=`/opt/hadoop-2.6.0-cdh5.16.1/bin/yarn application -list | grep -w $element | awk '{print $1}'`
if [[ -z $app_id ]];then
if [ "ctr-estimate-clk-crt" == "$element" ];then
nohup /srv/apps/ctr-estimate/bin/start_clk_crt.sh 2>&1 & >/dev/null
nohup /srv/apps/ctr-estimate/bin/start_clk_crt.sh >/dev/null 2>&1 &
echo `date +"%Y-%m-%d %H:%M:%S"`": Restart task "$element" ..."
elif [ "ctr-estimate-pfr-crt" == "$element" ]; then
nohup /srv/apps/ctr-estimate/bin/start_pfr_crt.sh 2>&1 & >/dev/null
nohup /srv/apps/ctr-estimate/bin/start_pfr_crt.sh >/dev/null 2>&1 &
echo `date +"%Y-%m-%d %H:%M:%S"`": Restart task "$element" ..."
elif [ "ctr-estimate-pfr-rct" == "$element" ]; then
nohup /srv/apps/ctr-estimate/bin/start_pfr_rct.sh 2>&1 & >/dev/null
nohup /srv/apps/ctr-estimate/bin/start_pfr_rct.sh >/dev/null 2>&1 &
echo `date +"%Y-%m-%d %H:%M:%S"`": Restart task "$element" ..."
elif [ "ctr-estimate-tag-crt" == "$element" ]; then
nohup /srv/apps/ctr-estimate/bin/start_tag_crt.sh 2>&1 & >/dev/null
nohup /srv/apps/ctr-estimate/bin/start_tag_crt.sh >/dev/null 2>&1 &
echo `date +"%Y-%m-%d %H:%M:%S"`": Restart task "$element" ..."
else
echo $element" is not a valid task name, please check it again!"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment