SPARK-2400 : fix spark.yarn.max.executor.failures explaination
SPARK-2400 : fix spark.yarn.max.executor.failures explaination

According to
```scala
  private val maxNumExecutorFailures = sparkConf.getInt("spark.yarn.max.executor.failures",
    sparkConf.getInt("spark.yarn.max.worker.failures", math.max(args.numExecutors * 2, 3)))
```
default value should be numExecutors * 2, with minimum of 3,  and it's same to the config
`spark.yarn.max.worker.failures`

Author: CrazyJvm <crazyjvm@gmail.com>

Closes #1282 from CrazyJvm/yarn-doc and squashes the following commits:

1a5f25b [CrazyJvm] remove deprecated config
c438aec [CrazyJvm] fix style
86effa6 [CrazyJvm] change expression
211f130 [CrazyJvm] fix html tag
2900d23 [CrazyJvm] fix style
a4b2e27 [CrazyJvm] fix configuration spark.yarn.max.executor.failures

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