yangyichao-mango commented on issue #2921:
URL: 
https://github.com/apache/incubator-dolphinscheduler/issues/2921#issuecomment-640320912


   The reason for the IP change is the 
`InetAddress.getLocalHost().getHostAddress()` will change when your 
`InetAddress.addressCache.cache.xxx.value.addresses`'s first value change, and 
the result of `InetAddress.getLocalHost().getHostAddress()` equals your 
`InetAddress.addressCache.cache.xxx.value.addresses`'s first value.
   
   The result when I connect the wifi:
   
![image](https://user-images.githubusercontent.com/29545877/83985785-080fbd00-a96d-11ea-9224-7f6ac2b5ce59.png)
   
   The result when I turn off the network:
   
![image](https://user-images.githubusercontent.com/29545877/83985977-bca9de80-a96d-11ea-98ee-9b774826fcf1.png)
   
   So when it returns `127.94.0.1` not `127.0.0.1`, it maybe your network env 
changed. 
   
   Can you show the results of `ifconfig` on the command line of your computer 
and the result of the picture above when your network env changed?
   
   Although there is little possibility of IP changes in the production 
environment, but I think we should compare the results of zk record and the 
result of `InetAddress.getLocalHost().getHostAddress()` to determine the node?
   
   @dailidong Can you help to confirm this question? Thx.


----------------------------------------------------------------
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:
[email protected]


Reply via email to