当前位置:网站首页>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 .
.
边栏推荐
猜你喜欢
简单尝试DeepFaceLab(DeepFake)的新AMP模型
Spark独立集群Worker和Executor的概念
js封装数组反转的方法--冯浩的博客
Codeforces Round #799 (Div. 4)A~H
分享一个在树莓派运行dash应用的实例。
树莓派4B64位系统安装miniconda(折腾了几天终于解决)
Advancedinstaller installation package custom action open file
Anaconda下安装Jupyter notebook
<li>圆点样式 list-style-type
The "sneaky" new asteroid will pass the earth safely this week: how to watch it
随机推荐
Codeforces Round #801 (Div. 2)A~C
(POJ - 3186) treatments for the cows (interval DP)
Codeforces round 797 (Div. 3) no f
树莓派4B64位系统安装miniconda(折腾了几天终于解决)
Raspberry pie 4b64 bit system installation miniconda (it took a few days to finally solve it)
QT implementation fillet window
js封装数组反转的方法--冯浩的博客
Bisphenol based CE Resin Industry Research Report - market status analysis and development prospect forecast
Codeforces Round #798 (Div. 2)A~D
Discussion on QWidget code setting style sheet
Market trend report, technological innovation and market forecast of double door and multi door refrigerators in China
第5章 NameNode和SecondaryNameNode
Codeforces Round #803 (Div. 2)A~C
拉取分支失败,fatal: ‘origin/xxx‘ is not a commit and a branch ‘xxx‘ cannot be created from it
Share an example of running dash application in raspberry pie.
Market trend report, technical innovation and market forecast of tabletop dishwashers in China
Pytorch extract skeleton (differentiable)
Codeforces Round #800 (Div. 2)AC
OneForAll安装使用
Hbuilder X格式化快捷键设置