You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/modules/spark-k8s/pages/usage-guide/openlineage.adoc
+33-16Lines changed: 33 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,8 @@ When configured, the operator injects everything required to make the https://op
13
13
14
14
== Enabling OpenLineage
15
15
16
-
The backend endpoint is configured directly on the `SparkApplication` through the `host` and `port` fields.
16
+
The backend is configured through the `openLineage.connection`, which either inlines an OpenLineage
17
+
connection or references a standalone `OpenLineageConnection` resource by name.
17
18
The operator points the transport at `<scheme>://<host>:<port>`:
18
19
19
20
[source,yaml]
@@ -24,25 +25,41 @@ metadata:
24
25
name: orders-by-nation
25
26
spec:
26
27
openLineage: # <1>
27
-
host: marquez # <2>
28
-
port: 5000 # <3>
29
-
# namespace: orders-lineage # <4>
30
-
# appName: orders-by-nation # <5>
31
-
# tls: # <6>
32
-
# verification:
33
-
# server:
34
-
# caCert:
35
-
# secretClass: marquez-ca
28
+
connection: # <2>
29
+
inline:
30
+
host: marquez
31
+
port: 5000
32
+
# tls:
33
+
# verification:
34
+
# server:
35
+
# caCert:
36
+
# secretClass: marquez-ca
37
+
# namespace: orders-lineage # <3>
38
+
# appName: orders-by-nation # <4>
36
39
...
37
40
----
38
41
<1> Adding the `openLineage` block enables OpenLineage event emission. Omit it entirely to leave OpenLineage off (the default), in which case the operator emits nothing OpenLineage-related and behaviour is unchanged.
39
-
<2> Host of the OpenLineage backend, for example the Marquez API service. Required.
40
-
<3> Port of the OpenLineage backend. Required.
41
-
<4> Optional. The OpenLineage namespace events are reported under.
42
+
<2> The OpenLineage backend connection. Use `inline` (shown here) to define the connection directly,
43
+
or `reference: <name>` to point at an `OpenLineageConnection` resource in the same namespace.
44
+
Required.
45
+
<3> Optional. The OpenLineage namespace events are reported under.
42
46
Defaults to the application's Kubernetes namespace.
43
-
<5> Optional. The stable OpenLineage job name (see <<job-name>>).
44
-
<6> Optional. TLS configuration, mirroring the field of the same name on an S3 connection.
45
-
When `tls.verification.server` is set the transport uses `https` instead of `http`.
47
+
<4> Optional. The stable OpenLineage job name (see <<job-name>>).
48
+
49
+
The `OpenLineageConnection` resource (`openlineage.stackable.tech`) is a reusable definition of a
50
+
connection to an OpenLineage backend, provided by the Stackable operator library. Reference it to
51
+
share one backend definition across multiple applications:
52
+
53
+
[source,yaml]
54
+
----
55
+
apiVersion: openlineage.stackable.tech/v1alpha1
56
+
kind: OpenLineageConnection
57
+
metadata:
58
+
name: marquez
59
+
spec:
60
+
host: marquez
61
+
port: 5000
62
+
----
46
63
47
64
The transport scheme is `https` when `tls.verification.server` is configured, otherwise `http`.
48
65
Explicit certificate handling beyond selecting the scheme will be added later.
0 commit comments