xintongsong commented on a change in pull request #11284: 
[FLINK-15911][runtime] Make Flink work with NAT.
URL: https://github.com/apache/flink/pull/11284#discussion_r395435813
 
 

 ##########
 File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/minicluster/MiniClusterConfiguration.java
 ##########
 @@ -102,21 +102,21 @@ public int getNumTaskManagers() {
        public String getJobManagerBindAddress() {
                return commonBindAddress != null ?
                                commonBindAddress :
-                               
configuration.getString(JobManagerOptions.ADDRESS, "localhost");
+                               
configuration.getString(JobManagerOptions.BIND_HOST, "localhost");
        }
 
        public String getTaskManagerBindAddress() {
                return commonBindAddress != null ?
                                commonBindAddress :
-                               
configuration.getString(TaskManagerOptions.HOST, "localhost");
+                               
configuration.getString(TaskManagerOptions.BIND_HOST, "localhost");
        }
 
-       public String getJobManagerBindPortRange() {
-               return 
String.valueOf(configuration.getInteger(JobManagerOptions.PORT, 0));
+       public int getJobManagerBindPort() {
+               return 
configuration.getInteger(JobManagerOptions.RPC_BIND_PORT, 0);
        }
 
-       public String getTaskManagerBindPortRange() {
-               return configuration.getString(TaskManagerOptions.RPC_PORT);
+       public int getTaskManagerBindPort() {
+               return 
configuration.getInteger(TaskManagerOptions.RPC_BIND_PORT, 0);
 
 Review comment:
   Not sure if I fully understand your concern.
   
   I think the RPC services are meant to be used by Flink components 
internally. Then how would user be affected if the configured address is not 
used internally?
   
   I have no problem preserving the external address/ports if configured. Just 
trying to understand.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to