We have a scenario that namenode should provide the data node addresses with host names instead of ip addresses to the client for write/read operations to/from datanodes. There are two Ethernets configured for cluster nodes. one is for internal use(cluster-192.x.x.x series) and other is for external use(10.x.x.x series)
Tried setting up dfs.client.use.datanode.hostname=true, but no luck.
Tried configuring dfs_all_hosts.txt with hostnames, but the entries with datanode hostnames got appended to dfs_all_hosts.txt, still client trying to use datanodes ip addresses instead of hostnames.