当前位置:网站首页>Flink的安装部署
Flink的安装部署
2020-11-09 17:46:00 【程序猿欧文】
一. Flink的下载
安装包下载地址 ,选择对应Hadoop的Flink版本下载
Flink 有三种部署模式,分别是 Local、Standalone Cluster 和 Yarn Cluster。
二. Local模式
对于 Local 模式来说,JobManager 和 TaskManager 会公用一个 JVM 来完成 Workload。如果要验证一个简单的应用,Local 模式是最方便的。实际应用中大多使用 Standalone 或者 Yarn Cluster,而local模式只是将安装包解压启动(./bin/start-local.sh)即可,在这里不在演示。
三. Standalone HA模式
Standalone模式顾名思义,是在本地集群上调度执行,不依赖于外部调度机制例如YARN, 一般需要配置为HA,防止Jobmanager突然挂掉,导致整个集群或者任务执行失败的情况发生。下面介绍一下Standalone HA模式的搭建安装
当Flink程序运行时,如果jobmanager崩溃,那么整个程序都会失败。为了防止jobmanager的单点故障,借助于zookeeper的协调机制,可以实现jobmanager的HA配置—-1主(leader)多从(standby)。这里的HA配置只涉及standalone模式,yarn模式暂不考虑。
本例中规划Jobmanager:hadoop01,hadoop02(一个active,一个standby);Taskmanager:hadoop02,hadoop03;zookeeper集群
1. 集群部署规划
节点名称 | master | worker | zookeeper |
hadoop01 | master | worker | zookeeper |
hadoop02 | master | worker | zookeeper |
hadoop03 | woker | zookeeper |
2. 解压
[hadoop@hadoop01 apps]$ tar -zxvf flink-1.7.2-bin-scala_2.11.tgz -C ./
[hadoop@hadoop01 apps]$ ls
azkaban flink-1.7.2 flink-1.7.2-bin-scala_2.11.tgz flume-1.8.0 hadoop-2.7.4 jq kafka_2.11-0.11 zkdata zookeeper-3.4.10 zookeeper.out
3. 修改配置文件
配置masters文件
该文件用于指定主节点及其web访问端口,表示集群的Jobmanager,vi masters,添加master:8081
[hadoop@hadoop01 conf]$ vim masters hadoop01:8081
hadoop02:8081
配置slaves文件,该文件用于指定从节点,表示集群的taskManager。添加以下内容
[hadoop@hadoop01 conf]$ vim slaveshadoop01hadoop02hadoop03
配置文件flink-conf.yaml
版权声明
本文为[程序猿欧文]所创,转载请带上原文链接,感谢
https://my.oschina.net/mikeowen/blog/4710218
边栏推荐
- Day83: Luffy: add shopping cart & navigation bar shopping cart digital display & shopping cart page display
- On agile development concept and iterative development scheme
- Serilog 源码解析——Sink 的实现
- JS object array de duplication
- 手势切换背景,让直播带货更加身临其境
- 你以为学编程很简单吗,其实它很难!你以为学编程很难吗,其实它很简单!
- Introduction to zero base little white Python
- Git + -- Code hosting in the history of version management
- Six axes of calibration service
- 揭秘在召唤师峡谷中移动路径选择逻辑?
猜你喜欢
会展云技术解读 | 面对突发事故,APP 如何做好崩溃分析与性能监控?
In the third stage, the day20 Shopping Cart module is added, the interceptor is added, the user authority is checked, and the order module is realized
手势切换背景,让直播带货更加身临其境
CIM平台可视化建设
Ultra simple integration of Huawei system integrity testing, complete equipment security protection
数据库执行truncate table CM_CHECK_ITEM_HIS怎么恢复
用微信表情翻译表白,程序员的小浪漫,赶紧Get起来!
Equivalent judgment between floating point numbers
设置背景图片的两种方式,并解决手机端背景图片高度自适应问题
Easyexcel exports according to the filter column (not empty in the middle, the order can be adjusted)
随机推荐
The basic principle of MRAM
On agile development concept and iterative development scheme
openocd+jlink_picture
High performance library dpdk concise understanding
Day83: Luffy: add shopping cart & navigation bar shopping cart digital display & shopping cart page display
H264Nalu头部解析
浅谈API网关(API Gateway)如何承载API经济生态链
拉线位移编码器的选择,需要精量电子的指导
Ultra simple integration of Huawei system integrity testing, complete equipment security protection
手势切换背景,让直播带货更加身临其境
Defects in singleton mode of DCL and other implementations of singleton
The latest version of pycharm 2020.3: pair programming, intelligent text proofreading and downloading experience
(3)ASP.NET Core3.1 Ocelot认证
JS object array de duplication
程序模拟感知机算法(梯度下降法、sklearn.linear_model中perception方法)
拉线式位移传感器在边坡裂缝中的作用
Gesture switch background, let live with goods more immersive
Easyexcel exports according to the filter column (not empty in the middle, the order can be adjusted)
DCL单例模式中的缺陷及单例模式的其他实现
RBAC of kubernetes authority management (1)