当前位置:网站首页>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
边栏推荐
- [share] interface tests how to transfer files in post request
- Day83: Luffy: add shopping cart & navigation bar shopping cart digital display & shopping cart page display
- Rookie gospel, 28 books step by step to make you a big bull! (a copy of learning syllabus attached)
- 会展云技术解读 | 面对突发事故,APP 如何做好崩溃分析与性能监控?
- Program simulation perceptron algorithm (gradient descent method sklearn.linear_ Perception method in model)
- Source code analysis of serilog -- implementation of sink
- Flash Book curd project
- Introduction to zero base little white Python
- [interview experience] bat programmers interviewed 200 people and analyzed the most frequently asked interview questions
- js对象数组去重
猜你喜欢

超简单集成华为系统完整性检测,搞定设备安全防护

Share tips on editing letters and mathematical formulas with MathType

DCL单例模式中的缺陷及单例模式的其他实现
![[operation and maintenance thinking] how to do a good job in cloud operation and maintenance services?](/img/3b/00bc81122d330c9d59909994e61027.jpg)
[operation and maintenance thinking] how to do a good job in cloud operation and maintenance services?

全栈技术实践经历告诉你:开发一个商城小程序要多少钱?

High quality defect analysis: let yourself write fewer bugs

Equivalent judgment between floating point numbers

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

How the API gateway carries the API economic ecological chain

校准服务的六个轴心
随机推荐
脑机接口先驱炮轰马斯克:“他走的是一条死胡同,说的话我一个字都不同意”
GPS timing system (network timing instrument) application of e-government system
Talking about PHP file fragment upload from a requirement improvement
标梵互动解说小程序开发该如何选择?
Installation and testing of Flink
QML Repeater
揭秘在召唤师峡谷中移动路径选择逻辑?
How to choose the development of Biao fan interactive interpretation program?
Full stack technology experience tells you: how much does it cost to develop a mall small program?
EasyExcel根据筛选列导出(中间不空列,顺序可调整)
Express yourself with wechat expression translation, programmer's little romance, get up quickly!
第三阶段 Day16 用户模块跳转 SSO单点登录 JSONP/cors跨域方式 用户登录校检
js对象数组去重
5 minutes get I use GitHub's five-year summary of these complaints!
Equivalent judgment between floating point numbers
JS object array de duplication
[operation and maintenance thinking] how to do a good job in cloud operation and maintenance services?
菜鸟福音,28本书籍循序渐进让你成为大牛!(附学习大纲一份)
深入分析商淘多用户商城系统如何从搜索着手打造盈利点
(3)ASP.NET Core3.1 Ocelot认证