背景 在运行spark任务时,可能因为某种异常问题导致任务没有正常退出。一直处于假死异常状态。这就需要我们通过一直机制发现这样的情况。 #!/bin/bash todaydate=`expr $(date +%s) \* 1000` yarn application -list -appStates running |grep "application_"|grep -v "stream" |awk '{print $1}' |