0
I have 5 nodes hadoop cluster with different fqdns with domain xyz.com like node1.xyz.com, node2.xyz.com ... node5.xyz.com, its hostnames are configured with this domains, so if we write hostname command inside linux terminal it returns nodeX.xyz.com.
Now Due to some use cases i cant change hostname, and also cant add alias in /etc/hosts file cluster is kerberized so whenever i start datanode it uses principal dn/node1.xyz.com but i want it use dn/node1.hadoop.com, so how can we enforce the same. Also is ther any way to force jvm so that whenever jvm queries for hostname it get x.hadoop.com. Is there any way to change hostname for temporary like for particular bash session which are starting hadoop daemon.
Any suggestion is appreciated. Thanks In advance.