Created
July 25, 2016 07:24
-
-
Save solidpple/264b66671f5a3c221f9bf9cf1dbebf2b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val sc = new SparkContext(...) | |
val userData = sc.sequenceFile[UserId, UserInfo]("hdfs://...").partitionBy(new HashPartitioner(100)).persist() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment