You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Yikun Jiang (Jira)" <ji...@apache.org> on 2023/05/25 11:06:00 UTC
[jira] [Assigned] (SPARK-43793) Fix SPARK_EXECUTOR_JAVA_OPTS assignment bug
[ https://issues.apache.org/jira/browse/SPARK-43793?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Yikun Jiang reassigned SPARK-43793:
-----------------------------------
Assignee: Yikun Jiang
> 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
>
> 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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org