Flink打包生成安装包缺少jar包

官方默认打包生成的安装包的flink-release-1.7.0\flink-dist\target\flink-1.7.0-bin\flink-1.7.0\lib下缺少jar

flink-dist项目修改两个配置文件,添加需要打入到安装包的jar包

flink-release-1.7.0\flink-dist\src\main\assemblies\bin.xml

<dependencySets>
<dependencySet>
<outputDirectory>lib</outputDirectory>
<unpack>false</unpack>
<useProjectArtifact>false</useProjectArtifact>
<useProjectAttachments>false</useProjectAttachments>
<useTransitiveDependencies>true</useTransitiveDependencies>
<useTransitiveFiltering>true</useTransitiveFiltering>

<includes>
<include>org.slf4j:slf4j-log4j12</include>
<include>log4j:log4j</include>
<include>com.sun.jersey:jersey-core</include>
<include>org.codehaus.janino:commons-compiler</include>
<include>org.codehaus.janino:janino</include>
</includes>
</dependencySet>
</dependencySets>

flink-release-1.7.0\flink-dist\pom.xml

<!-- Concrete logging framework - we add this only here (and not in the
root POM) to not tie the projects to one specific framework and make
it easier for users to swap logging frameworks -->
<dependency>
<groupId>com.sun.jersey</groupId>
<artifactId>jersey-core</artifactId>
<version>1.9</version>
</dependency>

<dependency>
<groupId>org.codehaus.janino</groupId>
<artifactId>commons-compiler</artifactId>
<version>3.0.7</version>
</dependency>

<dependency>
<groupId>org.codehaus.janino</groupId>
<artifactId>janino</artifactId>
<version>3.0.7</version>
</dependency>

<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<scope>compile</scope>
</dependency>

<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<scope>compile</scope>
</dependency>

 

posted @ 2019-02-23 17:23  大数据从业者FelixZh  阅读(3703)  评论(0编辑  收藏  举报