Commit 4a37b375 authored by 赵建伟's avatar 赵建伟

add auto restart codes

parent 23262001
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# */5 * * * * /srv/apps/ctr-estimate/bin/auto.sh >> /data/log/ctr-estimate/auto.out # */5 * * * * /srv/apps/ctr-estimate/bin/auto.sh >> /data/log/ctr-estimate/auto.out
task_names=(ctr-estimate-clk-crt ctr-estimate-pfr-crt ctr-estimate-pfr-rct ctr-estimate-tag-crt a) task_names=(ctr-estimate-clk-crt ctr-estimate-pfr-crt ctr-estimate-pfr-rct ctr-estimate-tag-crt)
for element in "${task_names[@]}" for element in "${task_names[@]}"
do do
app_id=`/opt/hadoop-2.6.0-cdh5.16.1/bin/yarn application -list | grep -w $element | awk '{print $1}'` app_id=`/opt/hadoop-2.6.0-cdh5.16.1/bin/yarn application -list | grep -w $element | awk '{print $1}'`
......
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