title: flink17 编译 date: 2023-05-26T14:21:59+08:00 lastmode: 2023-05-26T14:21:59+08:00 tags:

  • bigdata categories:
  • bigdata

flink 编译

jdk11

node 16.17(与 angular 对应的版本)

image-20230526142527137

1
2
mvn clean package -T 4 -P -Dfast -Dmaven.compile.fork=true -DskipTests  --settings ~/.m2/settings-flink.xml
./mvnw clean package -T 4 -Dfast -Dmaven.compile.fork=true -DskipTests  --settings ~/.m2/settings-flink.xml

修改 web 模块打包

image-20230526142420863

1
2
搜索“ci --cache-max=0 --no-save”替换为“install -registry=https://registry.npm.taobao.org --cache-max=0 --no-save”
即:<arguments>install -registry=https://registry.npmmirror.com --cache-max=0 --no-save</arguments>

修改 conf/flink-conf.yaml 文件中:localhost 为 0.0.0.0

rest.bind-address: 0.0.0.0

这样才可以在外部访问到 flink。

这次提示缺少依赖,采用的方式是修改 settings.xml

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
    <mirrors>
        <mirror>
            <id>maven-public</id>
                <mirrorOf>*,!cloudera-releases,!cloudera</mirrorOf>
            <name>nexus-public</name>
            <url>http://10.7.20.39:8081/repository/maven-public/</url>
        </mirror>
            <!-- hortonworks maven -->
    <mirror>
        <id>nexus-hortonworks</id>
        <mirrorOf>*,!central</mirrorOf>
        <name>Nexus hortonworks</name>
        <url>https://repo.hortonworks.com/content/groups/public/</url>
    </mirror>
    <mirror>
        <id>confluent</id>
        <mirrorOf>confluent</mirrorOf>
        <name>Nexus public mirror</name>
        <url>http://packages.confluent.io/maven/</url>
    </mirror>
    </mirrors>
Licensed under CC BY-NC-SA 4.0
最后更新于 Jan 06, 2025 05:52 UTC
comments powered by Disqus
Built with Hugo
主题 StackJimmy 设计
Caret Up