Replies: 2 comments
-
Related issues: #1754 |
Beta Was this translation helpful? Give feedback.
0 replies
-
How about extending MetadataManager? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
At present, kyuubi server saves some states of session and operation, such as: engine instance, remote handle, etc., in memory, resulting in kyuubi server not completely highly available, and grayscale republish kyuubi server takes a lot of time, so I want to introduce external storage to store the state of session and operation in Kyuubi Server.
一、背景
1、需求背景
我们目前的部署模式是在每个集群部署 5 个 Kyuubi Server 服务,使用 Hive JDBC Zookeeper 方式的连接。
此方式存在一些问题:
2、Kyuubi Server 中 SQL 执行流程
2.1、Kyuubi Server 中相关类梳理(伪代码):
2.2、SQL 执行流程:
3、Kyuubi Server 状态梳理
二、方案
1、实现思路
1.1、服务端
1.2、客户端
2、实现类抽象
KVStore:Key/Value 存储
StoreEntity:存储的 Value Entity
ExternalStore:Session/Operation 外部存储。enity() 方法:转换成存储的 Entity 对象;restore 方法:从 Entity 对象重新生成 Session/Operation 对象。
RestroeSession/Operation:定义 restore 的 Session/Operation 对象,禁用一些不可调用的方法,并进行重新打开连接等操作。
Beta Was this translation helpful? Give feedback.
All reactions