How does Namenode knows DataNode IP?


HI, As far as I understood, We donot mentioned the data node related IP configuration in either hdfs-site.xml, or core-site.xml, How does Namenode handles the way of providing the IP of DN to client during the write?


Is there any configuration file you specify the data node IP address? --> if so please let me know