1

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).

Misha Brukman
  • 12,938
  • 4
  • 61
  • 78
rajnandy
  • 96
  • 7

2 Answers2

1

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.

Misha Brukman
  • 12,938
  • 4
  • 61
  • 78
  • Thanks for the script, but i want to know what is going wrong here? – rajnandy Jun 23 '15 at 10:25
  • update: I have created a separate cloudera user(hadoop) according to your script. Now i can do ssh to other nodes using hadoop user without any password but cloudera manager still not able to do ssh and got this error in the CM log.
    net.schmizz.sshj.userauth.UserAuthException: Exhausted available authentication methods.
    Caused by: net.schmizz.sshj.userauth.UserAuthException: keyboard-interactive auth not allowed by server
    – rajnandy Jun 23 '15 at 16:24
  • If you can ssh yourself but Cloudera Manager cannot given the same credentials, that sounds like a CM issue. Maybe ask this on one of Cloudera's community forums? See http://community.cloudera.com/ – Misha Brukman Jun 23 '15 at 16:26
1

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.

rajnandy
  • 96
  • 7