Xushaohong commented on PR #3835:
URL: https://github.com/apache/ozone/pull/3835#issuecomment-1289902890

   > If this 
[Map](https://github.com/apache/ozone/blob/4c65a07b124b21aa85aa3711035fd8616e13db38/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/node/SCMNodeManager.java#L125)
 holds both IPs and Hostnames at all times, will this be an issue? In case we 
are in an ip changing environment and the ip doesn't work, hostname will still 
be available for the user. What do you think? Also, if you could provide a way 
for me to test it.
   
   This map is fine with  IP changing environment since **we either use IP or 
hostname, not both of them simultaneously.** The prerequisite is the config 
```dfs.datanode.use.datanode.hostname```. The maintainer should set the right 
config according to the environment. 
   
   The simple test environment could be found in the ```kubernetes``` 
directory. 
   E.g ozone/hadoop-ozone/dist/target/ozone-1.3.0-SNAPSHOT/kubernetes
   There is a README.md to teach how to set up an ozone k8s cluster.
   Kill/ Restart one DN pod could change the IP.


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

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to