Skip to content

Commit

Permalink
change kb to mb
Browse files Browse the repository at this point in the history
  • Loading branch information
liyezhang556520 committed May 6, 2015
1 parent c688e3c commit d91e5ed
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ class KryoSerializer(conf: SparkConf)

private val bufferSizeKb = conf.getSizeAsKb("spark.kryoserializer.buffer", "64k")

if (bufferSizeKb >= 2048) {
if (bufferSizeKb >= 2048 * 1024) {
throw new IllegalArgumentException("spark.kryoserializer.buffer must be less than " +
s"2048 mb, got: + $bufferSizeKb mb.")
s"2048 mb, got: + ${bufferSizeKb/1024} mb.")
}
private val bufferSize = (bufferSizeKb * 1024).toInt

Expand Down

0 comments on commit d91e5ed

Please sign in to comment.