[
https://issues.apache.org/jira/browse/SPARK-4033?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14178176#comment-14178176
]
Apache Spark commented on SPARK-4033:
-------------------------------------
User 'SaintBacchus' has created a pull request for this issue:
https://github.com/apache/spark/pull/2874
> Input of the SparkPi too big causes the emption exception
> ----------------------------------------------------------
>
> Key: SPARK-4033
> URL: https://issues.apache.org/jira/browse/SPARK-4033
> Project: Spark
> Issue Type: Bug
> Components: Examples
> Affects Versions: 1.2.0
> Reporter: hzw
>
> 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").
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]