[SPARK-15203][DEPLOY] The spark daemon shell script error, daemon process start successfully but script output fail message
[SPARK-15203][DEPLOY] The spark daemon shell script error, daemon process start successfully but script output fail message

## What changes were proposed in this pull request?

fix the bug:
The spark daemon shell script error, daemon process start successfully but script output fail message

## How was this patch tested?

existing test.

Author: WeichenXu <WeichenXu123@outlook.com>

Closes #13172 from WeichenXu123/fix-spark-15203.

janewangfb/spark,huang1900/spark,saltstar/spark,Panos-Bletsos/spark-cost-model-optimizer,yanboliang/spark,ueshin/apache-spark,ajaysaini725/spark,brad-kaiser/spark,holdenk/spark,shaneknapp/spark,apache/spark,metamx/spark,metamx/spark,debugger87/spark,tengpeng/spark,skonto/spark,jrshust/spark,narahari92/spark,WindCanDie/spark,lxsmnv/spark,hhbyyh/spark,poffuomo/spark,eyalfa/spark,zhouyejoe/spark,wangmiao1981/spark,ueshin/apache-spark,highfei2011/spark,setjet/spark,apache/spark,rednaxelafx/apache-spark,techaddict/spark,kevinyu98/spark,szhem/spark,sureshthalamati/spark,jkbradley/spark,guoxiaolongzte/spark,nchammas/spark,nilsgrabbert/spark,ericvandenbergfb/spark,saturday-shi/spark,WindCanDie/spark,ron8hu/spark,milliman/spark,wangmiao1981/spark,actuaryzhang/spark,setjet/spark,ibm-research-ireland/sparkoscope,akopich/spark,milliman/spark,ConeyLiu/spark,someorz/spark,cloud-fan/spark,shubhamchopra/spark,mahak/spark,adrian-ionescu/apache-spark,zero323/spark,ddna1021/spark,yanboliang/spark,tejasapatil/spark,michalsenkyr/spark,mdespriee/spark,vinodkc/spark,wangyum/spark,pgandhi999/spark,highfei2011/spark,techaddict/spark,poffuomo/spark,setjet/spark,setjet/spark,nchammas/spark,panfengfeng/spark,zhouyejoe/spark,icexelloss/spark,tejasapatil/spark,kiszk/spark,jiangxb1987/spark,saltstar/spark,nilsgrabbert/spark,kimoonkim/spark,loneknightpy/spark,kevinyu98/spark,apache/spark,rednaxelafx/apache-spark,hvanhovell/spark,ioana-delaney/spark,markhamstra/spark,dbtsai/spark,caneGuy/spark,shaneknapp/spark,andrewor14/spark,narahari92/spark,hhbyyh/spark,ahnqirage/spark,BryanCutler/spark,actuaryzhang/spark,patrick-nicholson/spark,xflin/spark,darionyaphet/spark,tengpeng/spark,ahnqirage/spark,1haodian/spark,kiszk/spark,mzl9039/spark,ptkool/spark,zzcclp/spark,andrewor14/spark,darionyaphet/spark,narahari92/spark,cin/spark,gengliangwang/spark,alunarbeach/spark,adrian-ionescu/apache-spark,saltstar/spark,xuanyuanking/spark,taroplus/spark,mike0sv/spark,mahak/spark,WeichenXu123/spark,tejasapatil/spark,apache/spark,jkbradley/spark,jiangxb1987/spark,caneGuy/spark,darionyaphet/spark,alunarbeach/spark,aray/spark,bdrillard/spark,andrewor14/spark,nilsgrabbert/spark,spark-test/spark,janewangfb/spark,jiangxb1987/spark,mzl9039/spark,saturday-shi/spark,nilsgrabbert/spark,taroplus/spark,eyalfa/spark,ptkool/spark,mzl9039/spark,Aegeaner/spark,liutang123/spark,dhruve/spark,highfei2011/spark,ron8hu/spark,publicRoman/spark,zero323/spark,mahak/spark,1haodian/spark,WindCanDie/spark,JerryLead/spark,shaneknapp/spark,rezasafi/spark,taroplus/spark,michalsenkyr/spark,rikima/spark,holdenk/spark,stanzhai/spark,markhamstra/spark,wangyum/spark,huang1900/spark,xuanyuanking/spark,byakuinss/spark,SHASHANKB/spark,liutang123/spark,wzhfy/spark,chuckchen/spark,taroplus/spark,saturday-shi/spark,UndeadBaneGitHub/spark,akopich/spark,hhbyyh/spark,ddna1021/spark,markhamstra/spark,akopich/spark,bravo-zhang/spark,mdespriee/spark,milliman/spark,pgandhi999/spark,byakuinss/spark,chuckchen/spark,caneGuy/spark,JoshRosen/spark,zzcclp/spark,apache/spark,srowen/spark,stanzhai/spark,saltstar/spark,bravo-zhang/spark,rekhajoshm/spark,Panos-Bletsos/spark-cost-model-optimizer,michalsenkyr/spark,chuckchen/spark,hvanhovell/spark,akopich/spark,map222/spark,shuangshuangwang/spark,taroplus/spark,andrewor14/spark,rikima/spark,bravo-zhang/spark,someorz/spark,yanboliang/spark,esi-mineset/spark,jlopezmalla/spark,nilsgrabbert/spark,lxsmnv/spark,Aegeaner/spark,stanzhai/spark,vinodkc/spark,cin/spark,JerryLead/spark,mdespriee/spark,nlalevee/spark,apache-spark-on-k8s/spark,setjet/spark,jrshust/spark,alunarbeach/spark,ibm-research-ireland/sparkoscope,nilsgrabbert/spark,srowen/spark,ueshin/apache-spark,bOOm-X/spark,mike0sv/spark,ueshin/apache-spark,byakuinss/spark,MLnick/spark,apache-spark-on-k8s/spark,zuotingbing/spark,mahak/spark,shubhamchopra/spark,goldmedal/spark,tengpeng/spark,chuckchen/spark,map222/spark,SHASHANKB/spark,kiszk/spark,gengliangwang/spark,cloud-fan/spark,xuanyuanking/spark,shaneknapp/spark,UndeadBaneGitHub/spark,caneGuy/spark,SnappyDataInc/spark,xuanyuanking/spark,kissmetrics/spark,ptkool/spark,gengliangwang/spark,sahilTakiar/spark,guoxiaolongzte/spark,adrian-ionescu/apache-spark,skonto/spark,UndeadBaneGitHub/spark,srowen/spark,janewangfb/spark,ahnqirage/spark,JerryLead/spark,yanboliang/spark,rekhajoshm/spark,patrick-nicholson/spark,publicRoman/spark,jlopezmalla/spark,huang1900/spark,kevinyu98/spark,poffuomo/spark,SnappyDataInc/spark,witgo/spark,zuotingbing/spark,big-pegasus/spark,jlopezmalla/spark,jrshust/spark,SnappyDataInc/spark,sahilTakiar/spark,hvanhovell/spark,HyukjinKwon/spark,HyukjinKwon/spark,debugger87/spark,SHASHANKB/spark,liyichao/spark,bOOm-X/spark,ahnqirage/spark,ericvandenbergfb/spark,yanboliang/spark,sachintyagi22/spark,stanzhai/spark,lxsmnv/spark,aokolnychyi/spark,ConeyLiu/spark,rednaxelafx/apache-spark,lvdongr/spark,akopich/spark,ConeyLiu/spark,techaddict/spark,nchammas/spark,ajaysaini725/spark,jianran/spark,wangyum/spark,wzhfy/spark,jianran/spark,nilsgrabbert/spark,aosagie/spark,facaiy/spark,skonto/spark,BryanCutler/spark,wzhfy/spark,WindCanDie/spark,liutang123/spark,ericvandenbergfb/spark,JerryLead/spark,1haodian/spark,wangmiao1981/spark,holdenk/spark,HyukjinKwon/spark,nchammas/spark,darionyaphet/spark,icexelloss/spark,brad-kaiser/spark,szhem/spark,dongjoon-hyun/spark,dhruve/spark,wzhfy/spark,facaiy/spark,kevinyu98/spark,big-pegasus/spark,kissmetrics/spark,mike0sv/spark,vinodkc/spark,joseph-torres/spark,Panos-Bletsos/spark-cost-model-optimizer,rednaxelafx/apache-spark,wangmiao1981/spark,actuaryzhang/spark,facaiy/spark,panfengfeng/spark,aosagie/spark,narahari92/spark,alunarbeach/spark,sureshthalamati/spark,kimoonkim/spark,poffuomo/spark,setjet/spark,rednaxelafx/apache-spark,MLnick/spark,lvdongr/spark,rezasafi/spark,ddna1021/spark,techaddict/spark,WeichenXu123/spark,akopich/spark,narahari92/spark,kimoonkim/spark,darionyaphet/spark,metamx/spark,bdrillard/spark,saltstar/spark,someorz/spark,ConeyLiu/spark,aray/spark,ericvandenbergfb/spark,brad-kaiser/spark,ahnqirage/spark,publicRoman/spark,zuotingbing/spark,nchammas/spark,wangyum/spark,cin/spark,zero323/spark,kevinyu98/spark,JerryLead/spark,apache-spark-on-k8s/spark,bOOm-X/spark,rikima/spark,sachintyagi22/spark,eyalfa/spark,aokolnychyi/spark,ericvandenbergfb/spark,loneknightpy/spark,bravo-zhang/spark,shubhamchopra/spark,guoxiaolongzte/spark,dbtsai/spark,aokolnychyi/spark,1haodian/spark,darionyaphet/spark,eyalfa/spark,LantaoJin/spark,cin/spark,SnappyDataInc/spark,BryanCutler/spark,ueshin/apache-spark,actuaryzhang/spark,maropu/spark,minixalpha/spark,bdrillard/spark,ron8hu/spark,apache/spark,stanzhai/spark,tejasapatil/spark,ptkool/spark,apache-spark-on-k8s/spark,brad-kaiser/spark,1haodian/spark,shuangshuangwang/spark,aray/spark,liutang123/spark,lxsmnv/spark,someorz/spark,milliman/spark,xflin/spark,apache/spark,pgandhi999/spark,mahak/spark,byakuinss/spark,janewangfb/spark,nlalevee/spark,vinodkc/spark,xflin/spark,szhem/spark,hvanhovell/spark,spark-test/spark,cloud-fan/spark,lvdongr/spark,joseph-torres/spark,bdrillard/spark,zero323/spark,pgandhi999/spark,loneknightpy/spark,apache-spark-on-k8s/spark,rekhajoshm/spark,LantaoJin/spark,ddna1021/spark,andrewor14/spark,shaneknapp/spark,JerryLead/spark,tejasapatil/spark,markhamstra/spark,kevinyu98/spark,wzhfy/spark,dongjoon-hyun/spark,alunarbeach/spark,metamx/spark,lvdongr/spark,bravo-zhang/spark,icexelloss/spark,ioana-delaney/spark,bravo-zhang/spark,apache-spark-on-k8s/spark,jianran/spark,mzl9039/spark,MLnick/spark,zzcclp/spark,shubhamchopra/spark,rikima/spark,big-pegasus/spark,techaddict/spark,chuckchen/spark,icexelloss/spark,wangmiao1981/spark,esi-mineset/spark,byakuinss/spark,WeichenXu123/spark,ibm-research-ireland/sparkoscope,huang1900/spark,witgo/spark,bOOm-X/spark,bOOm-X/spark,patrick-nicholson/spark,maropu/spark,aokolnychyi/spark,sureshthalamati/spark,jrshust/spark,joseph-torres/spark,yanboliang/spark,nlalevee/spark,cin/spark,jiangxb1987/spark,liutang123/spark,taroplus/spark,jlopezmalla/spark,huang1900/spark,gengliangwang/spark,Aegeaner/spark,maropu/spark,patrick-nicholson/spark,ioana-delaney/spark,lvdongr/spark,ericvandenbergfb/spark,jianran/spark,maropu/spark,yanboliang/spark,Panos-Bletsos/spark-cost-model-optimizer,bOOm-X/spark,matthewfranglen/spark,SHASHANKB/spark,JoshRosen/spark,Aegeaner/spark,mdespriee/spark,michalsenkyr/spark,liyichao/spark,goldmedal/spark,Aegeaner/spark,liyichao/spark,WeichenXu123/spark,ConeyLiu/spark,vinodkc/spark,joseph-torres/spark,dbtsai/spark,WindCanDie/spark,ddna1021/spark,zhouyejoe/spark,map222/spark,zuotingbing/spark,debugger87/spark,hhbyyh/spark,ioana-delaney/spark,debugger87/spark,cloud-fan/spark,rekhajoshm/spark,aosagie/spark,maropu/spark,UndeadBaneGitHub/spark,hvanhovell/spark,narahari92/spark,mike0sv/spark,nlalevee/spark,JoshRosen/spark,1haodian/spark,UndeadBaneGitHub/spark,pgandhi999/spark,icexelloss/spark,aosagie/spark,aokolnychyi/spark,aray/spark,bravo-zhang/spark,bdrillard/spark,mdespriee/spark,facaiy/spark,milliman/spark,brad-kaiser/spark,skonto/spark,Aegeaner/spark,sachintyagi22/spark,byakuinss/spark,kimoonkim/spark,caneGuy/spark,goldmedal/spark,ericvandenbergfb/spark,huang1900/spark,brad-kaiser/spark,sachintyagi22/spark,ron8hu/spark,milliman/spark,kiszk/spark,JoshRosen/spark,taroplus/spark,tejasapatil/spark,ron8hu/spark,jrshust/spark,stanzhai/spark,panfengfeng/spark,ajaysaini725/spark,mzl9039/spark,cloud-fan/spark,xflin/spark,liyichao/spark,holdenk/spark,kissmetrics/spark,jiangxb1987/spark,SHASHANKB/spark,michalsenkyr/spark,maropu/spark,witgo/spark,shuangshuangwang/spark,dongjoon-hyun/spark,ptkool/spark,rednaxelafx/apache-spark,kiszk/spark,shaneknapp/spark,zhouyejoe/spark,JoshRosen/spark,LantaoJin/spark,jkbradley/spark,zero323/spark,witgo/spark,Panos-Bletsos/spark-cost-model-optimizer,ajaysaini725/spark,1haodian/spark,jianran/spark,minixalpha/spark,esi-mineset/spark,guoxiaolongzte/spark,michalsenkyr/spark,someorz/spark,liutang123/spark,panfengfeng/spark,kissmetrics/spark,panfengfeng/spark,highfei2011/spark,joseph-torres/spark,michalsenkyr/spark,WeichenXu123/spark,ron8hu/spark,kiszk/spark,poffuomo/spark,poffuomo/spark,guoxiaolongzte/spark,HyukjinKwon/spark,WeichenXu123/spark,BryanCutler/spark,rezasafi/spark,jkbradley/spark,wzhfy/spark,hvanhovell/spark,kissmetrics/spark,ptkool/spark,dongjoon-hyun/spark,janewangfb/spark,caneGuy/spark,ron8hu/spark,witgo/spark,shuangshuangwang/spark,MLnick/spark,kevinyu98/spark,sachintyagi22/spark,spark-test/spark,ueshin/apache-spark,shuangshuangwang/spark,hvanhovell/spark,szhem/spark,nchammas/spark,dongjoon-hyun/spark,pgandhi999/spark,jlopezmalla/spark,lxsmnv/spark,rekhajoshm/spark,kiszk/spark,WindCanDie/spark,MLnick/spark,highfei2011/spark,metamx/spark,actuaryzhang/spark,facaiy/spark,MLnick/spark,UndeadBaneGitHub/spark,minixalpha/spark,SnappyDataInc/spark,spark-test/spark,mdespriee/spark,darionyaphet/spark,cin/spark,nlalevee/spark,jkbradley/spark,ajaysaini725/spark,hhbyyh/spark,HyukjinKwon/spark,big-pegasus/spark,dbtsai/spark,rekhajoshm/spark,skonto/spark,ueshin/apache-spark,debugger87/spark,BryanCutler/spark,rikima/spark,techaddict/spark,nlalevee/spark,jianran/spark,mike0sv/spark,wangyum/spark,jkbradley/spark,Panos-Bletsos/spark-cost-model-optimizer,cloud-fan/spark,aray/spark,srowen/spark,dongjoon-hyun/spark,nlalevee/spark,dhruve/spark,poffuomo/spark,actuaryzhang/spark,patrick-nicholson/spark,xflin/spark,dbtsai/spark,jlopezmalla/spark,gengliangwang/spark,apache-spark-on-k8s/spark,goldmedal/spark,sachintyagi22/spark,sureshthalamati/spark,guoxiaolongzte/spark,debugger87/spark,adrian-ionescu/apache-spark,dhruve/spark,srowen/spark,saturday-shi/spark,techaddict/spark,facaiy/spark,shubhamchopra/spark,lvdongr/spark,saturday-shi/spark,zero323/spark,publicRoman/spark,esi-mineset/spark,zzcclp/spark,adrian-ionescu/apache-spark,xflin/spark,LantaoJin/spark,caneGuy/spark,wangyum/spark,witgo/spark,big-pegasus/spark,minixalpha/spark,zzcclp/spark,map222/spark,akopich/spark,lxsmnv/spark,hhbyyh/spark,mdespriee/spark,witgo/spark,chuckchen/spark,esi-mineset/spark,aosagie/spark,janewangfb/spark,xflin/spark,publicRoman/spark,big-pegasus/spark,cin/spark,ibm-research-ireland/sparkoscope,aray/spark,szhem/spark,metamx/spark,skonto/spark,jkbradley/spark,srowen/spark,rikima/spark,tejasapatil/spark,debugger87/spark,shuangshuangwang/spark,markhamstra/spark,aokolnychyi/spark,UndeadBaneGitHub/spark,sahilTakiar/spark,aray/spark,patrick-nicholson/spark,loneknightpy/spark,narahari92/spark,highfei2011/spark,jianran/spark,rezasafi/spark,wangmiao1981/spark,eyalfa/spark,liutang123/spark,alunarbeach/spark,SnappyDataInc/spark,byakuinss/spark,ajaysaini725/spark,shaneknapp/spark,gengliangwang/spark,saturday-shi/spark,ahnqirage/spark,esi-mineset/spark,gengliangwang/spark,saltstar/spark,zuotingbing/spark,aokolnychyi/spark,ConeyLiu/spark,bOOm-X/spark,xuanyuanking/spark,patrick-nicholson/spark,shuangshuangwang/spark,panfengfeng/spark,skonto/spark,wangmiao1981/spark,zhouyejoe/spark,chuckchen/spark,big-pegasus/spark,andrewor14/spark,map222/spark,WeichenXu123/spark,JoshRosen/spark,MLnick/spark,rezasafi/spark,adrian-ionescu/apache-spark,sahilTakiar/spark,bdrillard/spark,SHASHANKB/spark,dhruve/spark,spark-test/spark,tengpeng/spark,actuaryzhang/spark,kissmetrics/spark,sahilTakiar/spark,ajaysaini725/spark,rekhajoshm/spark,minixalpha/spark,ahnqirage/spark,SHASHANKB/spark,zzcclp/spark,srowen/spark,someorz/spark,HyukjinKwon/spark,kimoonkim/spark,ibm-research-ireland/sparkoscope,tengpeng/spark,mzl9039/spark,publicRoman/spark,mike0sv/spark,aosagie/spark,holdenk/spark,janewangfb/spark,mahak/spark,LantaoJin/spark,map222/spark,Panos-Bletsos/spark-cost-model-optimizer,cloud-fan/spark,liyichao/spark,sahilTakiar/spark,joseph-torres/spark,jrshust/spark,WindCanDie/spark,lxsmnv/spark,icexelloss/spark,sachintyagi22/spark,spark-test/spark,dhruve/spark,stanzhai/spark,loneknightpy/spark,tengpeng/spark,ioana-delaney/spark,vinodkc/spark,rednaxelafx/apache-spark,zhouyejoe/spark,zuotingbing/spark,liyichao/spark,facaiy/spark,HyukjinKwon/spark,publicRoman/spark,ibm-research-ireland/sparkoscope,rezasafi/spark,dhruve/spark,ddna1021/spark,LantaoJin/spark,zzcclp/spark,holdenk/spark,kimoonkim/spark,adrian-ionescu/apache-spark,xuanyuanking/spark,zero323/spark,alunarbeach/spark,loneknightpy/spark,ioana-delaney/spark,saltstar/spark,joseph-torres/spark,nchammas/spark,panfengfeng/spark,goldmedal/spark,minixalpha/spark,shubhamchopra/spark,jlopezmalla/spark,xuanyuanking/spark,BryanCutler/spark,lvdongr/spark,sureshthalamati/spark,brad-kaiser/spark,mahak/spark,zhouyejoe/spark,dongjoon-hyun/spark,vinodkc/spark,kissmetrics/spark,rezasafi/spark,ibm-research-ireland/sparkoscope,szhem/spark,icexelloss/spark,someorz/spark,mzl9039/spark,holdenk/spark,zuotingbing/spark,sureshthalamati/spark,ConeyLiu/spark,rikima/spark,dbtsai/spark,aosagie/spark,guoxiaolongzte/spark,Aegeaner/spark,bdrillard/spark,ioana-delaney/spark,kimoonkim/spark,ptkool/spark,saturday-shi/spark,wzhfy/spark,goldmedal/spark,pgandhi999/spark,huang1900/spark,markhamstra/spark,markhamstra/spark,maropu/spark,liyichao/spark,minixalpha/spark,jiangxb1987/spark,highfei2011/spark,esi-mineset/spark,sureshthalamati/spark,jiangxb1987/spark,metamx/spark,tengpeng/spark,goldmedal/spark,JerryLead/spark,setjet/spark,eyalfa/spark,ddna1021/spark,LantaoJin/spark,jrshust/spark,SnappyDataInc/spark,spark-test/spark,shubhamchopra/spark,andrewor14/spark,map222/spark,milliman/spark,hhbyyh/spark,BryanCutler/spark,eyalfa/spark,loneknightpy/spark,wangyum/spark,JoshRosen/spark,sahilTakiar/spark,szhem/spark,mike0sv/spark,dbtsai/spark