Reply
Highlighted
Champion
Posts: 562
Registered: ‎05-16-2016
Accepted Solution

Configure NameNode HA Cluster - How to generate SSH private key

Hi Can you anyone help me out with below configuration file and please let me know how to generate the SSH private key file - We configuring HA namenode cluster for testing purpose. 

 

<property>
 <name>dfs.ha.fencing.ssh.private-key-files</name>
 <value>/home/exampleuser/.ssh/id_rsa</value>
</property>

Not my area - I have no idea as to how to generate this file 

/home/exampleuser/.ssh/id_rsa

 Thanks

Posts: 376
Topics: 11
Kudos: 58
Solutions: 32
Registered: ‎09-02-2016

Re: Configure NameNode HA Cluster - How to generate SSH private key

@csguna

 

Run the command "ssh-keygen" in the master node, it will generate two files, in which move "id_rsa.pub" to child node and rename it as authorizedkey and change the permission to 600.

 

This is required for keyless entry

 

You can refer this link with above understanding

 

https://www.digitalocean.com/community/tutorials/how-to-set-up-ssh-keys--2

 

Champion
Posts: 562
Registered: ‎05-16-2016

Re: Configure NameNode HA Cluster - How to generate SSH private key

[ Edited ]
 
Champion
Posts: 562
Registered: ‎05-16-2016

Re: Configure NameNode HA Cluster - How to generate SSH private key

is it authorizedkey or authorized_key
should file be in user:hdfs group ?
could you please clarify
Posts: 376
Topics: 11
Kudos: 58
Solutions: 32
Registered: ‎09-02-2016

Re: Configure NameNode HA Cluster - How to generate SSH private key

@csguna

 

It is authorized_key

 

nothing to do with hdfs here. so it is user:linux group (instead of hdfs group)

 

 

Announcements