当前位置:网站首页>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
边栏推荐
- 超简单集成华为系统完整性检测,搞定设备安全防护
- How the API gateway carries the API economic ecological chain
- Custom indoor map online tool
- 树莓派内网穿透建站与维护,使用内网穿透无需服务器
- 第三阶段 Day16 用户模块跳转 SSO单点登录 JSONP/cors跨域方式 用户登录校检
- Solve the problem that the page does not refresh after the wechat applet uses switchtab to jump
- 浅谈API网关(API Gateway)如何承载API经济生态链
- In depth analysis of the multi-user shopping mall system from search to create a profit point
- 寻找性能更优秀的不可变小字典
- 【云小课】版本管理发展史之Git+——代码托管
猜你喜欢

High performance library dpdk concise understanding

H264Nalu头部解析

【面试经验】BAT程序员面试200人,常见最常问的面试问题做出解析

用会声会影替换视频背景原来这么简单

融云集成之避坑指南-Android推送篇

Exhibition cloud technology interpretation | in the face of emergencies, how does app do a good job in crash analysis and performance monitoring?

(3)ASP.NET Core3.1 Ocelot认证

ABBYY FineReader 15新增编辑页面布局功能

Openocd-jtag debugging

SEO solution development, how to break away from the shadow of the bow?
随机推荐
[share] interface tests how to transfer files in post request
揭秘在召唤师峡谷中移动路径选择逻辑?
Toolkit Pro助力界面开发:缩短项目开发周期,快速实现具有现代功能区样式的GUI
用会声会影替换视频背景原来这么简单
手势切换背景,让直播带货更加身临其境
拉线式位移传感器在边坡裂缝中的作用
How about Tencent cloud amd cloud server?
函数计算进阶-IP查询工具开发
MathType中如何编辑求和公式
寻找性能更优秀的不可变小字典
Abbyy finereader 15 adds editing page layout function
Equivalent judgment between floating point numbers
Experts' interpretation of four hot industries in 2020 China telecom terminal technology and Standards Forum
Git + -- Code hosting in the history of version management
如何设计并实现存储QoS?
设置背景图片的两种方式,并解决手机端背景图片高度自适应问题
【STM32F429】第6章 ThreadX GUIX上手之STM32F429 DMA2D加速
The applet calls the native onshareappmessage to share. What if the imageurl parameter is in MP4 format
openocd+jlink_picture
Colleague notes - small program entry point