Description
Currently, Spark supports several ways to specify the Spark master URL, like --master option for spark-submit, spark.master configuration option, MASTER env variable. They have different precedences, for example, --master overrides MASTER if both are specified.
However, for SparkR shell, it always use the master URL specified by MASTER, not honoring --master.