Github user zjureel commented on a diff in the pull request:
https://github.com/apache/flink/pull/4278#discussion_r126366568
--- Diff:
flink-runtime/src/main/java/org/apache/flink/runtime/clusterframework/BootstrapTools.java
---
@@ -185,8 +185,8 @@ public static WebMonitor startWebMonitorIfConfigured(
// this ensures correct values are present in the web frontend
final Address address = AkkaUtils.getAddress(actorSystem);
- config.setString(ConfigConstants.JOB_MANAGER_IPC_ADDRESS_KEY,
address.host().get());
- config.setString(ConfigConstants.JOB_MANAGER_IPC_PORT_KEY,
address.port().get().toString());
+ config.setString(JobManagerOptions.ADDRESS,
address.host().get());
+ config.setInteger(JobManagerOptions.PORT,
Integer.parseInt(address.port().get().toString()));
--- End diff --
@zentol The returned value of `address.port().get()` in java is `Object`
and I found it can't be used as `config.setInteger(JobManagerOptions.PORT,
address.port().get()));` directly. Do you mean that we should use
`config.setInteger(JobManagerOptions.PORT, (Integer)address.port().get()));`
instead? Hoping to hear your suggestion, thanks
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---