当前位置:网站首页>Spark 概述
Spark 概述
2022-07-03 09:00:00 【小胡今天有变强吗】
Spark 是什么
Spark 是一种基于内存的快速、通用、可扩展的大数据分析计算引擎。
Spark and Hadoop
Hadoop 是由 java 语言编写的,在分布式服务器集群上存储海量数据并运行分布式 分析应用的开源框架。
Spark 是一种由 Scala 语言开发的快速、通用、可扩展的大数据分析引擎。主要功能主要是用于数据计算。
Spark or Hadoop
Hadoop MapReduce 由于其设计初衷并不是为了满足循环迭代式数据流处理,因此在多 并行运行的数据可复用场景(如:机器学习、图挖掘算法、交互式数据挖掘算法)中存 在诸多计算效率等问题。所以 Spark 应运而生,Spark 就是在传统的 MapReduce 计算框 架的基础上,利用其计算过程的优化,基于内存进行计算,减轻了IO的开销。
Spark 和Hadoop 的根本差异是多个作业之间的数据通信问题 : Spark 多个作业之间数据 通信是基于内存,而 Hadoop 是基于磁盘。
Spark 只有在 shuffle 的时候将数据写入磁盘,而 Hadoop 中多个 MR 作业之间的数据交互都要依赖于磁盘交互,Spark 的缓存机制比 HDFS 的缓存机制高效。
在绝大多数的数据计算场景中,Spark 确实会比 MapReduce 更有优势。但是 Spark 是基于内存的,所以在实际的生产环境中,由于内存的限制,可能会 由于内存资源不够导致 Job 执行失败,此时,MapReduce 其实是一个更好的选择,所以 Spark 并不能完全替代 MR。
Spark 核心模块

- Spark Core Spark Core 中提供了 Spark 最基础与最核心的功能,Spark 其他的功能如:Spark SQL, Spark Streaming,GraphX, MLlib 都是在 Spark Core 的基础上进行扩展的
- Spark SQL Spark SQL 是 Spark 用来操作结构化数据的组件。通过 Spark SQL,用户可以使用 SQL 或者 Apache Hive 版本的 SQL 方言(HQL)来查询数据。
- Spark Streaming Spark Streaming 是 Spark 平台上针对实时数据进行流式计算的组件,提供了丰富的处理 数据流的 API。
- Spark MLlib MLlib 是 Spark 提供的一个机器学习算法库。MLlib 不仅提供了模型评估、数据导入等 额外的功能,还提供了一些更底层的机器学习原语。
- Spark GraphX GraphX 是 Spark 面向图计算提供的框架与算法库。
边栏推荐
- 【点云处理之论文狂读经典版14】—— Dynamic Graph CNN for Learning on Point Clouds
- LeetCode 324. Swing sort II
- 2022-2-14 learning xiangniuke project - Session Management
- 浅谈企业信息化建设
- 【点云处理之论文狂读前沿版8】—— Pointview-GCN: 3D Shape Classification With Multi-View Point Clouds
- Problems in the implementation of lenet
- AcWing 785. 快速排序(模板)
- Principles of computer composition - cache, connection mapping, learning experience
- LeetCode 241. Design priorities for operational expressions
- LeetCode 1089. Duplicate zero
猜你喜欢

Basic knowledge of network security

传统企业数字化转型需要经过哪几个阶段?

【点云处理之论文狂读经典版8】—— O-CNN: Octree-based Convolutional Neural Networks for 3D Shape Analysis

2022-2-13 learning xiangniuke project - version control

【Kotlin学习】高阶函数的控制流——lambda的返回语句和匿名函数

Sword finger offer II 029 Sorted circular linked list

State compression DP acwing 91 Shortest Hamilton path

Construction of simple database learning environment

Hudi integrated spark data analysis example (including code flow and test results)
![[set theory] order relation (eight special elements in partial order relation | ① maximum element | ② minimum element | ③ maximum element | ④ minimum element | ⑤ upper bound | ⑥ lower bound | ⑦ minimu](/img/57/b413a93a456a1872fc19aa825c937a.jpg)
[set theory] order relation (eight special elements in partial order relation | ① maximum element | ② minimum element | ③ maximum element | ④ minimum element | ⑤ upper bound | ⑥ lower bound | ⑦ minimu
随机推荐
LeetCode 515. Find the maximum value in each tree row
Go language - IO project
Instant messaging IM is the countercurrent of the progress of the times? See what jnpf says
CSDN markdown editor help document
LeetCode 324. Swing sort II
精彩回顾|I/O Extended 2022 活动干货分享
State compression DP acwing 291 Mondrian's dream
The "booster" of traditional office mode, Building OA office system, was so simple!
Beego learning - Tencent cloud upload pictures
【点云处理之论文狂读经典版12】—— FoldingNet: Point Cloud Auto-encoder via Deep Grid Deformation
[kotlin learning] operator overloading and other conventions -- overloading the conventions of arithmetic operators, comparison operators, sets and intervals
Notes on numerical analysis (II): numerical solution of linear equations
[point cloud processing paper crazy reading classic version 11] - mining point cloud local structures by kernel correlation and graph pooling
LeetCode 75. Color classification
AcWing 786. Number k
LeetCode 508. The most frequent subtree elements and
低代码起势,这款信息管理系统开发神器,你值得拥有!
Problems in the implementation of lenet
Simple use of MATLAB
Use the interface colmap interface of openmvs to generate the pose file required by openmvs mvs