From 50380e008fbf257623b7a4cf4beda06d49df07d5 Mon Sep 17 00:00:00 2001 From: Shuo Zhang Date: Thu, 11 Aug 2022 09:49:47 +0800 Subject: [PATCH] [doc] Add how obtain IP address from network card in FAQ (#11311) This pull request update the FAQ doc (faq.md) by adding how to obtain the IP address from the specified network card, which is part of relevant information created when the master service and worker service are registered with zookeeper. --- docs/docs/en/faq.md | 6 ++++++ docs/docs/zh/faq.md | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/docs/docs/en/faq.md b/docs/docs/en/faq.md index 0fe807b0c8..b8396f6753 100644 --- a/docs/docs/en/faq.md +++ b/docs/docs/en/faq.md @@ -575,6 +575,12 @@ Modify the configuration in `common.properties`: # dolphin.scheduler.network.priority.strategy=default ``` +In addition, if you would like to obtain the ip address from the specified network card, modify the configuration `dolphin.scheduler.network.interface.preferred` in `common.properties`. For example, you could modify the configuration in `common.properties` as follows to obtain the ip address from the network card `eth1`: + +```shell +dolphin.scheduler.network.interface.preferred=eth1 +``` + After configuration is modified, restart the service to activation If the ip address is still wrong, please download [dolphinscheduler-netutils.jar](/asset/dolphinscheduler-netutils.jar) to the machine, execute the following commands and feedback the output to the community developers: diff --git a/docs/docs/zh/faq.md b/docs/docs/zh/faq.md index d3745ca767..93a0dece9c 100644 --- a/docs/docs/zh/faq.md +++ b/docs/docs/zh/faq.md @@ -555,6 +555,12 @@ master 服务、worker 服务在 zookeeper 注册时,会以 ip:port 的形式 # dolphin.scheduler.network.priority.strategy=default ``` +另外,如果希望从指定的网卡获取 ip 地址,配置方式是在 `common.properties` 中设置配置项 `dolphin.scheduler.network.interface.preferred`。例如,如果希望从网卡 `eth1` 获取 ip 地址,配置方式是: + +```shell +dolphin.scheduler.network.interface.preferred=eth1 +``` + 以上配置修改后重启服务生效 如果 ip 地址获取依然错误,请下载 [dolphinscheduler-netutils.jar](/asset/dolphinscheduler-netutils.jar) 到相应机器,执行以下命令以进一步排障,并反馈给社区开发人员: