简体   繁体   English

基于 NAT 的 Flink 任务管理器

[英]Flink taskmanagers over NAT

I am trying to run Flink cluster over NAT, where the advertised ports will be different from binding ports.我正在尝试通过 NAT 运行 Flink 集群,其中公布的端口将与绑定端口不同。

Is there any support for this in Flink? Flink 中对此有任何支持吗?

I looked through the configuration and source code but did not notice anything hinting to NAT being supported.我查看了配置和源代码,但没有注意到任何暗示支持 NAT 的内容。 If not, what is the recommended way to achieve this?如果没有,实现这一目标的推荐方法是什么?

Thanks in advance!提前致谢!

It should be possible to connect to a Flink component over NAT.应该可以通过 NAT 连接到 Flink 组件。

If the component behind NAT is the JobManager , then you have to configure jobmanager.rpc.address and jobmanager.rpc.port with the values of your logical name and port over which the JobManager is reachable from the outside network.如果NAT后面部分是JobManager ,那么你必须配置jobmanager.rpc.addressjobmanager.rpc.port用你的逻辑名称和端口超过该值JobManager是从外网访问。

If the component behind NAT is the TaskManager , then you have to configure taskmanager.host and taskmanager.rpc.port with the values of your logical name and port over which the TaskManager is reachable from the outside network.如果 NAT 后面的组件是TaskManager ,那么您必须使用逻辑名称和端口的值配置taskmanager.hosttaskmanager.rpc.portTaskManager可以通过这些值从外部网络访问。

Update更新

At the moment, it is not possible to run Flink over NAT because of FLINK-15911 .目前,由于FLINK-15911无法通过 NAT 运行 Flink。 The problem is that Flink does not offer separate bind and external port configurations and that the TaskManager tries to resolve taskmanager.host which is not always possible.问题是 Flink 不提供单独的绑定和外部端口配置,并且TaskManager尝试解析taskmanager.host这并不总是可行的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM