Flink打包生成安裝包缺少jar包
阿新 • • 發佈:2019-02-23
mage logging enc ack ons pan 兩個 wap rect
官方默認打包生成的安裝包的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>
Flink打包生成安裝包缺少jar包