plugging the play application with spark standalone cluster it executes well on dev mode but when trying to deploy in production mode it gives following error:
Caused by: org.apache.spark.SparkException: A master URL must be set in your configuration
I am using spark-2.1 here is the snippet
lazy val spark = SparkSession.builder().appName("Spark_with_Play").master("spark://ip:7077").config("spark.executor.memory", "2g").config("spark.deploy.defaultCores",8).getOrCreate()
So how can i set spark master in conf/appliaction.conf file in production mode ?