1.flink安装与环境变量配置
1.1下载安装flink
https://www.apache.org/dyn/closer.lua/flink/flink-1.11.1/flink-1.11.1-bin-scala_2.11.tgz
1.2.升级本机maven版本
1.3.配置环境变量
export MAVEN_HOME=/Library/Java/apache-maven-3.6.3
export PATH=$PATH:$MAVEN_HOME/bin
FLINK_HOME=/usr/local/Cellar/flink-1.11.1/bin
export PATH=$PATH:$FLINK_HOME
1.4.启动
start-cluster.sh
打开 http://localhost:8081/#/overview ,查看flink是否正常启动
2.quick start
2.1 创建工程
mvn archetype:generate -DarchetypeGroupId=org.apache.flink -DarchetypeArtifactId=flink-quickstart-java -DarchetypeVersion=1.2.0