ITPub博客

首页 > IT职业 > IT生活 > Spark RDD算子

Spark RDD算子

IT生活 作者:wq7210 时间:2021-09-09 09:10:28 0 删除 编辑

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)
    图片描述

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/1830/viewspace-2799880/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2021-10-27

  • 博文量
    0
  • 访问量
    777