'0.0.0.0 permission denied (publickey)'
This is due to the fact that, by default, the hadoop core process will try to start secondary namenode on the default ip address 0.0.0.0 which by default should be pointing to localhost. In order to do that it tries to establish an SSH connection to the ip address 0.0.0.0 and as the error message states, it fails to make the connection because the passwordless SSH is not setup correctly for the host 0.0.0.0. Below steps will help you fix this
1) If you are using a config file for passwordless ssh (mostly in case of AWS servers)
In order to setup passwordless ssh, you might have created a config file in .ssh folder of your home directory with the entries for hostname, userid and the keyfile to be used while doing ssh, as shown belowHost namenode User hadoopuser HostName namenode.xyz.com IdentityFile ~/.ssh/hadoop_key.pem Host localhost HostName 127.0.0.1 User hadoopuser IdentityFile ~/.ssh/hadoop_key.pem Host datanode1 User hadoopuser HostName datanode1.xyz.com IdentityFile ~/.ssh/hadoop_key.pem Host datanode2 User hadoopuser HostName datanode2.xyz.com IdentityFile ~/.ssh/hadoop_key.pem Host datanode3 User hadoopuser HostName datanode3.xyz.com IdentityFile ~/.ssh/hadoop_key.pem
just add the below entries
Host 0.0.0.0 User hadoopuser IdentityFile ~/.ssh/hadoop_key.pem
and try to connect to 0.0.0.0 via ssh as below
$ ssh 0.0.0.0 The authenticity of host '0.0.0.0' can't be established. ED25519 key fingerprint is e4:ff:65:d7:be:5d:c8:44:1d:89:6b:50:f5:50:a0:ce. Are you sure you want to continue connecting (yes/no)?Type 'yes' and you should be all set.
2) If you are using ssh-keygen generated key for passwordless ssh
In this case, you dont need to do anything other than updating the known hostsTry to connect to 0.0.0.0 via ssh as below
$ ssh 0.0.0.0 The authenticity of host '0.0.0.0' can't be established. ED25519 key fingerprint is e4:ff:65:d7:be:5d:c8:44:1d:89:6b:50:f5:50:a0:ce. Are you sure you want to continue connecting (yes/no)?Type 'yes' and you should be all set
Appreciation for really being thoughtful and also for deciding on certain marvelous guides most people really want to be aware of.Best Hadoop Training Institute In chennai
ReplyDeleteBig data is a term that describes the large volume of data – both structured and unstructured – that inundates a business on a day-to-day basis. big data projects for students But it’s not the amount of data that’s important.Project Center in Chennai
DeleteSpring Framework has already made serious inroads as an integrated technology stack for building user-facing applications. Corporate TRaining Spring Framework the authors explore the idea of using Java in Big Data platforms.
Spring Training in Chennai
The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer. Angular Training
Want to make a big and interesting profit? best casino cities then come quickly to us.
ReplyDeleteI like the blog format as you create user engagement in the complete article. Thanks for the informative posts.
ReplyDeleteBig Data Hadoop Training In Chennai | Big Data Hadoop Training In anna nagar | Big Data Hadoop Training In omr | Big Data Hadoop Training In porur | Big Data Hadoop Training In tambaram | Big Data Hadoop Training In velachery