Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
doujutun3207
flink
提交
d8a6d11d
F
flink
项目概览
doujutun3207
/
flink
与 Fork 源项目一致
从无法访问的项目Fork
通知
24
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
F
flink
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
d8a6d11d
编写于
2月 29, 2020
作者:
C
Chesnay Schepler
提交者:
GitHub
2月 29, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[FLINK-13417][build] Bundle Zookeeper 3.5 in opt
上级
8e12742b
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
59 addition
and
0 deletion
+59
-0
docs/ops/jobmanager_high_availability.md
docs/ops/jobmanager_high_availability.md
+9
-0
docs/ops/jobmanager_high_availability.zh.md
docs/ops/jobmanager_high_availability.zh.md
+9
-0
flink-dist/pom.xml
flink-dist/pom.xml
+25
-0
flink-dist/src/main/assemblies/bin.xml
flink-dist/src/main/assemblies/bin.xml
+8
-0
flink-dist/src/main/assemblies/opt.xml
flink-dist/src/main/assemblies/opt.xml
+7
-0
pom.xml
pom.xml
+1
-0
未找到文件。
docs/ops/jobmanager_high_availability.md
浏览文件 @
d8a6d11d
...
...
@@ -229,6 +229,15 @@ zookeeper.sasl.login-context-name: Client # default is "Client". The value need
For more information on Flink configuration for Kerberos security, please see
[
here
](
{{
site.baseurl}}/ops/config.html).
You can also find
[
here
](
{{
site.baseurl}}/ops/security-kerberos.html) further details on how Flink internally setups Kerberos-based security.
## Zookeeper Versions
Flink ships with separate Zookeeper clients for 3.4 and 3.5, with 3.4 being in the
`lib`
directory of the distribution
and thus used by default, whereas 3.5 is placed in the
`opt`
directory.
The 3.5 client allows you to secure the Zookeeper connection via SSL, but _may_ not work with 3.4- Zookeeper installations.
You can control which version is used by Flink by placing either jar in the
`lib`
directory.
## Bootstrap ZooKeeper
If you don't have a running ZooKeeper installation, you can use the helper scripts, which ship with Flink.
...
...
docs/ops/jobmanager_high_availability.zh.md
浏览文件 @
d8a6d11d
...
...
@@ -229,6 +229,15 @@ zookeeper.sasl.login-context-name: Client # default is "Client". The value need
For more information on Flink configuration for Kerberos security, please see
[
here
](
{{
site.baseurl}}/ops/config.html).
You can also find
[
here
](
{{
site.baseurl}}/ops/security-kerberos.html) further details on how Flink internally setups Kerberos-based security.
## Zookeeper Versions
Flink ships with separate Zookeeper clients for 3.4 and 3.5, with 3.4 being in the
`lib`
directory of the distribution
and thus used by default, whereas 3.5 is placed in the
`opt`
directory.
The 3.5 client allows you to secure the Zookeeper connection via SSL, but _may_ not work with 3.4- Zookeeper installations.
You can control which version is used by Flink by placing either jar in the
`lib`
directory.
## Bootstrap ZooKeeper
If you don't have a running ZooKeeper installation, you can use the helper scripts, which ship with Flink.
...
...
flink-dist/pom.xml
浏览文件 @
d8a6d11d
...
...
@@ -33,6 +33,10 @@ under the License.
<name>
flink-dist
</name>
<packaging>
jar
</packaging>
<properties>
<zookeeper.optional.version>
3.5.6
</zookeeper.optional.version>
</properties>
<dependencies>
<!-- Flink project binaries -->
...
...
@@ -634,6 +638,25 @@ under the License.
<outputDirectory>
${project.build.directory}/temporary
</outputDirectory>
</configuration>
</execution>
<execution>
<id>
copy-zk-jars
</id>
<phase>
process-resources
</phase>
<goals>
<goal>
copy
</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>
org.apache.flink
</groupId>
<artifactId>
flink-shaded-zookeeper-3
</artifactId>
<version>
${zookeeper.optional.version}-${flink.shaded.version}
</version>
<type>
jar
</type>
<overWrite>
true
</overWrite>
</artifactItem>
</artifactItems>
<outputDirectory>
${project.build.directory}/temporary
</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
...
...
@@ -693,6 +716,8 @@ under the License.
<excludes>
<!-- log4j 2 is bundled separately from the flink-dist jar -->
<exclude>
org.apache.logging.log4j:*
</exclude>
<!-- Bundled separately so that users can easily switch between ZK 3.4/3.5-->
<exclude>
org.apache.flink:flink-shaded-zookeeper-3
</exclude>
</excludes>
</artifactSet>
<transformers>
...
...
flink-dist/src/main/assemblies/bin.xml
浏览文件 @
d8a6d11d
...
...
@@ -44,6 +44,14 @@ under the License.
<include>
org.apache.logging.log4j:log4j-1.2-api
</include>
</includes>
</dependencySet>
<dependencySet>
<outputDirectory>
lib
</outputDirectory>
<unpack>
false
</unpack>
<includes>
<include>
org.apache.flink:flink-shaded-zookeeper-3:jar:${zookeeper.version}-${flink.shaded.version}
</include>
</includes>
<outputFileNameMapping>
flink-shaded-zookeeper-${zookeeper.version}.jar
</outputFileNameMapping>
</dependencySet>
</dependencySets>
<files>
...
...
flink-dist/src/main/assemblies/opt.xml
浏览文件 @
d8a6d11d
...
...
@@ -176,6 +176,13 @@
<destName>
flink-ml_${scala.binary.version}-${project.version}.jar
</destName>
<fileMode>
0644
</fileMode>
</file>
<file>
<source>
target/temporary/flink-shaded-zookeeper-3-${zookeeper.optional.version}-${flink.shaded.version}.jar
</source>
<outputDirectory>
opt
</outputDirectory>
<destName>
flink-shaded-zookeeper-${zookeeper.optional.version}.jar
</destName>
<fileMode>
0644
</fileMode>
</file>
</files>
<dependencySets>
<dependencySet>
...
...
pom.xml
浏览文件 @
d8a6d11d
...
...
@@ -120,6 +120,7 @@ under the License.
<scala.binary.version>
2.11
</scala.binary.version>
<chill.version>
0.7.6
</chill.version>
<zookeeper.version>
3.4.10
</zookeeper.version>
<!-- Only the curator2 TestingServer works with ZK 3.4 -->
<curator.version>
2.12.0
</curator.version>
<jackson.version>
2.10.1
</jackson.version>
<metrics.version>
3.1.5
</metrics.version>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录