DEV Community

The Waving Flag
The Waving Flag

Posted on

Answer: Spark - Error "A master URL must be set in your configuration" when submitting an app

The TLDR:

.config("spark.master", "local")

a list of the options for spark.master in spark 2.2.1

I ended up on this page after trying to run a simple Spark SQL java program in local mode. To do this, I found that I could set spark.master using:

SparkSession spark = SparkSession
.builder()
.appName("Java

Top comments (0)