You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Mayank (Jira)" <ji...@apache.org> on 2020/04/23 10:44:00 UTC

[jira] [Created] (SPARK-31530) Spark submit fails if we provide extraJavaOption which contains Xmx as substring

Mayank created SPARK-31530:
------------------------------

             Summary: Spark submit fails if we provide extraJavaOption which contains Xmx  as substring
                 Key: SPARK-31530
                 URL: https://issues.apache.org/jira/browse/SPARK-31530
             Project: Spark
          Issue Type: Bug
          Components: Spark Submit
    Affects Versions: 2.4.0
            Reporter: Mayank


Spark submit doesn't allow Xmx anywhere in the spark.driver.extraJavaOptions
 For eg:
{code:java}
bin\spark-submit --class org.apache.spark.examples.SparkPi --master local[*] --conf "spark.driver.extraJavaOptions=-DmyKey=MyValueContainsXmx" examples\jars\spark-examples_2.11-2.4.4.jar
Error: Not allowed to specify max heap(Xmx) memory settings through java options (was -DmyKey=MyValueContainsXmx). Use the corresponding --driver-memory or spark.driver.memory configuration instead.{code}
[https://github.com/apache/spark/blob/v2.4.4/launcher/src/main/java/org/apache/spark/launcher/SparkClassCommandBuilder.java#L102|http://example.com]

Can we update the above condition to check more specific for eg -Xmx

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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