kill.sh 261 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 #! /bin/bash source /etc/profile function kill(){ app_id=`yarn application -list|grep -w ${1}|awk '{print $1}'` echo "now kill ${app_id}" if [ "_" != "_${app_id}" ];then `yarn application -kill ${app_id} 1>&2 2>/dev/null` fi } kill $1