推荐先安装jdk1.8,查看命令:java -version
使用brew安装flink,命令如下:
brew install apache-flink
查看是否安装成功:
flink --version
查看flink安装目录:
brew info apache-flink
进入flink安装目录,启动flink:
cd /usr/local/Cellar/apache-flink/1.14.3/ ./libexec/bin/start-cluster.sh
进入web页面,可以看到启动成功:http://localhost:8081/
关闭集群命令:
cd /usr/local/Cellar/apache-flink/1.14.3/ ./libexec/bin/stop-cluster.sh