You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "hzw (JIRA)" <ji...@apache.org> on 2014/10/21 11:25:33 UTC

[jira] [Created] (SPARK-4033) Input of the SparkPi too big causes the emption exception

hzw created SPARK-4033:
--------------------------

             Summary: 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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org