gpt4 book ai didi

apache-spark - 没有后缀的 spark.network.timeout 属性的单位是什么?秒还是毫秒?

转载 作者:行者123 更新时间:2023-12-04 05:08:44 25 4
gpt4 key购买 nike

如果 spark.network.timeout 没有像这样定义任何后缀(s 或 ms):

spark.network.timeout 600

那是秒还是毫秒?

https://spark.apache.org/docs/latest/configuration.html 上的默认值
也用后缀“120s”定义

最佳答案

鉴于 linesHeartbeatReceiver似乎spark.network.timeout以秒为单位。

// "spark.network.timeout" uses "seconds", while `spark.storage.blockManagerSlaveTimeoutMs` uses
// "milliseconds"
private val slaveTimeoutMs =
sc.conf.getTimeAsMs("spark.storage.blockManagerSlaveTimeoutMs", "120s")
private val executorTimeoutMs =
sc.conf.getTimeAsSeconds("spark.network.timeout", s"${slaveTimeoutMs}ms") * 1000
Spark官方文档在 Spark Properties说:

Properties that specify some time duration should be configured with a unit of time.

Properties that specify a byte size should be configured with a unit of size.


很难找到,但希望你的问题和我的回答变得更容易。

关于apache-spark - 没有后缀的 spark.network.timeout 属性的单位是什么?秒还是毫秒?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44420153/

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