SPARK-1737: Warn rather than fail when Java 7+ is used to create distributions
SPARK-1737: Warn rather than fail when Java 7+ is used to create distributions

Also moves a few lines of code around in make-distribution.sh.

Author: Patrick Wendell <pwendell@gmail.com>

Closes #669 from pwendell/make-distribution and squashes the following commits:

8bfac49 [Patrick Wendell] Small fix
46918ec [Patrick Wendell] SPARK-1737: Warn rather than fail when Java 7+ is used to create distributions.

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