gpt4 book ai didi

apache-spark - Spark配置优先级

转载 作者:行者123 更新时间:2023-12-04 04:18:23 24 4
gpt4 key购买 nike

在代码中指定spark应用程序配置之间是否有任何区别或优先级:

SparkConf().setMaster(yarn)

并在命令行中指定它们
spark-submit --master yarn

最佳答案

是的,使用set()函数将最高优先级赋予用户代码中的配置。之后,标志通过spark-submit传递。

Properties set directly on the SparkConf take highest precedence, then flags passed to spark-submit or spark-shell, then options in the spark-defaults.conf file. A few configuration keys have been renamed since earlier versions of Spark; in such cases, the older key names are still accepted, but take lower precedence than any instance of the newer key.



Source

关于apache-spark - Spark配置优先级,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36885680/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com