[Docs] Correct example of creating a new SparkConf
[Docs] Correct example of creating a new SparkConf

The example code on the configuration page currently does not compile.

Author: Andrew Or <andrewor14@gmail.com>

Closes #842 from andrewor14/conf-docs and squashes the following commits:

aabff57 [Andrew Or] Correct example of creating a new SparkConf

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