spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jian Chen (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SPARK-14064) count method of RDD doesn't take action
Date Tue, 22 Mar 2016 08:13:25 GMT

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

Jian Chen updated SPARK-14064:
------------------------------
    Summary: count method of RDD doesn't take action  (was: count method of RDD don't take
action)

> 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
>             Fix For: 1.6.1
>
>   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 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


Mime
View raw message