How to set Master address for Spark examples from command line September 14, 2023 by Tarik You can set the Spark master from the command-line by adding the JVM parameter: -Dspark.master=spark://myhost:7077