centos7部署flink学习笔记(standalone)

FLink是分布式、高性能的流处理框架。
支持高吞吐、低延迟、高性能的流处理

部署步骤

//下载安装包
[root@mini2 ~]# wget https://archive.apache.org/dist/flink/flink-1.5.2/flink-1.5.2-bin-hadoop27-scala_2.11.tgz
//解压
tar -xvf flink-1.5.2-bin-hadoop27-scala_2.11.tgz
//配置(将下面第二行loalhost改为自己内网Ip,我只是测试一下就直接默认就行了)
[root@mini2 ~]# vi /flink/conf/flink-conf.yaml
# JobManager runs.
jobmanager.rpc.address: localhost
# The RPC port where the JobManager is reachable.
jobmanager.rpc.port: 6123
# The heap size for the JobManager JVM
jobmanager.heap.mb: 1024
//可将localhost改为内网Ip,此处我也是用来测试一下就默认就行了
[root@mini2 conf]# cat masters
localhost:8081
//到bin目录下启动
[root@mini2 bin]# ./start-cluster.sh
Starting cluster.
Starting standalonesession daemon on host mini2.
Starting taskexecutor daemon on host mini2.
[root@mini2 bin]# jps
29894 Jps
7833 DataNode
8185 NameNode
29531 StandaloneSessionClusterEntrypoint
29854 TaskManagerRunner

ip:8081端口访问得了即可
centos7部署flink学习笔记(standalone)_第1张图片

整个安装步骤十分简单,jps后有看见
StandaloneSessionClusterEntrypoint,TaskManagerRunner组件
TaskManagerRunner是TaskManager在yarn模式和standalone模式下的启动类StandaloneSessionClusterEntrypoint是flink的入口类

配置文件解释
centos7部署flink学习笔记(standalone)_第2张图片
taskmanager.numberOfTaskSlots: 1 (taskManager中taskSlots个数)

你可能感兴趣的:(大数据,flink,大数据,hadoop)