You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by GitBox <gi...@apache.org> on 2021/03/04 11:35:39 UTC
[GitHub] [incubator-dolphinscheduler] szs122 commented on pull request #3186: [Feature-2574][Server]Specify Network Interface
szs122 commented on pull request #3186:
URL: https://github.com/apache/incubator-dolphinscheduler/pull/3186#issuecomment-790549839
I think this need modify like this.
`private static boolean isSpecifyNetworkInterface(NetworkInterface networkInterface) {
String preferredNetworkInterface = PropertyUtils.getString(DOLPHIN_SCHEDULER_PREFERRED_NETWORK_INTERFACE);
logger.info("config name:{}, net work interface: {}, addrs: {}",preferredNetworkInterface, networkInterface, networkInterface.getInterfaceAddresses());
return Objects.equals(networkInterface.getName(), preferredNetworkInterface) || Objects.equals(networkInterface.getDisplayName(), preferredNetworkInterface);
}`
to fix which interface to use.
common.properties add
# Network Interface name
#dolphin.scheduler.network.interface.preferred=eth0
----------------------------------------------------------------
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:
users@infra.apache.org