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.

Error while installing Hortonworks~Ambari

Highlighted

Error while installing Hortonworks~Ambari

New Contributor

I am at the following step: http://localhost:8080/#/installer/step2

When I enter the host(deepak-HP or localhost) and the SSH private key, it gives me the following error: **************************************************************************** **************************************************************************** **************************************************************************** ========================== Creating target directory... ========================== Command start time 2016-10-06 14:51:24 Permission denied (publickey,password). SSH command execution finished host=localhost, exitcode=255 Command end time 2016-10-06 14:51:24 ERROR: Bootstrap of host localhost fails because previous action finished with non-zero exit code (255) ERROR MESSAGE: Permission denied (publickey,password). STDOUT: Permission denied (publickey,password).
**************************************************************************** **************************************************************************** ****************************************************************************I tried resolving it by setting up a passwordless SSH, however the error persist. How do I resolve this?

6 REPLIES 6
Highlighted

Re: Error while installing Hortonworks~Ambari

Mentor

@Deepak Goel did you set permissions on the ssh keys correctly? I'd recommend setting up agents manually rather than using passwordless SSH. That said here's documentation for doing it correctly https://docs.hortonworks.com/HDPDocuments/Ambari-2.2.2.0/bk_Installing_HDP_AMB/content/_set_up_passw...

and here's manual registration step doc http://docs.hortonworks.com/HDPDocuments/Ambari-2.2.2.0/bk_ambari_reference_guide/content/_install_t...

Highlighted

Re: Error while installing Hortonworks~Ambari

New Contributor

While installing manually, it is giving me the following error: Registering with the server... Registration with the server failed.

I have started the ambari agent manually on the host (I am trying to install Ambari and HDP on a single Ubuntu computer)

Highlighted

Re: Error while installing Hortonworks~Ambari

Expert Contributor

Have you added these host to the list of known host for username used by ambari?

Log in with the username used by ambari and connect via ssh with that certificate to the failing nodes.

A message as the following one should appear:

The authenticity of host 'test.int (10.0.0.1)' can't be established.
RSA key fingerprint is xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:x:xx:xx:xx.
Are you sure you want to continue connecting (yes/no)?

Answer yes, try this with all nodes that fails.

Highlighted

Re: Error while installing Hortonworks~Ambari

New Contributor

Yes I tried connecting via ssh to the host. It connects all right

Highlighted

Re: Error while installing Hortonworks~Ambari

Have you copied the right key on the ambari web. Need to copy this key on id_rsa.

Steps to setup cluster:-

There are some pre-requisites required for hadoop that we need to take care of before we set up the cluster. We will do them one by one now.

1) Setup password-less ssh on node.

2) Update /etc/hosts file and also install ntp.

3) Update it on each node to contain entries for all hosts in the cluster.

4) install Java

5) disable seliux and iptable

6)Download amabari repo

wget -nv http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.1.0/ambari.repo -O /etc/yum.repos.d/ambari.repo

7) install amabari

yum install ambari-server

8) run command to setup amabari

ambari-server setup and press enter for all question

9) Now start the ambari server

ambari-server start

10) Once service is started successfully then check UI at <ambari IP>:8080

11) You will see UI. Default login credentials are admin:admin (username:password)

For the next steps follow the link:-

http://docs.hortonworks.com/HDPDocuments/Ambari-2.1.0.0/bk_Installing_HDP_AMB/content/_launching_the...

Highlighted

Re: Error while installing Hortonworks~Ambari

New Contributor

Hello I tried doing the above. It is still giving the same error. Is it because I have Ubuntu 15 and in the docs it is specified you need Ubuntu 14? Thanks Deepak

Don't have an account?
Coming from Hortonworks? Activate your account here