Skip to content

Commit 1fbd435

Browse files
author
Ilya Ganelin
committed
[SPARK-5932] Updated spark.broadcast.blockSize
1 parent eba4de6 commit 1fbd435

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

core/src/main/scala/org/apache/spark/SparkConf.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,6 @@ private[spark] object SparkConf extends Logging {
483483
"Please use spark.kryoserializer.buffer.max instead."),
484484
DeprecatedConfig("spark.shuffle.file.buffer.kb", "1.4",
485485
"Please use spark.shuffle.file.buffer instead."))
486-
487486

488487

489488

core/src/main/scala/org/apache/spark/broadcast/TorrentBroadcast.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ private[spark] class TorrentBroadcast[T: ClassTag](obj: T, id: Long)
7474
} else {
7575
None
7676
}
77-
blockSize = conf.getInt("spark.broadcast.blockSize", 4096) * 1024
77+
blockSize = conf.getSizeAsKb("spark.broadcast.blockSize", "4m").toInt * 1024
7878
}
7979
setConf(SparkEnv.get.conf)
8080

0 commit comments

Comments
 (0)