在SparkConf上设置的属性具有最高的优先级,其次是传递给spark-submit或者spark-shell的属性值,最后是spark-defaults.conf文件中的属性值
SparkConf
spark-submit
spark-shell
spark-defaults.conf