记录一次flink从源码编译到将编译后的源码部署到Linux环境中的过程,以及爬过的坑
环境准备:
java-version:1.8
maven-version:3.3.9
git
一、下载源码
源码下载方式:
git clone https://github.com/apache/flink.git
二、编译源码
mvn clean install -DskipTests -Dfast
三、编译错误
1.缺少maprfs-5.2.1-mapr.jar包
[ERROR] Failed to execute goal on project flink-mapr-fs: Could not resolve dependencies for project com.alibaba.blink:flink-mapr-fs:jar:1.5.1: Failure to find com.mapr.hadoop:maprfs:jar:5.2.1-mapr in http://maven.aliyun.com/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of nexus-aliyun has elapsed or updates are forced -> [Help 1]
解决方法:下载maprfs-5.2.1-mapr.jar,并mvn install到自己的仓库中
mvn install:install-file -DgroupId=com.mapr.hadoop -DartifactId=maprfs -Dversion=5.2.1-map