[SPARK-2118] spark class should complain if tools jar is missing.
[SPARK-2118] spark class should complain if tools jar is missing.

Author: Prashant Sharma <prashant.s@imaginea.com>

Closes #1068 from ScrapCodes/SPARK-2118/tools-jar-check and squashes the following commits:

29e768b [Prashant Sharma] Code Review
5cb6f7d [Prashant Sharma] [SPARK-2118] spark class should complaing if tools jar is missing.

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