当前位置:网站首页>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
边栏推荐
- Mongo Fuzzy query, with Special Characters need to escape, to Query
- 软考2022年下半年考试科目安排
- slurm 使用教程
- Redis 主从复制
- Software architecture and pattern: structure, component and relationship
- 数据的备份与恢复
- [sdx12] use qcmap_ CLI startup WiFi operation instructions
- C # WinForm listview control has no scroll bar and has written an extension control by itself
- [fault diagnosis] stitch Py script failure
- mysql笔记
猜你喜欢

The best time to climb a ladder & sell shares (notes of the runner)

数据库---基础知识

Solutions to MySQL 8.0 public key retrieval is not allowed errors

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

Postman document parameterization

In 2022, the postgraduate entrance examination ran aground | how to counter attack famous IT enterprises and become a programmer in three months

加快推进工业互联网,图扑“智”绘发展新蓝图

Learning signal integrity from scratch -- 7-si analysis and simulation

使用matplotlib实现GUI交互效果

Cloud native enthusiast weekly: Chaos mesh upgraded to CNCF incubation project
随机推荐
Zhongmin online: sharing online channel resources with "points" as the link
Redis master-slave replication
【故障诊断】cv2.imwrite无法写入图片,但程序就是不报错
NFC authentication makes the ultimate KYC experience
CS 611 Game
10道不得不会的 Redis 面试题
In 2022, the postgraduate entrance examination ran aground | how to counter attack famous IT enterprises and become a programmer in three months
[sdx62] IPA log fetching instructions
yarn部署模式依赖预上传设置
学信网的头像下载下来太小的处理方法
Final examination questions of Database Principles
numpy库常用知识整理
[sdx12] use qcmap_ CLI startup WiFi operation instructions
The best time to climb a ladder & sell shares (notes of the runner)
【故障诊断】切图代码切不出来,slide.read_region不运行,但程序不报错
Researcher of Shangtang intelligent medical team interprets organ image processing under intelligent medical treatment
Remote Dictionary Server(Redis)——基于 KV 结构的作为 Cache 使用的 NoSQL 数据库管理系统
[fault diagnosis] cv2 Imwrite cannot write the picture, but the program does not report an error
requests cookie更新值
uwsgi-invalid-request-block-size invalid request block size: 21327 (max 4096)...skip 的解决办法