aboutsummaryrefslogtreecommitdiff
path: root/mllib
diff options
context:
space:
mode:
authorhuangzhaowei <carlmartinmax@gmail.com>2015-01-11 16:32:47 -0800
committerAndrew Or <andrew@databricks.com>2015-01-11 16:32:47 -0800
commitf38ef6586c2980183c983b2aa14a5ddc1856b7b7 (patch)
tree8c00ef96be9afe99c10b1b5ecae9263cd69b7997 /mllib
parent6942b974adad396cba2799eac1fa90448cea4da7 (diff)
downloadspark-f38ef6586c2980183c983b2aa14a5ddc1856b7b7.tar.gz
spark-f38ef6586c2980183c983b2aa14a5ddc1856b7b7.tar.bz2
spark-f38ef6586c2980183c983b2aa14a5ddc1856b7b7.zip
[SPARK-4033][Examples]Input of the SparkPi too big causes the emption exception
If input of the SparkPi args is larger than the 25000, the integer 'n' inside the code will be overflow, and may be a negative number. And it causes the (0 until n) Seq as an empty seq, then doing the action 'reduce' will throw the UnsupportedOperationException("empty collection"). The max size of the input of sc.parallelize is Int.MaxValue - 1, not the Int.MaxValue. Author: huangzhaowei <carlmartinmax@gmail.com> Closes #2874 from SaintBacchus/SparkPi and squashes the following commits: 62d7cd7 [huangzhaowei] Add a commit to explain the modify 4cdc388 [huangzhaowei] Update SparkPi.scala 9a2fb7b [huangzhaowei] Input of the SparkPi is too big
Diffstat (limited to 'mllib')
0 files changed, 0 insertions, 0 deletions