dongjoon-hyun opened a new pull request, #134:
URL: https://github.com/apache/spark-docker/pull/134

   ### What changes were proposed in this pull request?
   
   This PR aims to support `spark.executor.extraLibraryPath` in 
`entrypoint.sh.template` like apache/spark#59070.
   
   ### Why are the changes needed?
   
   Since apache/spark#59070, Spark passes `spark.executor.extraLibraryPath` to 
K8s executors as `SPARK_EXECUTOR_LIBRARY_PATH`. The `entrypoint.sh` should 
prepend it to `LD_LIBRARY_PATH`.
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes. `spark.executor.extraLibraryPath` takes effect for K8s executors in the 
new images. The existing images are not changed.
   
   ### How was this patch tested?
   
   Manually tested with `apache/spark:4.2.0-scala` and the new `entrypoint.sh`.
   
   ```bash
   docker run --rm -e SPARK_EXECUTOR_MEMORY=512m -e 
SPARK_JAVA_OPT_0=-XshowSettings:properties -e SPARK_JAVA_OPT_1=-version -e 
SPARK_EXECUTOR_LIBRARY_PATH=/opt/lib1:/opt/lib2 spark-test executor 2>&1 | grep 
-A2 java.library.path
   ```
   
   ```
       java.library.path = /opt/lib1
           /opt/lib2
           /usr/java/packages/lib
   ```
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Generated-by: Claude Opus 5.5


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to