首页 > 代码库 > Spark Transformations
Spark Transformations
We all know the following fact:
1, RDD are immutable
2, Never modify RDD in place
3, Transform RDD to another RDD
There are 2 different transformations for RDD, one is narrow transformation:
transformations like map, flatMap, filter all are narrow transformation, which means shuffle won‘t happen, so it‘s fast, it‘s speed just depends on:
1, availability of local memory
2, CPU speed
another is wide transfomration:
transformations like groupByKey, reduceByKey, repartition all are wide tranformation, the network speed in shuffle is the key to it‘s speed, so it‘s slower
the final comparison:
Spark Transformations
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。