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 2022/08/25 02:51:02 UTC

[GitHub] [dolphinscheduler] fuchanghai opened a new issue, #11636: [Feature][Worker] Get ip by specifying

fuchanghai opened a new issue, #11636:
URL: https://github.com/apache/dolphinscheduler/issues/11636

   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement.
   
   
   ### Description
   
   
   ## One network card has two ips
   displayName of eth1:
   ```
   eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
       link/ether 52:54:00:75:0d:7a brd ff:ff:ff:ff:ff:ff
       inet 172.31.252.109/23 scope global eth1
          valid_lft forever preferred_lft forever
       inet 172.16.98.30/24 scope global eth1
          valid_lft forever preferred_lft forever
   ```
   
   ### Use case
   
   - i want to specify ip
   - update codes in method of getLocalAddress0
   
   ```java
   
     private static synchronized InetAddress getLocalAddress0() {
           if (null != LOCAL_ADDRESS) {
               return LOCAL_ADDRESS;
           }
   
           InetAddress localAddress = null;
           String networkIp = PropertyUtils.getString(Constants.DOLPHIN_SCHEDULER_NETWORK_IP);
           if(StringUtils.isNotBlank(networkIp)){
               try {
                   localAddress =  InetAddress.getByName(networkIp);
                   return localAddress;
               } catch (UnknownHostException e) {
                   e.printStackTrace();
               }
           }
   ```
   
   ### Related issues
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [dolphinscheduler] github-actions[bot] commented on issue #11636: [Feature][Worker] Get ip by specifying

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #11636:
URL: https://github.com/apache/dolphinscheduler/issues/11636#issuecomment-1226709332

   Thank you for your feedback, we have received your issue, Please wait patiently for a reply.
   * In order for us to understand your request as soon as possible, please provide detailed information、version or pictures.
   * If you haven't received a reply for a long time, you can [join our slack](https://s.apache.org/dolphinscheduler-slack) and send your question to channel `#troubleshooting`


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Feature][Worker] Get ip by specifying [dolphinscheduler]

Posted by "fuchanghai (via GitHub)" <gi...@apache.org>.
fuchanghai closed issue #11636: [Feature][Worker] Get ip by specifying
URL: https://github.com/apache/dolphinscheduler/issues/11636


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org