flink1.9编译

默认已经装好npm,maven,java,scala,scala版本:2.11.11,java版本:1.8

.m2/settings.xml设置maven的镜像

   
        nexus-aliyun
        Nexus aliyun
        *,!jeecg,!jeecg-snapshots,!mapr-releases,!cloudera,!cdh,!confluent
        http://maven.aliyun.com/nexus/content/groups/public
    

    
        mapr-public
        mapr-releases
        mapr-releases,*,!confluent
        https://maven.aliyun.com/repository/mapr-public
    

    
        cloudera
        cloudera
        https://repository.cloudera.com/artifactory/cloudera-repos
        *,!mapr-releases,!confluent
   

   
        huaweicloud
        *
        https://mirrors.huaweicloud.com/repository/maven/
   

编译命令:mvn clean install -DskipTests -Dfast -Dhadoop.version=2.7.5 -Pinclude-hadoop -Dhive.version=1.2.1

常见错误:

1.npm install --cache-max=0 --no-save

处理:

设置npm代理为淘宝的

npm config set registry https://registry.npm.taobao.org
查看代理npm config get registry

后续ng build --prod --base-href ./可能会有点慢

2.Failed to execute goal on project flink-avro-confluent-registry: Could not resolve dependencies for project org.apache.flink:flink-avro-confluent-registry

处理:

手动下载(转https://www.cnblogs.com/dajiangtai/p/10598759.html)

http://packages.confluent.io/maven/io/confluent/kafka-schema-registry-client/3.3.1/kafka-schema-registry-client-3.3.1.jar

手动安装

mvn install:install-file -DgroupId=io.confluent -DartifactId=kafka-schema-registry-client -Dversion=3.3.1 -Dpackaging=jar  -Dfile=/home/hadoop/downloads/kafka-schema-registry-client-3.3.1.jar

你可能感兴趣的:(flink)