Advertisement
Guest User

Untitled

a guest
May 29th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. Ind,Z1,10
  2. Jap,Z2,20
  3. Ind,Z1,30
  4. Ind,Z2,10
  5. Jap,Z1,20
  6.  
  7. Ind,Z1,40
  8. Ind,Z2,10
  9. Jap,Z1,20
  10.  
  11. val thirdRDD = baseRDD.map(x => x.split(","))
  12. .map(x => ((x(0), x(1)),x(2)))
  13. .reduceByKey(_+_)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement