当前位置:网站首页>The concept of spark independent cluster worker and executor
The concept of spark independent cluster worker and executor
2022-07-06 16:36:00 【Ruo Miaoshen】
List of articles
.
( One )Spark Independent clusters Worker and Executor The concept of
1.1 Worker( Containers )
Work node , Equivalent to workstation , A virtual computer , Have their own CPU The core number , Memory count .
We put Worker Suppose it is a computer , that CPU The core number ( hypothesis 2 nucleus ), Memory count ( hypothesis 32GB) Is its hardware condition .
In fact, Spark It is determined by these configurations :
export SPARK_WORKER_CORES=2
export SPARK_WORKER_MEMORY=32g
1.2 Executor( Program )
Working procedure , Equivalent to a program running on a computer , It requires CPU The core number , Number of memory required .
We put Executor Suppose it is a program , Then it needs to run on the computer , It it's right CPU The core number ( hypothesis 1 nucleus ), Memory count ( hypothesis 4GB), Is the basic requirement of its operation .
PS: Empathy driver It's also a program .
We can specify these parameters when submitting :
SparkLauncher aL = new org.apache.spark.launcher.SparkLauncher()
.setXXX(...)
.setConf(SparkLauncher.DRIVER_MEMORY, "4g")
.setConf(SparkLauncher.EXECUTOR_MEMORY,"4g")
.setConf(SparkLauncher.EXECUTOR_CORES,"1")
1.3 Unable to meet the conditions Worker Don't work
If EXECUTOR_MEMORY
,EXECUTOR_CORES
The parameter specification exceeds some Worker Configuration of ,
Then these Work Will not participate in the calculation of this task .
If EXECUTOR_MEMORY
,EXECUTOR_CORES
The parameter specification exceeds all Worker Configuration of ,
Then there are no resources in the cluster for this task , The task will wait indefinitely , Wait for available resources .
Every worker You can configure multiple CPU The core , A certain amount of memory .
Configure according to the actual situation of the host , So here I am :
That's not a problem , It's just a concept .
.
边栏推荐
- js时间函数大全 详细的讲解 -----阿浩博客
- Codeforces Round #798 (Div. 2)A~D
- QT simulates mouse events and realizes clicking, double clicking, moving and dragging
- Codeforces Round #803 (Div. 2)A~C
- OneForAll安装使用
- Codeforces Round #802(Div. 2)A~D
- (POJ - 3258) River hopper (two points)
- Hbuilder X格式化快捷键设置
- VMware Tools和open-vm-tools的安装与使用:解决虚拟机不全屏和无法传输文件的问题
- 原生js实现全选和反选的功能 --冯浩的博客
猜你喜欢
window11 conda安装pytorch过程中遇到的一些问题
< li> dot style list style type
Installation and configuration of MariaDB
Codeforces round 797 (Div. 3) no f
The "sneaky" new asteroid will pass the earth safely this week: how to watch it
Summary of game theory
解决Intel12代酷睿CPU单线程只给小核运行的问题
两个礼拜速成软考中级软件设计师经验
第7章 __consumer_offsets topic
(POJ - 3685) matrix (two sets and two parts)
随机推荐
Research Report on market supply and demand and strategy of China's four flat leadless (QFN) packaging industry
力扣:第81场双周赛
(lightoj - 1354) IP checking (Analog)
(lightoj - 1323) billiard balls (thinking)
VMware Tools和open-vm-tools的安装与使用:解决虚拟机不全屏和无法传输文件的问题
Problem - 922D、Robot Vacuum Cleaner - Codeforces
Codeforces - 1526C1&&C2 - Potions
Flask框架配置loguru日志库
Some problems encountered in installing pytorch in windows11 CONDA
Chapter 2 shell operation of hfds
Summary of game theory
第6章 Rebalance详解
去掉input聚焦时的边框
第5章 消费者组详解
第7章 __consumer_offsets topic
Acwing: Game 58 of the week
图图的学习笔记-进程
Read and save zarr files
js封装数组反转的方法--冯浩的博客
Pull branch failed, fatal: 'origin/xxx' is not a commit and a branch 'xxx' cannot be created from it