Skip to content

Conversation

@dongjoon-hyun
Copy link
Member

@dongjoon-hyun dongjoon-hyun commented Oct 7, 2025

What changes were proposed in this pull request?

This PR aims to exclude 3 transitive dependencies to reduce the size of spark-kubernetes-operator.jar about 11% (from 149MB to 133MB).

  • commons-codec:*
  • org.apache.commons:commons-compress
  • com.ibm.icu:*

Why are the changes needed?

Apache Spark K8s Operator is not using these. We had better remove this to reduce spark-kubernetes-operator.jar file size (and the Docker image size) from 149MB to 133MB.

BEFORE

$ docker run -it --rm apache/spark-kubernetes-operator:0.6.0-SNAPSHOT ls -alh /opt/spark-operator/operator | tail -n1
/
-rw-r--r-- 1 spark spark 149M Oct  7 23:21 spark-kubernetes-operator.jar

AFTER

$ docker run -it --rm apache/spark-kubernetes-operator:0.6.0-SNAPSHOT ls -alh /opt/spark-operator/operator | tail -n1
/
-rw-r--r-- 1 spark spark 133M Oct  7 23:28 spark-kubernetes-operator.jar

Does this PR introduce any user-facing change?

No behavior change.

How was this patch tested?

Pass the CIs.

Was this patch authored or co-authored using generative AI tooling?

No.

@dongjoon-hyun
Copy link
Member Author

Thank you, @viirya . Merged to main.

@dongjoon-hyun dongjoon-hyun deleted the SPARK-53827 branch October 8, 2025 00:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants