[WIP] ADH-8176: added service discovery via Zookeeper for Spark Connect#23
Open
werzerbb wants to merge 19 commits into
Open
[WIP] ADH-8176: added service discovery via Zookeeper for Spark Connect#23werzerbb wants to merge 19 commits into
werzerbb wants to merge 19 commits into
Conversation
added 7 commits
June 18, 2026 12:58
…configuration/settings.md (launched dev/gen/gen_all_config_docs.sh)
added 7 commits
July 7, 2026 16:35
…nnect_auth_pb2_grpc.py
…/ table not found) in python/kyuubi-spark-connect/kyuubi/spark_connect.py; 2) updated java client demo
…ems it's upstream issue)
… rankSpacing 80, small fixes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implemented HA (High Availability) support for Spark Connect in Kyuubi. When a Kyuubi server
crashes, clients transparently failover to another live server and resume work without user
intervention.
Architecture diagram: https://github.com/arenadata/kyuubi/blob/feature/ADH-8176-spark-connect-ha/docs/spark_connect/spark_connect_ha_architecture.mmd
What was added
sc://zk1:2181,zk2:2181/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=kyuubi_scURLto discover live Kyuubi SC servers
FailoverChannel): wraps gRPC channel, catchesUNAVAILABLE,switches to next ZK server automatically
FailoverManagedChannel+SparkConnectBridge): same forJava/Scala clients;
JdbcTokenStore): persists auth tokens in PostgreSQL/MySQL/SQLite sotokens remain valid after server failover; uses existing
kyuubi.metadata.store.jdbc.*configsession_id(client-generated, stableacross reconnects) as
engineRefId;New config options
kyuubi.ha.spark.connect.namespacekyuubi_sckyuubi.ha.namespaceto avoid Thrift clients discovering gRPC endpoints)Example usage
Dependencies
GrpcRetryHandlerfix) to be merged first