Github user xiaowangyu commented on the pull request:
https://github.com/apache/spark/pull/9113#issuecomment-165116582
Test this issue:
1.Add property to hive-site.xml
```
hive.server2.support.dynamic.service.discovery=true
hive.server2.zookeeper.namespace=sparkhiveserver2
hive.zookeeper.quorum=zk1,zk2,zk3
```
2.Start up sparkthriftserver
3.In the zookeeper path /sparkhiveserver2 will see:
```
serverUri=x.x.x.x:10000;version=1.2.1.spark;sequence=0000000026
```
4.Connect sparkthriftserver by beeline command:
```
!connect
jdbc:hive2://zk1,zk2,zk3/default;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=sparkhiveserver2
```
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]