具体脚本
#/bin/sh#LANG=zh_CN.utf8#export LANGexport SPARK_KAFKA_VERSION=0.10export LANG=zh_CN.UTF-8
# export env variable
if [ -f ~/.bash_profile ];then source ~/.bash_profilefisource /etc/profilemyAppName='SPARK APP NAME'apps=''for app in `yarn application -list`do apps=${app},$appsdoneapps=${apps%?}if [[ $apps =~ $myAppName ]]then echo "included"else echo "not included,do submit...." ./submit_x1_x2.sh abc TestRestartDriverfi