When running docker demo, NoSuchElementException was thrown because spark.scheduler.mode is not set. Also we want to check before initializing the Spark Context to avoid polute the SparkConf with unused config.
When running docker demo, NoSuchElementException was thrown because spark.scheduler.mode is not set. Also we want to check before initializing the Spark Context to avoid polute the SparkConf with unused config.