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 : Permission denied at the “Confirm Hosts” step (Ambari UI Installation)

Highlighted

ERROR : Permission denied at the “Confirm Hosts” step (Ambari UI Installation)

New Contributor

I am trying to setup a multi-node cluster using Ambari with 6 hosts created with Scaleway.com . I already did the steps described in the hortonworks Docs. I use Hdp 3.0.1 with Ambari 2.7.3.0.

The steps I have already followed

  1. Generate rsa keys in master host.
  2. cat the public key to authorized_keys.
  3. changing permissions for .ssh directory and authorized_keys, id_rsa.pub and id_rsa files
  4. copied the public key to all the hosts(authorized_keys)
  5. changing permissions for authorized_keys file on all the hosts
  6. Start installing Ambari Ui wizard
  7. Copied the rsa private key of the master node to the step two

ERROR 1 : I Found error in ssh connections btw hosts when i'am using Root users

SCREENSHOT :

Error 1 Screenshot

When I'm using other user its work fine

ERROR 2 : When I'm using other users i found an Error in the step 3 " Confirm Hosts " in Ambari Ui installation

SCREENSHOT :

Error 2 Screenshot

Please dont mark this question as a duplicate. I could see other questions with same description but none of them solve my prb.

thank you in advance :)

2 REPLIES 2

Re: ERROR : Permission denied at the “Confirm Hosts” step (Ambari UI Installation)

Super Mentor

@Mohamed Khalifa BOUTAHIR

Few things you should check before you try to register/install agents via Ambari UI.

0). Create password less ssh keys (with Emopty pass phrase)

# ssh-keygen


1). What is the permission of the following files (should be 600) ?

# ls -l ~/.ssh/id*
-rw-------. 1 root root 1679 May 22  2018 /root/.ssh/id_rsa
-rw-------. 1 root root  406 May 22  2018 /root/.ssh/id_rsa.pub


2). In order to perfectly copy the SSH Keys to other hosts

# ssh-copy-id -i ~/.ssh/id_rsa.pub hdp-master1
# ssh-copy-id -i ~/.ssh/id_rsa.pub hdp-master2
# ssh-copy-id -i ~/.ssh/id_rsa.pub hdp-slave1
# ssh-copy-id -i ~/.ssh/id_rsa.pub hdp-slave2
# ssh-copy-id -i ~/.ssh/id_rsa.pub hdp-slave3



3). Onece above is done then try to manually connect to those hosts to see if you are able to do passwordless on your own own not?

# ssh root@hdp-master2
(OR)
# ssh root@hdp-slave-1


Few other things to check:

4). Are you running Ambari Agents as non root user?

5). Make sure that every Node in the cluster has correct entries inside the "/etc/hosts" file (mostly it will be identical entries on all hosts) so that every node in the cluster can identify each other using theior FQDN. So please verify the following commands on couple of cluster nodes to see if they are showing correct results?

# cat/etc/hosts
# hostname -f

6). Now proceed with the Ambari UI to setup the cluster.



Re: ERROR : Permission denied at the “Confirm Hosts” step (Ambari UI Installation)

New Contributor

Hello @Jay Kumar SenSharma

Thanks for your answer,

I already did this and the errors still. For example when i use the root user and test to do

ssh-copy-id -i ~/.ssh/id_rsa.pub root@hdp-master2

It ask for the root password I give it the password that I already set.it displays the following error :

root@hdp-master2's password: 
Permission denied, please try again.
root@hdp-master2's password: 
Permission denied, please try again.
root@hdp-master2's password: 
root@hdp-master2: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).