You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by zh...@apache.org on 2022/08/11 01:49:54 UTC

[dolphinscheduler] branch dev updated: [doc] Add how obtain IP address from network card in FAQ (#11311)

This is an automated email from the ASF dual-hosted git repository.

zhongjiajie pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git


The following commit(s) were added to refs/heads/dev by this push:
     new 50380e008f [doc] Add how obtain IP address from network card in FAQ (#11311)
50380e008f is described below

commit 50380e008fbf257623b7a4cf4beda06d49df07d5
Author: Shuo Zhang <zh...@qq.com>
AuthorDate: Thu Aug 11 09:49:47 2022 +0800

    [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) 到相应机器,执行以下命令以进一步排障,并反馈给社区开发人员: