touchida opened a new issue, #5010:
URL: https://github.com/apache/kyuubi/issues/5010

   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   
   
   ### Search before asking
   
   - [X] I have searched in the 
[issues](https://github.com/apache/kyuubi/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Describe the bug
   
   In our company, we'd like to provide the two types of HA endpoints to users 
at the same time: Load Balancer using VIP and Zookeeper service discovery mode.
   It is because some clients such as PyHive do not support the latter.
   However, when we set `kyuubi.frontend.bind.host=0.0.0.0`, Zookeeper service 
discovery mode will not work, since the `serviceUri` stored in the znode also 
becomes `0.0.0.0`.
   
   In more details, when we set
   - `kyuubi.frontend.bind.host=0.0.0.0`
   - `kyuubi.frontend.thrift.binary.bind.port=10009`
   The znode becomes as follows:
   ```
   [zk: some_zk_host:some_zk_port(CONNECTED) 0] ls /some_kyuubi_zk_namespace
   [serviceUri=0.0.0.0:10009;version=1.8.0-SNAPSHOT;sequence=0000000007]
   ```
   
   HiveServer2 supports the two types of endpoints at the same time by 
`hive.server2.thrift.bind.host=""` (default value).
   For the details, read the below source code (carefully).
   - 
https://github.com/apache/hive/blob/877a009/service/src/java/org/apache/hive/service/cli/thrift/ThriftBinaryCLIService.java#L85
   - 
https://github.com/apache/hive/blob/877a009/service/src/java/org/apache/hive/service/server/HiveServer2.java#L311
   
   ### Affects Version(s)
   
   master
   
   ### Kyuubi Server Log Output
   
   _No response_
   
   ### Kyuubi Engine Log Output
   
   _No response_
   
   ### Kyuubi Server Configurations
   
   ```yaml
   `kyuubi.frontend.bind.host=0.0.0.0`
   ```
   
   
   ### Kyuubi Engine Configurations
   
   _No response_
   
   ### Additional context
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] Yes. I would be willing to submit a PR with guidance from the Kyuubi 
community to fix.
   - [ ] No. I cannot submit a PR at this time.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to