Metadata Store
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
调研方向
未指定任何仓库文件或测试。先阅读 v1 范围和链接的 OpenLineage epic (#856),然后比较此处所述的拟议 API 路径和 PostgreSQL 存储方面的考虑事项。当 MVP 服务设计、支持的 API 边界、事件存储方案以及基于 Helm 的部署范围达成一致时,即视为完成。
由索引模型根据 Issue 内容生成。
描述
Stackable Metadata Store - v1
[!NOTE]
Yes, I'm aware the name is dull and technical. Anyone with a better idea is welcome to propose one.
[!IMPORTANT]
This is very much under construction
SDP deploys a dozen or more products, some of which hold data and metadata worth knowing about. We want one service that collects as much of the platform's metadata as it can, stores it, and makes it available to other services such as our Cockpit UI.
Scope
[!NOTE]
We have many ideas to extend this later. For our first version, this section describes the scope of what we want to achieve.
A read-only service that ingests OpenLineage events, stores them, and serves one or two clients/APIs:
- Cockpit probably via a custom (but documented and usable by others) API
- Stretch/Optional: OpenLineage out as well (so it can function as some kind of proxy)
- Investigate this briefly as I do not want us to offer a Push API as part of this. If that is the only way for OpenLineage to gather data.
Technical details
- Unless there are really really good arguments otherwise I'd like this to be a Rust based service, using Axum and PostgreSQL as the sole supported backing store.
- I don't know enough about this but from what I understand we probably don't need an operator for this: A Helm chart should be enough
- The "URL space" API should be ours and it should be designed so we can extend it later with more APIs to ingest and export.
/ingest/v1/openlineage, /ingest/v1/<foosource>, /v1/ingest/openlineage or /openlineage are all up for discussion. Two things to keep in mind: for OpenLineage there will be ingest and output at the same time, and it is an open question whether our own API and the external ones share a prefix or get separate ones (/api/ and /ingest/openlineage, or all the same).
No layout will be perfect, so pick one rather than overthinking it. Especially for this very first version. We will mark it experimental so we can learn a bit.
All tools we support can configure the path, so we can pick whatever. The default some of them use is /api/v1/lineage.
Just remember that each of these APIs might behave slightly different also with authentication & authorisation.
OpenLineage - Technical details
OpenLineage is complex and troublesome. Also see our OpenLineage epic and talk to the colleagues if it helps.
It emits several kinds of event and we need to decite how we want to store which.
Here is one example (this might not be 100% correct, AI generated based on it reading the code)
Apache Spark reads raw.orders and writes the Iceberg table sales.orders_daily through a Hive catalog:
{
"eventType": "COMPLETE",
"job": {
"namespace": "prod-lineage",
"name": "orders_etl.execute_replace_table_as_select_command"
},
"run": { "runId": "c7f2…-01b8", "facets": {} },
"inputs": [
{ "namespace": "s3a://warehouse", "name": "raw.db/orders" }
],
"outputs": [{
"namespace": "s3a://warehouse",
"name": "sales.db/orders_daily",
"facets": {
"symlinks": { "identifiers": [
{ "namespace": "hive://hive-metastore:9083",
"name": "sales.orders_daily",
"type": "TABLE" }
]}
}
}]
}
Trino then queries that same table through catalog lakehouse and writes sales.orders_summary:
{
"eventType": "COMPLETE",
"job": {
"namespace": "prod-lineage",
"name": "20260902_101500_00042_ab3kd" // default $QUERY_ID
},
"run": { "runId": "9d13…-77e0" },
"inputs": [{
"namespace": "trino://trino-coordinator-default-0.trino-coordinator-default.prod.svc.cluster.local:8443",
"name": "lakehouse.sales.orders_daily"
}],
"outputs": [{
"namespace": "trino://trino-coordinator-default-0.…:8443",
"name": "lakehouse.sales.orders_summary"
}]
}
Both emitters are configured with the same OpenLineage namespace, and both describe the same physical table. Unfortunately, they do not agree on what it is called:
| Emitted by | Namespace | Name |
|---|---|---|
| Spark, primary | s3a://warehouse |
sales.db/orders_daily |
| Spark, symlink | hive://hive-metastore:9083 |
sales.orders_daily |
| Trino | trino://trino-coordinator-default-0.…:8443 |
lakehouse.sales.orders_daily |
- The scheme differs.
s3aagainsthiveagainsttrino: physical storage, catalog service, query engine. All three correct, but...annoying for us. - The separator differs. Spark writes
sales.db/orders_dailyfrom the warehouse path, its own symlink writessales.orders_daily, Trino writes dots throughout. - Trino prefixes its catalog name.
lakehouse.is a Trino-side concept with no counterpart anywhere in Spark's output. You cannot resolve it without knowing which catalog points at which metastore.
So, even the symlinks thing doesn’t help us. It gives us a hive:// when we need to match a trino://
In this MVP we will not be able to resolve this and it’s out of scope too. We should be able to do clever things later because the information is in TrinoCatalog and so on AND we have the source code for all those OpenLineage things under control so we’ll have to tweak this later but for now this matching between products etc. is out of scope.
That means (namespace, name) can not be the identity of a dataset. It can be used for lookup only. We’ll later have to derive unique/stable keys for datasets somehow.
Why do I have this section here? Because I have a feeling that this is important for our database schema :)
Out of scope for all of it
- A write path: We'll want this later, but not for this.
- Any other APIs than the ones I mentioned above (Cockpit/OpenLineage)
- Any kind of Web UI -> all of that lives in Cockpit
- Any kind of pruning of old data. The store grows without limit for now.
- 主要语言
- 没有语言数据
- 星标
- 2
- 派生
- 0
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
stackabletech/issues 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 50/100
stackabletech/issues#890 ·
-
epic
stackabletech/issues#889 · 已指派 2 人 ·
-
stackabletech/issues#888 · 1 条评论 · 已指派 1 人 ·
-
stackabletech/issues#887 · 1 条评论 · 已指派 1 人 ·
-
难度 4/5 3-5 天 新手友好度 25/100
stackabletech/issues#886 ·
查看 stackabletech/issues 的全部 Issue
相似的 Issue
-
bug priority:normal ready-for-dev
难度 2/5 1-3 小时 新手友好度 88/100
OpenHands/extensions#626 · 1 条评论 ·
-
bug
难度 2/5 1-3 小时 新手友好度 76/100
avniproject/avni-client#2135 ·
-
难度 2/5 1-3 小时 新手友好度 88/100
-
needs-triage
难度 2/5 1-3 小时 新手友好度 78/100
-
难度 2/5 1-3 小时 新手友好度 78/100
use-agent-os/agent-os#3276 ·