1.Properties set directly on the SparkConf take highest precedence,
2.then flags passed to spark-submit or spark-shell,
spark-submit
spark-shell
3.then options in the spark-defaults.conf file
spark-defaults.conf