[Build] SPARK-2619: Configurable filemode for the spark/bin folder in debian package
[Build] SPARK-2619: Configurable filemode for the spark/bin folder in debian package

Add  a `<deb.bin.filemode>744</deb.bin.filemode>` property to the `assembly/pom.xml` that defaults to `744`.
Use this property for ../bin folder <filemode>.

This patch doesn't change the current default modes but allows one override the modes at build time:
`-Ddeb.bin.filemode=<new mode>`

Author: tzolov <christian.tzolov@gmail.com>

Closes #1531 from tzolov/SPARK-2619 and squashes the following commits:

6d95343 [tzolov] [Build] SPARK-2619: Configurable filemode for the spark/bin folder in the .deb package

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