当前位置:网站首页>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 面向图计算提供的框架与算法库。
边栏推荐
- 图像修复方法研究综述----论文笔记
- Principles of computer composition - cache, connection mapping, learning experience
- Construction of simple database learning environment
- 【点云处理之论文狂读经典版14】—— Dynamic Graph CNN for Learning on Point Clouds
- With low code prospect, jnpf is flexible and easy to use, and uses intelligence to define a new office mode
- 【点云处理之论文狂读前沿版10】—— MVTN: Multi-View Transformation Network for 3D Shape Recognition
- 【Kotlin学习】类、对象和接口——定义类继承结构
- Numerical analysis notes (I): equation root
- 剑指 Offer II 029. 排序的循环链表
- Sword finger offer II 029 Sorted circular linked list
猜你喜欢

On a un nom en commun, maître XX.

Navicat, MySQL export Er graph, er graph

Vs2019 configuration opencv3 detailed graphic tutorial and implementation of test code

How to check whether the disk is in guid format (GPT) or MBR format? Judge whether UEFI mode starts or legacy mode starts?

LeetCode 57. Insert interval

【点云处理之论文狂读前沿版9】—Advanced Feature Learning on Point Clouds using Multi-resolution Features and Learni

Discussion on enterprise informatization construction
![[point cloud processing paper crazy reading classic version 11] - mining point cloud local structures by kernel correlation and graph pooling](/img/40/e0c7bad60b19cafa467c229419ac21.png)
[point cloud processing paper crazy reading classic version 11] - mining point cloud local structures by kernel correlation and graph pooling

Win10 quick screenshot

Introduction to the basic application and skills of QT
随机推荐
Explanation of the answers to the three questions
Navicat, MySQL export Er graph, er graph
AcWing 788. Number of pairs in reverse order
[advanced feature learning on point clouds using multi resolution features and learning]
Vscode编辑器右键没有Open In Default Browser选项
精彩回顾|I/O Extended 2022 活动干货分享
Windows安装Redis详细步骤
What are the stages of traditional enterprise digital transformation?
Wonderful review | i/o extended 2022 activity dry goods sharing
【Kotlin学习】类、对象和接口——定义类继承结构
dried food! What problems will the intelligent management of retail industry encounter? It is enough to understand this article
State compression DP acwing 91 Shortest Hamilton path
浅谈企业信息化建设
LeetCode 508. The most frequent subtree elements and
How to check whether the disk is in guid format (GPT) or MBR format? Judge whether UEFI mode starts or legacy mode starts?
Uc/os self-study from 0
The less successful implementation and lessons of RESNET
Go language - Reflection
【点云处理之论文狂读经典版13】—— Adaptive Graph Convolutional Neural Networks
Numerical analysis notes (I): equation root