Github user andrewor14 commented on a diff in the pull request:

    https://github.com/apache/spark/pull/2129#discussion_r16756387
  
    --- Diff: bin/spark-class2.cmd ---
    @@ -67,10 +69,18 @@ rem Executors use SPARK_JAVA_OPTS + 
SPARK_EXECUTOR_MEMORY.
       set OUR_JAVA_OPTS=%SPARK_JAVA_OPTS% %SPARK_EXECUTOR_OPTS%
       if not "x%SPARK_EXECUTOR_MEMORY%"=="x" set 
OUR_JAVA_MEM=%SPARK_EXECUTOR_MEMORY%
     
    -rem All drivers use SPARK_JAVA_OPTS + SPARK_DRIVER_MEMORY. The repl also 
uses SPARK_REPL_OPTS.
    -) else if "%1"=="org.apache.spark.repl.Main" (
    -  set OUR_JAVA_OPTS=%SPARK_JAVA_OPTS% %SPARK_REPL_OPTS%
    +rem Spark submit uses SPARK_JAVA_OPTS + SPARK_SUBMIT_OPTS +
    +rem SPARK_DRIVER_MEMORY + SPARK_SUBMIT_DRIVER_MEMORY.
    +rem The repl also uses SPARK_REPL_OPTS.
    +) else if "%1"=="org.apache.spark.deploy.SparkSubmit" (
    +  set OUR_JAVA_OPTS=%SPARK_JAVA_OPTS% %SPARK_SUBMIT_OPTS% %SPARK_REPL_OPTS%
    +  if not "x%SPARK_SUBMIT_LIBRARY_PATH%"=="x" (
    +    set OUR_JAVA_OPTS=!OUR_JAVA_OPTS! 
-Djava.library.path=%SPARK_SUBMIT_LIBRARY_PATH%
    --- End diff --
    
    The `!VAR_NAME!` syntax is explained here: 
https://github.com/andrewor14/spark/commit/72004c2b6bd502244cb1e9e055d26bd1f064ce5a


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

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

Reply via email to