[AIRFLOW-284] HiveServer2Hook fix for cursor scope for get_results
[AIRFLOW-284] HiveServer2Hook fix for cursor scope for get_results

Dear Airflow Maintainers,

Please accept this PR that addresses the following issues:
- *(replace with a link to AIRFLOW-X)*

Detail:
The function `get_results` implemented in the `HiveServer2Hook` does not execute multiple commands passed to it in a list, in the singular cursor scope. This has caused SQL statements that depend on the execution of `add jar` and `set` commands to fail as they are being executed in different cursor scopes which are not persistent.
The code has been updated to have the cursor object persistent.

Testing Done:

Reminders for contributors:
* Your PR's title must reference an issue on [Airflow's JIRA](https://issues.apache.org/jira/browse/AIRFLOW/). For example, a PR called "[AIRFLOW-1] My Amazing PR" would close JIRA issue #1. Please open a new issue if required!
* Please squash your commits when possible and follow the [7 rules of good Git commits](http://chris.beams.io/posts/git-commit/#seven-rules).

mistercrunch

Closes #1629 from sherwian/hivehook_fx

dmitry-r/incubator-airflow,gritlogic/incubator-airflow,jfantom/incubator-airflow,zoyahav/incubator-airflow,nathanielvarona/airflow,holygits/incubator-airflow,sid88in/incubator-airflow,malmiron/incubator-airflow,easytaxibr/airflow,CloverHealth/airflow,jbhsieh/incubator-airflow,hgrif/incubator-airflow,wolfier/incubator-airflow,criccomini/airflow,juvoinc/airflow,subodhchhabra/airflow,vineet-rh/incubator-airflow,fenglu-g/incubator-airflow,akosel/incubator-airflow,nathanielvarona/airflow,dmitry-r/incubator-airflow,lxneng/incubator-airflow,Acehaidrey/incubator-airflow,wolfier/incubator-airflow,kerzhner/airflow,mrkm4ntr/incubator-airflow,jiwang576/incubator-airflow,akosel/incubator-airflow,sdiazb/airflow,airbnb/airflow,janczak10/incubator-airflow,nathanielvarona/airflow,mattuuh7/incubator-airflow,artwr/airflow,lxneng/incubator-airflow,mtagle/airflow,Tagar/incubator-airflow,mrares/incubator-airflow,dgies/incubator-airflow,wileeam/airflow,ledsusop/airflow,holygits/incubator-airflow,aminghadersohi/airflow,sdiazb/airflow,edgarRd/incubator-airflow,MetrodataTeam/incubator-airflow,ProstoMaxim/incubator-airflow,owlabs/incubator-airflow,mrares/incubator-airflow,subodhchhabra/airflow,bolkedebruin/airflow,jesusfcr/airflow,Fokko/incubator-airflow,wndhydrnt/airflow,sergiohgz/incubator-airflow,CloverHealth/airflow,N3da/incubator-airflow,vijaysbhat/incubator-airflow,mylons/incubator-airflow,dhuang/incubator-airflow,jesusfcr/airflow,spektom/incubator-airflow,criccomini/airflow,stverhae/incubator-airflow,ronfung/incubator-airflow,KL-WLCR/incubator-airflow,jlowin/airflow,dhuang/incubator-airflow,adamhaney/airflow,wileeam/airflow,caseyching/incubator-airflow,artwr/airflow,jiwang576/incubator-airflow,hamedhsn/incubator-airflow,forevernull/incubator-airflow,jlowin/airflow,aminghadersohi/airflow,adrpar/incubator-airflow,skudriashev/incubator-airflow,owlabs/incubator-airflow,DinoCow/airflow,jbhsieh/incubator-airflow,hamedhsn/incubator-airflow,vineet-rh/incubator-airflow,mrkm4ntr/incubator-airflow,danielvdende/incubator-airflow,asnir/airflow,dhuang/incubator-airflow,holygits/incubator-airflow,alexvanboxel/airflow,gtoonstra/airflow,RealImpactAnalytics/airflow,vineet-rh/incubator-airflow,d-lee/airflow,adrpar/incubator-airflow,danielvdende/incubator-airflow,zoyahav/incubator-airflow,ledsusop/airflow,stverhae/incubator-airflow,Fokko/incubator-airflow,mistercrunch/airflow,cfei18/incubator-airflow,alexvanboxel/airflow,cjqian/incubator-airflow,artwr/airflow,gtoonstra/airflow,dmitry-r/incubator-airflow,gritlogic/incubator-airflow,mistercrunch/airflow,ProstoMaxim/incubator-airflow,cfei18/incubator-airflow,caseyching/incubator-airflow,yk5/incubator-airflow,bolkedebruin/airflow,gilt/incubator-airflow,plypaul/airflow,CloverHealth/airflow,wndhydrnt/airflow,easytaxibr/airflow,zack3241/incubator-airflow,asnir/airflow,preete-dixit-ck/incubator-airflow,r39132/airflow,kerzhner/airflow,r39132/airflow,NielsZeilemaker/incubator-airflow,ty707/airflow,KL-WLCR/incubator-airflow,aminghadersohi/airflow,wileeam/airflow,sid88in/incubator-airflow,airbnb/airflow,wileeam/airflow,danielvdende/incubator-airflow,apache/airflow,asnir/airflow,artwr/airflow,edgarRd/incubator-airflow,brandsoulmates/incubator-airflow,sergiohgz/incubator-airflow,akosel/incubator-airflow,apache/airflow,adamhaney/airflow,yati-sagade/incubator-airflow,bolkedebruin/airflow,andyxhadji/incubator-airflow,nathanielvarona/airflow,bolkedebruin/airflow,mattuuh7/incubator-airflow,apache/incubator-airflow,N3da/incubator-airflow,gritlogic/incubator-airflow,cjqian/incubator-airflow,forevernull/incubator-airflow,MetrodataTeam/incubator-airflow,stverhae/incubator-airflow,skudriashev/incubator-airflow,mattuuh7/incubator-airflow,airbnb/airflow,mtdewulf/incubator-airflow,wolfier/incubator-airflow,sekikn/incubator-airflow,mrkm4ntr/incubator-airflow,hamedhsn/incubator-airflow,r39132/airflow,spektom/incubator-airflow,zack3241/incubator-airflow,sdiazb/airflow,brandsoulmates/incubator-airflow,holygits/incubator-airflow,zoyahav/incubator-airflow,sekikn/incubator-airflow,RealImpactAnalytics/airflow,jgao54/airflow,OpringaoDoTurno/airflow,caseyching/incubator-airflow,zodiac/incubator-airflow,OpringaoDoTurno/airflow,cfei18/incubator-airflow,malmiron/incubator-airflow,mylons/incubator-airflow,wndhydrnt/airflow,preete-dixit-ck/incubator-airflow,adamhaney/airflow,apache/incubator-airflow,sid88in/incubator-airflow,MetrodataTeam/incubator-airflow,rishibarve/incubator-airflow,rishibarve/incubator-airflow,ronfung/incubator-airflow,sid88in/incubator-airflow,DEVELByte/incubator-airflow,ProstoMaxim/incubator-airflow,hgrif/incubator-airflow,cfei18/incubator-airflow,ty707/airflow,AllisonWang/incubator-airflow,lyft/incubator-airflow,aminghadersohi/airflow,apache/airflow,mylons/incubator-airflow,gilt/incubator-airflow,dgies/incubator-airflow,cjqian/incubator-airflow,lyft/incubator-airflow,adrpar/incubator-airflow,janczak10/incubator-airflow,N3da/incubator-airflow,wndhydrnt/airflow,ledsusop/airflow,OpringaoDoTurno/airflow,wolfier/incubator-airflow,lyft/incubator-airflow,yati-sagade/incubator-airflow,rishibarve/incubator-airflow,kerzhner/airflow,N3da/incubator-airflow,jgao54/airflow,gilt/incubator-airflow,yati-sagade/incubator-airflow,andyxhadji/incubator-airflow,nathanielvarona/airflow,yk5/incubator-airflow,adamhaney/airflow,sekikn/incubator-airflow,jiwang576/incubator-airflow,MetrodataTeam/incubator-airflow,lyft/incubator-airflow,jbhsieh/incubator-airflow,sergiohgz/incubator-airflow,Acehaidrey/incubator-airflow,btallman/incubator-airflow,owlabs/incubator-airflow,brandsoulmates/incubator-airflow,jlowin/airflow,mistercrunch/airflow,forevernull/incubator-airflow,Twistbioscience/incubator-airflow,ronfung/incubator-airflow,mylons/incubator-airflow,gilt/incubator-airflow,plypaul/airflow,alexvanboxel/airflow,Twistbioscience/incubator-airflow,vineet-rh/incubator-airflow,NielsZeilemaker/incubator-airflow,skudriashev/incubator-airflow,dmitry-r/incubator-airflow,apache/incubator-airflow,dgies/incubator-airflow,vijaysbhat/incubator-airflow,OpringaoDoTurno/airflow,brandsoulmates/incubator-airflow,jfantom/incubator-airflow,zodiac/incubator-airflow,Twistbioscience/incubator-airflow,criccomini/airflow,zodiac/incubator-airflow,juvoinc/airflow,asnir/airflow,saguziel/incubator-airflow,d-lee/airflow,jhsenjaliya/incubator-airflow,stverhae/incubator-airflow,edgarRd/incubator-airflow,Fokko/incubator-airflow,cademarkegard/airflow,Twistbioscience/incubator-airflow,Tagar/incubator-airflow,MortalViews/incubator-airflow,cademarkegard/airflow,rishibarve/incubator-airflow,mrares/incubator-airflow,yiqingj/airflow,edgarRd/incubator-airflow,mrkm4ntr/incubator-airflow,jlowin/airflow,mistercrunch/airflow,spektom/incubator-airflow,zack3241/incubator-airflow,jhsenjaliya/incubator-airflow,mattuuh7/incubator-airflow,AllisonWang/incubator-airflow,hgrif/incubator-airflow,subodhchhabra/airflow,hgrif/incubator-airflow,yk5/incubator-airflow,Acehaidrey/incubator-airflow,bolkedebruin/airflow,kerzhner/airflow,MortalViews/incubator-airflow,dhuang/incubator-airflow,Tagar/incubator-airflow,mtagle/airflow,adrpar/incubator-airflow,gtoonstra/airflow,vijaysbhat/incubator-airflow,KL-WLCR/incubator-airflow,andyxhadji/incubator-airflow,ronfung/incubator-airflow,juvoinc/airflow,apache/airflow,wooga/airflow,janczak10/incubator-airflow,mtdewulf/incubator-airflow,andrewmchen/incubator-airflow,yati-sagade/incubator-airflow,DinoCow/airflow,alexvanboxel/airflow,apache/incubator-airflow,danielvdende/incubator-airflow,Fokko/incubator-airflow,yiqingj/airflow,btallman/incubator-airflow,mtdewulf/incubator-airflow,CloverHealth/airflow,malmiron/incubator-airflow,DinoCow/airflow,cfei18/incubator-airflow,andyxhadji/incubator-airflow,skudriashev/incubator-airflow,sekikn/incubator-airflow,MortalViews/incubator-airflow,d-lee/airflow,mtagle/airflow,apache/airflow,forevernull/incubator-airflow,zack3241/incubator-airflow,nathanielvarona/airflow,Acehaidrey/incubator-airflow,wooga/airflow,fenglu-g/incubator-airflow,jesusfcr/airflow,jesusfcr/airflow,jbhsieh/incubator-airflow,jhsenjaliya/incubator-airflow,preete-dixit-ck/incubator-airflow,saguziel/incubator-airflow,RealImpactAnalytics/airflow,danielvdende/incubator-airflow,danielvdende/incubator-airflow,sdiazb/airflow,easytaxibr/airflow,saguziel/incubator-airflow,zodiac/incubator-airflow,hamedhsn/incubator-airflow,wooga/airflow,andrewmchen/incubator-airflow,easytaxibr/airflow,mrares/incubator-airflow,NielsZeilemaker/incubator-airflow,janczak10/incubator-airflow,yk5/incubator-airflow,akosel/incubator-airflow,caseyching/incubator-airflow,r39132/airflow,DEVELByte/incubator-airflow,jhsenjaliya/incubator-airflow,zoyahav/incubator-airflow,juvoinc/airflow,Acehaidrey/incubator-airflow,plypaul/airflow,jfantom/incubator-airflow,ProstoMaxim/incubator-airflow,fenglu-g/incubator-airflow,ty707/airflow,btallman/incubator-airflow,gtoonstra/airflow,lxneng/incubator-airflow,ledsusop/airflow,RealImpactAnalytics/airflow,plypaul/airflow,ty707/airflow,mtdewulf/incubator-airflow,DEVELByte/incubator-airflow,airbnb/airflow,owlabs/incubator-airflow,criccomini/airflow,Acehaidrey/incubator-airflow,yiqingj/airflow,AllisonWang/incubator-airflow,saguziel/incubator-airflow,fenglu-g/incubator-airflow,DEVELByte/incubator-airflow,btallman/incubator-airflow,sergiohgz/incubator-airflow,preete-dixit-ck/incubator-airflow,vijaysbhat/incubator-airflow,lxneng/incubator-airflow,malmiron/incubator-airflow,cademarkegard/airflow,andrewmchen/incubator-airflow,wooga/airflow,gritlogic/incubator-airflow,d-lee/airflow,AllisonWang/incubator-airflow,jgao54/airflow,jiwang576/incubator-airflow,apache/airflow,spektom/incubator-airflow,jfantom/incubator-airflow,subodhchhabra/airflow,DinoCow/airflow,yiqingj/airflow,dgies/incubator-airflow,MortalViews/incubator-airflow,Tagar/incubator-airflow,mtagle/airflow,cjqian/incubator-airflow,jgao54/airflow,NielsZeilemaker/incubator-airflow,cfei18/incubator-airflow,cademarkegard/airflow,andrewmchen/incubator-airflow,KL-WLCR/incubator-airflow