1
votes

I have installed Cloudera Manager on a Google Compute Engine VM and successfully logged in to CM. I am trying to create a 3 node Hadoop (YARN) cluster there. However, on the ssh credentials page, where I am providing my username without password, the process is failing (error: Exhausted available authentication methods).

I tried creating password less ssh login manually. Created the id_rsa and copied id_rsa.pub to authorized_host. I was able to ssh to the same machine but not to other machine (I did copy the instance-1 id_rsa.pub to the instance-2's authorized_keys).

2
What OS distribution are you using on GCE? - Misha Brukman
I am using Debian based Linux 7.8 (wheezy) - rajnandy
By authorized_host, did you mean ~/.ssh/authorized_keys? - Misha Brukman
Yes @MishaBrukman , i meant ~/.ssh/authorized_keys. BTW that problem is solved now. I had to change PasswordAuthentication no to yes in the sshd_config file. Cluster is running fine now. - rajnandy
Great to hear that you’ve solved your issue! Can you please move your solution into an answer and accept it so that this question is marked as closed? Thanks! - Misha Brukman

2 Answers

1
votes

Turns out that PasswordAuthentication was set to no in the ssh config (/etc/ssh/sshd_config). So while doing ssh it was not checking for password authentication hence did not ask for password. Changing this to yes solved my problem.

1
votes

TL;DR: I have made a GitHub repo which has scripts to build images with Cloudera Manager preinstalled which you might want to consider using.

By default, GCE OS images only support public-key SSH authentication, not password, so if you want to use password, you have to modify /etc/ssh/sshd_config to allow this; see this script for details on how.

As an alternative, you can also deploy Cloudera Director on GCE which will properly configure your instances and install Cloudera Manager for you.