Jian Chen created SPARK-14064:
---------------------------------
Summary: count method of RDD don'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
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: [email protected]
For additional commands, e-mail: [email protected]