You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Florian Verhein (JIRA)" <ji...@apache.org> on 2015/04/02 04:36:53 UTC

[jira] [Created] (SPARK-6665) Randomly Shuffle an RDD

Florian Verhein created SPARK-6665:
--------------------------------------

             Summary: Randomly Shuffle an RDD 
                 Key: SPARK-6665
                 URL: https://issues.apache.org/jira/browse/SPARK-6665
             Project: Spark
          Issue Type: New Feature
          Components: Spark Shell
            Reporter: Florian Verhein
            Priority: Minor


*Use case* 
RDD created in a way that has some ordering, but you need to shuffle it because the ordering would cause problems downstream. E.g.
- will be used to train a ML algorithm that makes stochastic assumptions (like SGD) 
- used as input for cross validation. e.g. after the shuffle, you could just grab partitions (or part files if saved to hdfs) as folds

Related question in mailing list: http://apache-spark-user-list.1001560.n3.nabble.com/random-shuffle-streaming-RDDs-td17965.html

*Possible implementation*
As mentioned by [~sowen] in the above thread, could sort by( a good  hash of( the element (or key if it's paired) and a random salt)). 




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