You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean Owen (JIRA)" <ji...@apache.org> on 2016/03/22 12:09:25 UTC

[jira] [Reopened] (SPARK-14064) count method of RDD doesn't take action

     [ https://issues.apache.org/jira/browse/SPARK-14064?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sean Owen reopened SPARK-14064:
-------------------------------

[~ReactiveCJ] please read https://cwiki.apache.org/confluence/display/SPARK/Contributing+to+Spark before opening a JIRA. You're correct that this is invalid, so "Fixed" is not the resolution. Don't set target/fixed version.

> count method of RDD doesn't take action
> ---------------------------------------
>
>                 Key: SPARK-14064
>                 URL: https://issues.apache.org/jira/browse/SPARK-14064
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Core
>    Affects Versions: 1.6.1
>         Environment: CentOS-6.1
>            Reporter: Jian Chen
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> I have some unique keys stored as RDD[Int] , then I use zipWithIndex to give an unique ID to every key.
> val dataID = data.zipWithIndex()
> Then I count the num : 
> dataID.count
> At last, I save the dataID as textFile to HDFS.
> I save the data for three times as d1, d2 ,d2, but  I find each result is different.
> dataID.saveAsTextFile("d1")
> dataID.saveAsTextFile("d2")
> dataID.saveAsTextFile("d3")
> For example
> The key 13552359  has an ID 187480 in d1, but has an another ID 187483 in d2.



--
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