Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Configure NameNode HA Cluster - How to generate SSH private key

SOLVED Go to solution

Configure NameNode HA Cluster - How to generate SSH private key

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

Accepted Solutions

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

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

 

4 REPLIES 4

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

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

 

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

Champion
 

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

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

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

Champion

@csguna

 

It is authorized_key

 

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