Spark 简介以及与 Hadoop 的对比2.1 弹性分布数据集(RDD) RDD 是 Spark 的最基本抽象, 是对分布式内存的抽象使用, 实现了以操作本地集合的方式来操作分布式数据集的抽象实现。RDD 是 Spark 最核心的东西, 它表示已被分区, 不可变的并能够被并行操作的数据集合, 不同的数据集格式对应不同的 RDD 实现。RDD 必须是可序列化的。RDD 可以 cache 到内存中, 每次对 RDD 数据集的操作之后的结果 效率提升比较大。 #### 1.2.2 RDD 的转换与操作 对于 RDD 可以有两种计算方式 :转换( 返回值还是一个 RDD )与操作( 返回值不是一个 RDD ) 1. 转换(Transformations) (如:map, filter, groupBy, join 等),Transformations 操作是 Lazy 的,也就是说从一个 RDD 转换生成另一个 RDD 的操作不是马上执行,Spark Actions 操作会返回结果或把 RDD 数据写到存储系统中。Actions 是触发 Spark 启动计算的动因。 #### 1.2.3 血统 (Lineage) 利用内存加快数据加载,在众多的In-Memory类数据库或Cache类系统中也有实现,Spark的主要区别在于它处理分布式运算环境下的数据容错性(节点实效/数据丢失)问题时采用的方案。为了保证RDD中数据的鲁棒性,RDD数据集通过所谓的血统关系0 码力 | 3 页 | 172.14 KB | 2 年前3
Scalable Stream Processing - Spark Streaming and Flinkup the live stream into batches of X seconds. • Treats each batch as RDDs and processes them using RDD operations.  ## Spark up the live stream into batches of X seconds. • Treats each batch as RDDs and processes them using RDD operations. • Discretized Stream Processing (DStream)  ## count • Returns a new DStream of single-element RDDs by counting the number of elements in each RDD of the source DStream0 码力 | 113 页 | 1.22 MB | 2 年前3
TensorFlow on Yarn:深度学习遇上大数据ow gRPC server) • Worker通过读取RDD获取训练样本 • RDD的数据cache到内存或者磁盘供多次迭代训练使用 ## SparkFlow介绍 ## SparkFlow与TensorFlow on Yarn对比: |SparkFlow|TensorFlow on Yarn| |---|---| |通过RDD读取训练样本数据,关心文件存储格式|直接读取HDFS数据,不关心文件存储格式|0 码力 | 32 页 | 4.06 MB | 2 年前3
2022年美团技术年货 合辑Pipeline 中的 mapPartition 在进行下一部分讲解之前,我们先简要介绍一下 Spark 的懒执行机制。Spark 的算子分为 Action 和 Transformation 两大类。RDD 的依赖关系构成了数据处理的有向无环图 DAG。只有当 Action 算子出现时,才会执行 Action 算子与前面一系列 Transformation 算子构成的 DAG。Spark 还会根据 Shuffle 为例,最后 runTask() 方法调用了 rdd.iterator()。 ### ResultTask.scala override def runTask(context: TaskContext): U = { ..... // 源码缩略不进行展示:初始化一些需要的对象 val (rdd, func) = ser.deserialize([RDD[T], (TaskContext, deserializeStartCpuTime } else 0L // 这里的 func() 调用了 rdd.iterator() func(context, rdd.iterator(partition, context)) } 而 RDD 的 iterator 方法的源码如下,其调用逻辑最终都会进入 computeOrRead-Checkpoint 方法,若没有0 码力 | 1356 页 | 45.90 MB | 2 年前3
Apache Kyuubi 1.8.0-rc0 Documentationcollect to trigger calculation and collect the entire data set of all tasks(a.k.a. partitions of an RDD), after all partitions data arrived, then the client pulls the result set from the Driver through the using custom RDD resource profile.|1.8.0| |spark.sql.finalWriteStageExecutorCores|fallback spark.exe, corex|Specify the executor core request for final write stage. It would be passed to the RDD resource profile memory|Specify the executor on heap memory request for final write stage. It would be passed to the RDD resource profile.|1.8.0| |spark.sql.finalWriteStageExecutorMemoryOverhead|fallback spark.exe, memoryOverhead|Specify0 码力 | 428 页 | 5.28 MB | 2 年前3
Apache Kyuubi 1.8.0-rc1 Documentationcollect to trigger calculation and collect the entire data set of all tasks(a.k.a. partitions of an RDD), after all partitions data arrived, then the client pulls the result set from the Driver through the using custom RDD resource profile.|1.8.0| |spark.sql.finalWriteStageExecutorCores|fallback spark.exe, corex|Specify the executor core request for final write stage. It would be passed to the RDD resource profile memory|Specify the executor on heap memory request for final write stage. It would be passed to the RDD resource profile.|1.8.0| |spark.sql.finalWriteStageExecutorMemoryOverhead|fallback spark.exe, memoryOverhead|Specify0 码力 | 429 页 | 5.28 MB | 2 年前3
Apache Kyuubi 1.8.0 Documentationcollect to trigger calculation and collect the entire data set of all tasks(a.k.a. partitions of an RDD), after all partitions data arrived, then the client pulls the result set from the Driver through the using custom RDD resource profile.|1.8.0| |spark.sql.finalWriteStageExecutorCores|fallback spark.exe, corex|Specify the executor core request for final write stage. It would be passed to the RDD resource profile memory|Specify the executor on heap memory request for final write stage. It would be passed to the RDD resource profile.|1.8.0| |spark.sql.finalWriteStageExecutorMemoryOverhead|fallback spark.exe, memoryOverhead|Specify0 码力 | 429 页 | 5.28 MB | 2 年前3
【05 计算平台 蓉荣】Flink 批处理及其应⽤peline| |吞吐|TB-PB|TB-PB|未经大规模生产验证| |性能|一般(分钟小时级别)|快(秒级)|优秀 x2| |稳定性|好|一般|已在阿里内部验证| |API|差(MR)|最丰富(RDD/DataSet/DataFrame)Python/Scala/R/Java|丰富(TableAPI)Scala/Java| |SQL|HiveSQL|SparkSQL|ANSI SQL| |易用性|一般|易用|一般|0 码力 | 12 页 | 1.44 MB | 2 年前3
Apache Kyuubi 1.9.0-SNAPSHOT Documentationcollect to trigger calculation and collect the entire data set of all tasks(a.k.a. partitions of an RDD), after all partitions data arrived, then the client pulls the result set from the Driver through the enabled|false|When true, make final w RDD resource profile.| |spark.sql.finalWriteStageExecutorCores|Fallback spark.executor.cores|Specify the executor core passed to the RDD resou| |spark.sql.finalWriteSta0 码力 | 405 页 | 4.96 MB | 2 年前3
Apache Kyuubi 1.8.1 Documentationcollect to trigger calculation and collect the entire data set of all tasks(a.k.a. partitions of an RDD), after all partitions data arrived, then the client pulls the result set from the Driver through the enabled|false|When true, make final w RDD resource profile.| |spark.sql.finalWriteStageExecutorCores|Fallback spark.executor.cores|Specify the executor core passed to the RDD resource| |spark.sql.finalWrite0 码力 | 405 页 | 5.28 MB | 2 年前3
共 45 条
- 1
- 2
- 3
- 4
- 5
相关搜索词
弹性分布数据集RDD转换与操作容错性血统Spark StreamingFlink微批处理窗口语义分布式文件系统TensorFlow on Yarn集成资源管理分布式训练集群调度美团技术团队短视频分析技术多模态自监督预训练技术视频理解技术本地生活服务高可用性负载均衡ZooKeeperApache SparkApache KyuubiSpark SQLJDBCmulti-tenancymetrics reporterKyuubiSparkHiveChatGPTFlink批处理分布式大数据处理引擎数仓数据湖存储计算分离架构监控指标Dropwizard Metrics升级指南配置参数架构UpgradeMigration GuideSpark SQL ExtensionOptimization













