方式1:直接 get from vcs
输入git仓库地址:GitHub - apache/flink: Apache Flink
方式2:从 git 上下载,然后手动导入项目,flink 官网介绍也是这种
如果遇到这个问题:
这是因为有些代码需要自动生成,flink git 记录了这个问题: https://issues.apache.org/jira/browse/FLINK-18964
解决:一般Generate Sources and Update Folders 就可以了,如果还不行,那就手动 compile,将代码copy到对应目录
ps:吐槽下Generate Sources and Update Folders没有提示,可能会以为成功了,但其实没有,这个实在是坑
不过 Generate Sources and Update Folders 不行,一般情况 compile 也会失败