[ 
https://issues.apache.org/jira/browse/SPARK-43793?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yikun Jiang resolved SPARK-43793.
---------------------------------
    Fix Version/s: 3.5.0
       Resolution: Fixed

Issue resolved by pull request 42
[https://github.com/apache/spark-docker/pull/42]

> Fix SPARK_EXECUTOR_JAVA_OPTS assignment bug
> -------------------------------------------
>
>                 Key: SPARK-43793
>                 URL: https://issues.apache.org/jira/browse/SPARK-43793
>             Project: Spark
>          Issue Type: Sub-task
>          Components: Spark Docker
>    Affects Versions: 3.5.0
>            Reporter: Yikun Jiang
>            Assignee: Yikun Jiang
>            Priority: Major
>             Fix For: 3.5.0
>
>
> env | grep SPARK_JAVA_OPT_ |...
> This is susceptible to a few bugs particularly around newlines in values. I 
> see two ways around it.
> ensuring the matching name is at the start, -E '^SPARK_JAVA_OPT_', and 
> running all the commands with null-terminated input and output: env -0 and -z 
> on the other commands
> or bash variable prefix expansion
> for v in "${!SPARK_JAVA_OPT_@}"; do
>     SPARK_EXECUTOR_JAVA_OPTS+=( "${!v}" )
> done



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to