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

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.

主站蜘蛛池模板: 潍坊市| 石景山区| 渝中区| 大田县| 延吉市| 永州市| 凤凰县| 古交市| 美姑县| 图片| 广水市| 台北县| 象山县| 门源| 进贤县| 阳朔县| 澎湖县| 乌苏市| 绥中县| 株洲市| 黄冈市| 苗栗市| 若羌县| 中阳县| 安福县| 盱眙县| 上虞市| 巴林左旗| 明光市| 潍坊市| 铜山县| 汝州市| 紫阳县| 江达县| 玛沁县| 喀什市| 吴旗县| 阳西县| 芜湖市| 岐山县| 宁乡县|