当前位置:网站首页>Spark独立集群动态上线下线Worker节点
Spark独立集群动态上线下线Worker节点
2022-07-06 09:29:00 【若苗瞬】
(一)下线Worker节点
我的操作:关机就是了……
反正工作自然会交给其它节点做的。
当然其实应该这样,登录到需要下线的节点主机:
执行脚本关闭本机Worker:
$> $SPARK_HOME/sbin/stop-worker.sh
注意还有一个stop-workers.sh,是用来关闭全部Worker的,别搞错了。
看清楚多一个s!!!
如果你在Master上不小心执行了这个多个S的脚本(Master到所有Worker一定都配置了ssh密钥登录),
那么就全关完了……
关机前:
关机后:
过一段时间DEAD的Worker就会消失(集群总要留点时间看它能不能重新连接嘛)。
.
(二)上线Worker节点
登录到需要上线的节点主机:
执行脚本启动本机Worker,并连接到Spark Master:
$> $SPARK_HOME/sbin/start-worker.sh spark://vm00:7077
注意还有一个start-workers.sh脚本。区别同上。
最后,如果是一个新的Worker,别忘了在$SPARK_CONF_DIR里面编辑workers(或slaves)。
加入新Worker的主机名,方便下次集群全部一起启动。
对了,新启动的Worker有新的ID。
呃……完。
边栏推荐
- Effet d'utilisation, déclenché lorsque les composants de la fonction sont montés et déchargés
- 去掉input聚焦时的边框
- QT style settings of qcobobox controls (rounded corners, drop-down boxes, up expansion, editable, internal layout, etc.)
- Is the sanic asynchronous framework really so strong? Find truth in practice
- Quick to typescript Guide
- Codeforces - 1526C1&&C2 - Potions
- Advancedinstaller安装包自定义操作打开文件
- Market trend report, technological innovation and market forecast of desktop electric tools in China
- Codeforces Round #801 (Div. 2)A~C
- Anaconda下安装Jupyter notebook
猜你喜欢
随机推荐
Oneforall installation and use
1605. Sum the feasible matrix for a given row and column
Codeforces Round #803 (Div. 2)A~C
Browser print margin, default / borderless, full 1 page A4
1689. Ten - the minimum number of binary numbers
Market trend report, technological innovation and market forecast of China's double sided flexible printed circuit board (FPC)
生成随机密码/验证码
QT implementation window gradually disappears qpropertyanimation+ progress bar
Educational Codeforces Round 130 (Rated for Div. 2)A~C
Codeforces Round #799 (Div. 4)A~H
力扣——第298场周赛
(lightoj - 1354) IP checking (Analog)
875. Leetcode, a banana lover
Opencv learning log 24 -- Hough transform 2 (maximum interval and minimum length can be limited)
Opencv learning log 28 -- detect the red cup cover
Date plus 1 day
Codeforces - 1526C1&&C2 - Potions
Raspberry pie csi/usb camera uses mjpg to realize web camera monitoring
Generate random password / verification code
树莓派4B64位系统安装miniconda(折腾了几天终于解决)









