murong00 opened a new pull request #1359:
URL: https://github.com/apache/incubator-kyuubi/pull/1359


   ### _Why are the changes needed?_
   Users may encounter the following exception when trying to set 
`kyuubi.ha.zookeeper.quorum` to `localhost:2181/lakehouse` with chroot path 
`/lakehouse` nonexisted:
   ```
   2021-11-10 10:56:34.510 ERROR server.KyuubiThriftBinaryFrontendService: 
Error starting service KyuubiServiceDiscovery
   org.apache.kyuubi.KyuubiException: Failed to create namespace '/kyuubi'
           at 
org.apache.kyuubi.ha.client.ServiceDiscovery$.createServiceNode(ServiceDiscovery.scala:225)
           at 
org.apache.kyuubi.ha.client.ServiceDiscovery.start(ServiceDiscovery.scala:101)
   ......
   Caused by: org.apache.zookeeper.KeeperException$NoNodeException: 
KeeperErrorCode = NoNode for /kyuubi
           at 
org.apache.zookeeper.KeeperException.create(KeeperException.java:114)
   ......
   ```
   It is wonderful to support this since zookeeper connection with chroot path 
is generally recommended in production environments. With this feture the 
znodes in zookeeper likes below:
   ```
   [zk: localhost:2181(CONNECTED) 28] ls /lakehouse
   [kyuubi, kyuubi_USER, kyuubi_USER_SPARK_SQL]
   ```
   ### _How was this patch tested?_
   - [ ] Add some test cases that check the changes thoroughly including 
negative and positive cases if possible
   
   - [ ] Add screenshots for manual tests if appropriate
   
   - [x] [Run 
test](https://kyuubi.readthedocs.io/en/latest/develop_tools/testing.html#running-tests)
 locally before make a pull request
   


-- 
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]


Reply via email to