resilient distributed dataset (RDD) which is a fault-tolerant collection of elements that can be operated on in parallel. There are two ways to create RDDs: parallelizing an existing collection in your driver program, or referencing a dataset in an external storage system, such as a shared filesystem, HDFS, HBase, or any data source offering a Hadoop InputFormat
。
- Internally, each RDD is characterized by five main properties:
-
- A list of partitions
-
- A function for computing each split
-
- A list of dependencies on other RDDs
-
- Optionally, a Partitioner for key-value RDDs (e.g. to say that the RDD is hash-partitioned)
-
- Optionally, a list of preferred locations to compute each split on (e.g. block locations for
- an HDFS file)
点击查看更多内容
为 TA 点赞
评论
共同学习,写下你的评论
评论加载中...
作者其他优质文章
正在加载中
感谢您的支持,我会继续努力的~
扫码打赏,你说多少就多少
赞赏金额会直接到老师账户
支付方式
打开微信扫一扫,即可进行扫码打赏哦