官术网_书友最值得收藏!

SparkConf

SparkConf allows us to configure a Spark application. It sets various Spark parameters as key-value pairs, and so will usually create a SparkConf object with a SparkConf() constructor, which would then load values from the spark.* underlying Java system.

There are a few useful functions; for example, we can use the sets() function to set the configuration property. We can use the setMaster() function to set the master URL to connect to. We can use the setAppName() function to set the application name, and setSparkHome() in order to set the path where Spark will be installed on worker nodes.

主站蜘蛛池模板: 栾城县| 射洪县| 改则县| 洪江市| 清丰县| 南汇区| 礼泉县| 茂名市| 黎川县| 南京市| 曲沃县| 松桃| 崇礼县| 麻江县| 兰考县| 多伦县| 阿拉善左旗| 崇义县| 鄂托克前旗| 建瓯市| 浪卡子县| 上饶县| 永吉县| 富平县| 武夷山市| 乌恰县| 盐源县| 大连市| 金山区| 霸州市| 新兴县| 娄底市| 西和县| 长海县| 镇坪县| 武定县| 武汉市| 潍坊市| 滨海县| 青浦区| 南木林县|