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

    https://github.com/apache/spark/pull/14784#discussion_r76950704
  
    --- Diff: R/pkg/R/sparkR.R ---
    @@ -365,6 +365,10 @@ sparkR.session <- function(
         }
         overrideEnvs(sparkConfigMap, paramMap)
       }
    +  if (nzchar(master)) {
    +    assign("spark.master", master, envir = sparkConfigMap)
    --- End diff --
    
    I don't know why we prefer named parameter especially for `master`. Because 
in spark-submit, it seems we prefer `--master` over `--conf spark.master`.  And 
considering `master` is the first parameter, it gives users the impression that 
it is prefered. 
    
    The following command will run on local mode
    ```
    bin/spark-shell --master local --conf spark.master=yarn-client
    ```


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