Github user sun-rui commented on a diff in the pull request:

    https://github.com/apache/spark/pull/9290#discussion_r43089490
  
    --- Diff: R/pkg/R/sparkR.R ---
    @@ -123,16 +123,30 @@ sparkR.init <- function(
         uriSep <- "////"
       }
     
    +  sparkEnvirMap <- convertNamedListToEnv(sparkEnvir)
    +
       existingPort <- Sys.getenv("EXISTING_SPARKR_BACKEND_PORT", "")
       if (existingPort != "") {
         backendPort <- existingPort
       } else {
         path <- tempfile(pattern = "backend_port")
    +    submitOps <- Sys.getenv("SPARKR_SUBMIT_ARGS", "sparkr-shell")
    +    # spark.driver.memory cannot be set in env:
    +    # 
http://spark.apache.org/docs/latest/configuration.html#application-properties
    +    # Add spark.driver.memory if set in sparkEnvir and not already set in 
SPARKR_SUBMIT_ARGS
    +    if (!grepl("--driver-memory", submitOps)) {
    --- End diff --
    
    Lets add the support for other options of the same limitation, according to 
http://spark.apache.org/docs/latest/configuration.html, we also have:
    spark.driver.extraClassPath
    spark.driver.extraJavaOptions
    spark.driver.extraLibraryPath


---
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