Skip to content

Commit 1e8fc57

Browse files
committed
feat: fix marquez Helm chart and run the demo successfully
1 parent 4dfcc22 commit 1e8fc57

6 files changed

Lines changed: 573 additions & 60 deletions

File tree

demos/demos-v2.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,8 +324,8 @@ demos:
324324
- marquez
325325
- data-lineage
326326
manifests:
327-
- plainYaml: https://raw.githubusercontent.com/stackabletech/demos/main/demos/openlineage-trino-airflow/rbac.yaml
328-
- plainYaml: https://raw.githubusercontent.com/stackabletech/demos/main/demos/openlineage-trino-airflow/enable-and-run-dag.yaml
327+
- plainYaml: demos/openlineage-trino-airflow/rbac.yaml
328+
- plainYaml: demos/openlineage-trino-airflow/enable-and-run-dag.yaml
329329
supportedNamespaces: []
330330
resourceRequests:
331331
cpu: 5000m

docs/modules/demos/pages/openlineage-trino-airflow.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ To list the installed Stackable services run the following command:
101101

102102
[source,console]
103103
----
104-
$ stackablectl stacklet list
104+
$ stackablectl stacklet list --namespace openlineage_demo
105105
106106
┌─────────┬─────────┬───────────────────┬──────────────────────────────────────────┬─────────────────────────────────┐
107107
│ PRODUCT ┆ NAME ┆ NAMESPACE ┆ ENDPOINTS ┆ CONDITIONS │
@@ -125,10 +125,10 @@ Marquez does not have an external listener. Forward its web UI to your machine:
125125

126126
[source,console]
127127
----
128-
$ kubectl -n openlineage-demo port-forward svc/marquez-web 3000:3000
128+
$ kubectl -n openlineage-demo port-forward svc/marquez-web 5000:5000
129129
----
130130

131-
Then open http://localhost:3000 in your browser.
131+
Then open http://localhost:5000 in your browser.
132132

133133
Use the namespace selector at the top to switch between the namespaces that produced the lineage:
134134

stacks/_templates/marquez.yaml

Lines changed: 0 additions & 42 deletions
This file was deleted.

stacks/openlineage/airflow.yaml

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,12 @@
66
# provider's SQL operator, Airflow also reports dataset-level lineage, which shows up in Marquez next
77
# to the query lineage emitted by Trino itself.
88
#
9-
# NOTE: this file is intentionally *not* wrapped in a Jinja `{% raw %}` block (unlike other airflow
10-
# stacks) so that `{{ NAMESPACE }}` / `{{ ...Password }}` are templated. Keep the DAG code free of
11-
# `{{ }}` sequences.
9+
# NOTE: this file is intentionally NOT wrapped in a Jinja raw block (unlike other airflow stacks)
10+
# so that the NAMESPACE / password placeholders are templated by Tera. Keep this whole file - even
11+
# comments - free of literal Tera tag sequences (double curly braces and percent-brace tags): Tera
12+
# processes the raw bytes before YAML parsing, so a tag token in a comment is still interpreted.
13+
# (An earlier version of this comment quoted a raw-block tag here, which opened an unclosed raw
14+
# block and broke rendering with "expected tag" at EOF.)
1215
---
1316
apiVersion: airflow.stackable.tech/v1alpha2
1417
kind: AirflowCluster
@@ -20,7 +23,14 @@ spec:
2023
pullPolicy: IfNotPresent
2124
clusterConfig:
2225
loadExamples: false
23-
credentialsSecret: airflow-credentials
26+
credentialsSecretName: airflow-credentials
27+
# The airflow-operator 'dev' schema moved the metadata DB connection out of the credentials
28+
# Secret into its own block. Points at the postgresql-airflow chart deployed by this stack.
29+
metadataDatabase:
30+
postgresql:
31+
host: postgresql-airflow
32+
database: airflow
33+
credentialsSecretName: airflow-postgresql-credentials
2434
volumes:
2535
- name: airflow-dags
2636
configMap:
@@ -164,5 +174,15 @@ stringData:
164174
adminUser.lastname: Admin
165175
adminUser.email: airflow@airflow.com
166176
adminUser.password: "{{ airflowAdminPassword }}"
167-
connections.secretKey: "{{ airflowSecretKey }}"
168-
connections.sqlalchemyDatabaseUri: postgresql+psycopg2://airflow:airflow@postgresql-airflow/airflow
177+
---
178+
# Credentials for the Airflow metadata database (the postgresql-airflow chart in this stack).
179+
# The operator reads the `username`/`password` keys and builds the SQLAlchemy URL from the
180+
# clusterConfig.metadataDatabase block above.
181+
apiVersion: v1
182+
kind: Secret
183+
metadata:
184+
name: airflow-postgresql-credentials
185+
type: Opaque
186+
stringData:
187+
username: airflow
188+
password: airflow

0 commit comments

Comments
 (0)