Use published "org.spark-project.akka-*" in sbt build for Hadoop-2.2 dependencies.
Use published "org.spark-project.akka-*" in sbt build for Hadoop-2.2 dependencies.

This also includes:
-Change `isNewYarn` to `isNewHadoop`, since the protobuf-2.5 dependency is from Hadoop-2.2 itself.
-Regexp bugix

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