[SPARK-6193] [EC2] Push group filter up to EC2
[SPARK-6193] [EC2] Push group filter up to EC2

When looking for a cluster, spark-ec2 currently pulls down [info for all instances](https://github.com/apache/spark/blob/eb48fd6e9d55fb034c00e61374bb9c2a86a82fb8/ec2/spark_ec2.py#L620) and filters locally. When working on an AWS account with hundreds of active instances, this step alone can take over 10 seconds.

This PR improves how spark-ec2 searches for clusters by pushing the filter up to EC2.

Basically, the problem (and solution) look like this:

```python
>>> timeit.timeit('blah = conn.get_all_reservations()', setup='from __main__ import conn', number=10)
116.96390509605408
>>> timeit.timeit('blah = conn.get_all_reservations(filters={"instance.group-name": ["my-cluster-master"]})', setup='from __main__ import conn', number=10)
4.629754066467285
```

Translated to a user-visible action, this looks like (against an AWS account with ~200 active instances):

```shell
# master
$ python -m timeit -n 3 --setup 'import subprocess' 'subprocess.call("./spark-ec2 get-master my-cluster --region us-west-2", shell=True)'
...
3 loops, best of 3: 9.83 sec per loop

# this PR
$ python -m timeit -n 3 --setup 'import subprocess' 'subprocess.call("./spark-ec2 get-master my-cluster --region us-west-2", shell=True)'
...
3 loops, best of 3: 1.47 sec per loop
```

This PR also refactors `get_existing_cluster()` to make it, I hope, simpler.

Finally, this PR fixes some minor grammar issues related to printing status to the user. :tophat: :clap:

Author: Nicholas Chammas <nicholas.chammas@gmail.com>

Closes #4922 from nchammas/get-existing-cluster-faster and squashes the following commits:

18802f1 [Nicholas Chammas] ignore shutting-down
f2a5b9f [Nicholas Chammas] fix grammar
d96a489 [Nicholas Chammas] push group filter up to EC2

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