Score:0

How to force Hadoop Daemon or JVM to use given hostname instead of nodes actual hostname

lk flag

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.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.