当前位置:网站首页>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。
呃……完。
边栏推荐
- 计算时间差
- QT realizes window topping, topping state switching, and multi window topping priority relationship
- Remove the border when input is focused
- Sanic异步框架真的这么强吗?实践中找真理
- Codeforces - 1526C1&&C2 - Potions
- Specify the format time, and fill in zero before the month and days
- 1005. Maximized array sum after K negations
- How to insert mathematical formulas in CSDN blog
- Local visualization tools are connected to redis of Alibaba cloud CentOS server
- 软通乐学-js求字符串中字符串当中那个字符出现的次数多 -冯浩的博客
猜你喜欢
Problem - 922D、Robot Vacuum Cleaner - Codeforces
antd upload beforeUpload中禁止触发onchange
Advancedinstaller installation package custom action open file
Click QT button to switch qlineedit focus (including code)
Base dice (dynamic programming + matrix fast power)
QT有关QCobobox控件的样式设置(圆角、下拉框,向上展开、可编辑、内部布局等)
原生js实现全选和反选的功能 --冯浩的博客
Codeforces Round #797 (Div. 3)无F
1855. Maximum distance of subscript alignment
Flag framework configures loguru logstore
随机推荐
Market trend report, technological innovation and market forecast of desktop electric tools in China
浏览器打印边距,默认/无边距,占满1页A4
Generate random password / verification code
605. Planting flowers
Codeforces Round #798 (Div. 2)A~D
QT realizes window topping, topping state switching, and multi window topping priority relationship
Acwing: Game 58 of the week
Click QT button to switch qlineedit focus (including code)
Market trend report, technical innovation and market forecast of double-sided foam tape in China
Codeforces Round #797 (Div. 3)无F
(lightoj - 1370) Bi shoe and phi shoe (Euler function tabulation)
Codeforces - 1526C1&&C2 - Potions
Kubernetes cluster deployment
Hbuilder X格式化快捷键设置
(POJ - 3258) River hopper (two points)
QT模拟鼠标事件,实现点击双击移动拖拽等
Educational Codeforces Round 130 (Rated for Div. 2)A~C
875. 爱吃香蕉的珂珂 - 力扣(LeetCode)
(POJ - 3579) median (two points)
1005. Maximized array sum after K negations