You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "dongjoon-hyun (via GitHub)" <gi...@apache.org> on 2026/05/06 00:07:22 UTC
[PR] [SPARK-55554] Add `Apache Gluten` example [spark-kubernetes-operator]
dongjoon-hyun opened a new pull request, #654:
URL: https://github.com/apache/spark-kubernetes-operator/pull/654
### What changes were proposed in this pull request?
This PR aims to add an `Apache Gluten` example with K8s integration test coverage.
- New example: `examples/pi-with-gluten.yaml` (SparkPi with Gluten Velox backend on Spark 4.0.2)
- New chainsaw test: `tests/e2e/pi-with-gluten/`
- New CI matrix entry: `pi-with-gluten` test-group
### Why are the changes needed?
To provide an example and test coverage for `Apache Gluten`, mirroring the existing `Apache DataFusion Comet` example added in SPARK-56727.
The example uses the official Apache Gluten 1.6.0 binary distribution from the Apache mirror via `closer.lua`, which provides the `linux_amd64` Velox bundle JAR. An `initContainer` extracts the JAR from the tarball and shares it with the driver/executor via an `emptyDir` volume.
Notable differences vs. `pi-with-comet`:
- Tarball extraction (Gluten is not published to Maven Central as a single JAR)
- `spark.plugins=org.apache.gluten.GlutenPlugin`
- `spark.shuffle.manager=org.apache.spark.shuffle.sort.ColumnarShuffleManager`
- `spark.sql.ansi.enabled=false` (required by Gluten 1.6.0 on Spark 4.0)
- `spark.kubernetes.node.selector.kubernetes.io/arch=amd64` (Gluten 1.6.0 ships `linux_amd64` binaries only)
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
Pass the CIs with the newly added test.
### Was this patch authored or co-authored using generative AI tooling?
Generated-by: Claude Opus 4.7
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-55554] Add `Apache Gluten` example [spark-kubernetes-operator]
Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun commented on PR #654:
URL: https://github.com/apache/spark-kubernetes-operator/pull/654#issuecomment-4384384831
Could you review this when you have some time, @viirya and @peter-toth ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-55554] Add `Apache Gluten` example [spark-kubernetes-operator]
Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun closed pull request #654: [SPARK-55554] Add `Apache Gluten` example
URL: https://github.com/apache/spark-kubernetes-operator/pull/654
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-55554] Add `Apache Gluten` example [spark-kubernetes-operator]
Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun commented on PR #654:
URL: https://github.com/apache/spark-kubernetes-operator/pull/654#issuecomment-4384510836
Thank you, @viirya ~
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-55554] Add `Apache Gluten` example [spark-kubernetes-operator]
Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun commented on code in PR #654:
URL: https://github.com/apache/spark-kubernetes-operator/pull/654#discussion_r3192331485
##########
examples/pi-with-gluten.yaml:
##########
@@ -0,0 +1,87 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+apiVersion: spark.apache.org/v1
+kind: SparkApplication
+metadata:
+ name: pi-with-gluten
+spec:
+ mainClass: "org.apache.spark.examples.SparkPi"
+ jars: "local:///opt/spark/examples/jars/spark-examples.jar"
+ sparkConf:
+ spark.driver.extraClassPath: "local:///gluten/gluten.jar"
+ spark.dynamicAllocation.enabled: "true"
+ spark.dynamicAllocation.maxExecutors: "3"
+ spark.dynamicAllocation.shuffleTracking.enabled: "true"
+ spark.executor.extraClassPath: "local:///gluten/gluten.jar"
+ spark.kubernetes.authenticate.driver.serviceAccountName: "spark"
+ spark.kubernetes.container.image: "apache/spark:4.0.2-scala"
+ spark.kubernetes.node.selector.kubernetes.io/arch: "amd64"
Review Comment:
The downloadable distribution only contains `amd64` support.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-55554] Add `Apache Gluten` example [spark-kubernetes-operator]
Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun commented on PR #654:
URL: https://github.com/apache/spark-kubernetes-operator/pull/654#issuecomment-4384513356
Merged to main
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org