Flink日志分析实战笔记
1.安装VM虚拟机
2.安装centos7环境
3.net网络配置
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=static
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=ens33
UUID=2b2cfb88-806c-49b6-aa02-6a452dd3a338
DEVICE=ens33
ONBOOT=yes
NETMASK=255.255.255.0
IPADDR=192.168.122.8
GATEWAY=192.168.122.2
DNS1=8.8.8.8
DNS2=114.114.114.114
4.下载、安装flink
下载网址:https://dlcdn.apache.org/flink/flink-1.14.2/flink-1.14.2-bin-scala_2.11.tgz
安装步骤:
1.解压:
tar -xzf flink-1.14.2-bin-scala_2.11.tgz
2.启动:
cd flink-1.14.2-bin-scala_2.11
./bin/start-cluster.sh
3.测试:
./bin/flink run examples/streaming/WordCount.jar
4.停止:
./bin/stop-cluster.sh
5.webui默认端口:8081
(这儿需要开发linux网络端口等安全相关操作,请参考https://blog.csdn.net/qq_33202508/article/details/83899245)