This is an automated email from the ASF dual-hosted git repository.
dongjoon-hyun pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/spark-kubernetes-operator.git
The following commit(s) were added to refs/heads/main by this push:
new aa702a7 [SPARK-57798] Exclude `net.sf.py4j` dependency
aa702a7 is described below
commit aa702a7c21326b1b75b73da48de447d3610c7a15
Author: Dongjoon Hyun <[email protected]>
AuthorDate: Tue Jun 30 21:59:03 2026 -0700
[SPARK-57798] Exclude `net.sf.py4j` dependency
### What changes were proposed in this pull request?
This PR excludes the transitive `net.sf.py4j:py4j` dependency from the
operator shadow jar.
### Why are the changes needed?
`py4j` is PySpark's Python-to-JVM gateway, pulled in transitively by
`spark-core`. It only runs inside the Spark driver pod, never in the operator
JVM, yet all 71 `py4j/` classes were bundled into the operator fat jar as dead
weight.
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
Pass the CIs.
### Was this patch authored or co-authored using generative AI tooling?
Generated-by: Claude Opus 4.8
Closes #724 from dongjoon-hyun/SPARK-57798.
Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
---
spark-submission-worker/build.gradle | 1 +
1 file changed, 1 insertion(+)
diff --git a/spark-submission-worker/build.gradle
b/spark-submission-worker/build.gradle
index 0c28c89..24e9863 100644
--- a/spark-submission-worker/build.gradle
+++ b/spark-submission-worker/build.gradle
@@ -30,6 +30,7 @@ dependencies {
exclude group: "commons-codec"
exclude group: "commons-collections", module: "commons-collections"
exclude group: "io.fabric8"
+ exclude group: "net.sf.py4j"
exclude group: "org.apache.avro"
exclude group: "org.apache.commons", module: "commons-compress"
exclude group: "org.apache.logging.log4j"
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]