当前位置:网站首页>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 .
.
边栏推荐
- antd upload beforeUpload中禁止触发onchange
- Problem - 922D、Robot Vacuum Cleaner - Codeforces
- (lightoj - 1370) Bi shoe and phi shoe (Euler function tabulation)
- (lightoj - 1349) Aladdin and the optimal invitation (greed)
- 力扣:第81场双周赛
- 指定格式时间,月份天数前补零
- Codeforces Round #802(Div. 2)A~D
- Codeforces Round #799 (Div. 4)A~H
- 软通乐学-js求字符串中字符串当中那个字符出现的次数多 -冯浩的博客
- (lightoj - 1236) pairs forming LCM (prime unique decomposition theorem)
猜你喜欢
Codeforces Round #799 (Div. 4)A~H
解决Intel12代酷睿CPU单线程调度问题(二)
300th weekly match - leetcode
<li>圆点样式 list-style-type
The "sneaky" new asteroid will pass the earth safely this week: how to watch it
力扣——第298场周赛
Log statistics (double pointer)
Summary of game theory
解决Intel12代酷睿CPU【小核载满,大核围观】的问题(WIN11)
Remove the border when input is focused
随机推荐
sublime text 代码格式化操作
Configuration du cadre flask loguru log Library
js封装数组反转的方法--冯浩的博客
It is forbidden to trigger onchange in antd upload beforeupload
Problem - 922D、Robot Vacuum Cleaner - Codeforces
(lightoj - 1236) pairs forming LCM (prime unique decomposition theorem)
Codeforces Round #803 (Div. 2)A~C
QT实现窗口置顶、置顶状态切换、多窗口置顶优先关系
(POJ - 3258) River hopper (two points)
Investigation report of bench type Brinell hardness tester industry - market status analysis and development prospect prediction
Installation and configuration of MariaDB
使用jq实现全选 反选 和全不选-冯浩的博客
Base dice (dynamic programming + matrix fast power)
AcWing:第58场周赛
875. Leetcode, a banana lover
浏览器打印边距,默认/无边距,占满1页A4
AcWing——第55场周赛
Codeforces round 797 (Div. 3) no f
Read and save zarr files
解决Intel12代酷睿CPU单线程调度问题(二)