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: CHANGELOG.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ All notable changes to this project will be documented in this file.
8
8
9
9
- BREAKING: Add required CLI argument and env var to set the image repository used to construct final product image names: `IMAGE_REPOSITORY` (`--image-repository`), eg. `oci.example.org/my/namespace` ([#684]).
10
10
- Support for Spark `4.1.2` ([#708])
11
-
- Add `spec.openLineage` to enable OpenLineage lineage emission: injects the OpenLineage Spark listener, HTTP transport (endpoint resolved from a discovery ConfigMap), a stable job name, and the required `--add-opens` JVM flag ([#XXXX]).
11
+
- Add `spec.openLineage` to enable OpenLineage lineage emission: injects the OpenLineage Spark listener, HTTP transport (endpoint built from the `host` and `port` fields), a stable job name, and the required `--add-opens` JVM flag ([#XXXX]).
Copy file name to clipboardExpand all lines: docs/modules/spark-k8s/pages/usage-guide/openlineage.adoc
+12-24Lines changed: 12 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,8 +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 not configured on the `SparkApplication` directly.
17
-
Instead, mirroring the xref:usage-guide/logging.adoc[vector aggregator discovery], the operator reads it from a discovery ConfigMap referenced by `configMapName`:
16
+
The backend endpoint is configured directly on the `SparkApplication` through the `host` and `port` fields.
17
+
The operator points the HTTP transport at `http://<host>:<port>`:
18
18
19
19
[source,yaml]
20
20
----
@@ -24,34 +24,22 @@ metadata:
24
24
name: orders-by-nation
25
25
spec:
26
26
openLineage: # <1>
27
-
configMapName: marquez-discovery # <2>
28
-
# namespace: orders-lineage # <3>
29
-
# appName: orders-by-nation # <4>
27
+
host: marquez # <2>
28
+
port: 5000 # <3>
29
+
# namespace: orders-lineage # <4>
30
+
# appName: orders-by-nation # <5>
30
31
...
31
32
----
32
33
<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.
33
-
<2> Name of a discovery ConfigMap holding the backend endpoint (see below).
34
-
Must be in the same namespace as the `SparkApplication`.
35
-
<3> Optional. The OpenLineage namespace events are reported under.
34
+
<2> Host of the OpenLineage backend, for example the Marquez API service. Required.
35
+
<3> Port of the OpenLineage backend. Required.
36
+
<4> Optional. The OpenLineage namespace events are reported under.
36
37
Defaults to the application's Kubernetes namespace.
37
-
<4> Optional. The stable OpenLineage job name (see <<job-name>>).
38
+
<5> Optional. The stable OpenLineage job name (see <<job-name>>).
38
39
39
-
The discovery ConfigMap holds the backend base URL under the `ADDRESS` key:
40
+
The transport protocol is always `http`; explicit `https` support will be added later.
40
41
41
-
.Example discovery ConfigMap
42
-
[source,yaml]
43
-
----
44
-
apiVersion: v1
45
-
kind: ConfigMap
46
-
metadata:
47
-
name: marquez-discovery
48
-
data:
49
-
ADDRESS: http://marquez:5000 # <1>
50
-
----
51
-
<1> Base URL of the OpenLineage backend, for example the Marquez API service.
52
-
53
-
Alternatively, you can set the endpoint directly through `sparkConf` (`spark.openlineage.transport.url`).
54
-
If the `openLineage` block is present and no endpoint can be resolved from either the discovery ConfigMap or `sparkConf`, reconciliation fails with a clear error rather than emitting a config that silently drops events.
42
+
You can still override any of the injected values — including the full `spark.openlineage.transport.url` — through `sparkConf`.
0 commit comments