Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Configure NameNode HA Cluster - How to generate SSH private key

avatar
Champion

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

1 ACCEPTED SOLUTION

avatar
Champion

@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

 

View solution in original post

4 REPLIES 4

avatar
Champion

@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

 

avatar
Champion
 

avatar
Champion
is it authorizedkey or authorized_key
should file be in user:hdfs group ?
could you please clarify

avatar
Champion

@csguna

 

It is authorized_key

 

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