Flink安装

Flink安装

上传并解压

tar -zxvf flink-1.10.0-bin-scala_2.11.tgz -C /usr/soft/

"## bin #执⾏脚本⽬录
"## conf #配置⽬录
"## examples #案例jar
"## lib # 依赖的jars
"## LICENSE
"## licenses
"## log # 运⾏⽇志
"## NOTICE
"## opt # 第三⽅备⽤插件包
"## plugins
$## README.txt

配置flink-conf.yaml

前期先配置这三项就够用

jobmanager.rpc.address: zly
taskmanager.numberOfTaskSlots: 4
parallelism.default: 3

配置salves

zly

启动Flink

[root@zly flink-1.10.0]#  ./bin/start-cluster.sh
Starting cluster.
Starting standalonesession daemon on host zly.
Starting taskexecutor daemon on host zly.
[root@zly flink-1.10.0]# start-dfs.sh 
Starting namenodes on [zly]
zly: starting namenode, logging to /usr/soft/hadoop-2.9.2/logs/hadoop-root-namenode-zly.out
zly: starting datanode, logging to /usr/soft/hadoop-2.9.2/logs/hadoop-root-datanode-zly.out
Starting secondary namenodes [0.0.0.0]
0.0.0.0: starting secondarynamenode, logging to /usr/soft/hadoop-2.9.2/logs/hadoop-root-secondarynamenode-zly.out
[root@zly flink-1.10.0]# jps
1952 StandaloneSessionClusterEntrypoint
2259 TaskManagerRunner
2550 DataNode
2440 NameNode
2873 Jps
2750 SecondaryNameNode

检查是否启动成功

⽤户可以访问Flink的WEB UI地址:http://zly:8081
在这里插入图片描述

©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页