当前位置:网站首页>Flink deployment mode (II) - three deployment modes of yarn
Flink deployment mode (II) - three deployment modes of yarn
2022-06-22 04:58:00 【PONY LEE】
be based on flink1.15.0
Session Mode on yarn
Turn on flink yarn-session colony
./bin/yarn-session.sh -d \
-Dtaskmanager.numberOfTaskSlots=5 \
-Dflink.cluster.name=flink-yarn-session \
-Dyarn.application.name="flink-yarn-session" \
-Dresourcemanager.taskmanager-timeout=30000 \
-Drest.flamegraph.enabled=true
Submit tasks
- Mode one , Don't specify yarn app-id Submit
./bin/flink run ./examples/streaming/TopSpeedWindowing.jar
perhaps
- Mode two , Specify manually flink colony ,application_1652928425471_0282 yes flink colony yarn app-id
./bin/flink run -t yarn-session -d
-Dyarn.application.id=application_1652928425471_0285
./examples/streaming/TopSpeedWindowing.jar
- Mode three , stay flink web Interface upload jar Package submission
Enter the client interface
./bin/yarn-session.sh -id application_1652928425471_0252
Stop the task gracefully
echo “stop” | ./bin/yarn-session.sh -id application_1652928425471_0245
Force to kill the mission
yarn application -kill application_1652928425471_0266
NOTE: The only way to start a cluster is jobmanager, Submit job Just to go yarn Apply for resource launch taskmanager, Task completion automatically releases taskmanager
Per-Job Mode on yarn
start-up perjob colony
./bin/flink run -t yarn-per-job --detached \
-Dyarn.application.name="flink-yarn-perjob" \
-Dflink.cluster.name=flink-yarn-perjob \
-Dtaskmanager.numberOfTaskSlots=5 \
./examples/streaming/TopSpeedWindowing.jar
View the job
./bin/flink list -t yarn-per-job -Dyarn.application.id=application_1652928425471_0252
Cancel a certain job
./bin/flink cancel -t yarn-per-job -Dyarn.application.id=application_1652928425471_0252
./bin/flink cancel -t yarn-per-job -Dyarn.application.id=application_1652928425471_0252 ac02048e90c0ad7ec370542b412e498c
**NOTE:** stay perjob Pattern , Cancel a certain job It is equivalent to stopping the cluster
Application Mode on yarn
flink1.11 Later introduced
start-up application colony
./bin/flink run-application \
-t yarn-application \
-Dyarn.application.name="flink-yarn-application" \
-Dflink.cluster.name=flink-yarn-perjob \
-Dtaskmanager.numberOfTaskSlots=5 \
-Djobmanager.memory.process.size=1024m \
-Dtaskmanager.memory.process.size=1024m \
-Drest.flamegraph.enabled=true \
./examples/streaming/TopSpeedWindowing.jar
View the job
./bin/flink list -t yarn-application -Dyarn.application.id=application_1652928425471_0268
Cancel a certain job
./bin/flink cancel -t yarn-application -Dyarn.application.id=application_1652928425471_0268
./bin/flink cancel -t yarn-application -Dyarn.application.id=application_1652928425471_0254 17e0ba867df35d98c2d70be8103fff2e
**NOTE:** stay perjob Pattern , Cancel a certain job It is equivalent to stopping the cluster
In addition, it can be combined with yarn Rely on pre upload settings , To optimize job Submission effect of
边栏推荐
- 这是一个图片
- Common knowledge arrangement of numpy database
- Software architecture and pattern: structure, component and relationship
- Go learning (II. Built in container)
- How SQL server generates change scripts
- [details] domestic website filing process and steps
- Qt保存QTextEdit内存至.txt文件中
- Final examination questions of Database Principles
- LeetCode 437. Path sum III - binary tree series question 13
- QT save qtextedit memory to Txt file
猜你喜欢

Researcher of Shangtang intelligent medical team interprets organ image processing under intelligent medical treatment

cadence allegro 17. X conversion tool for downgrading to 16.6

Gavin's perception of transformer live class - NLU and policies data decryption, source code analysis and practice of insurance BOT in the insurance industry of Rasa dialogue robot project (57)

守护进程的流程

Understanding of service container, service provider and facade of laravel
![[details] domestic website filing process and steps](/img/be/be74c1e586ff01403fcafff19a462a.jpg)
[details] domestic website filing process and steps

使用Echart绘制3D饼环图、仪表盘、电池图

Qt保存QTextEdit内存至.txt文件中

数据库---基础知识

QT save qtextedit memory to Txt file
随机推荐
获取DPI函数返回值永远是96 | 获取DPI函数返回值不正确 | GetDpiForMonitor/GetDeviceCaps返回值不正确的原因
这是一个图片
Overrides vs overloads of methods
下拉刷新,上推加载(简单好用,终于会了)
使用Chrome调试微信内置浏览器
What is the difference between TOC and Tob
学信网的头像下载下来太小的处理方法
In 2022, the super intern plans to make a breakthrough in the offer of it famous enterprises, and the nine high salary skills help the dream of famous enterprises
Browser -- a collection of common search operators -- use / instance
使用matplotlib实现GUI交互效果
[fault diagnosis] stitch Py script failure
LeetCode——二叉搜索树的第k大节点(借助中序遍历)
[fault diagnosis] CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace B
Postman uses (reads) JSON files for batch testing
Concurrent programming - thread pool
uwsgi-invalid-request-block-size invalid request block size: 21327 (max 4096)...skip 的解决办法
招贤纳士-第23期
Reading notes on how MySQL works [updating]
MySQL day02 class notes
yarn部署模式依赖预上传设置