Support Questions

Find answers, ask questions, and share your expertise

permission denied installing hdf

avatar
Expert Contributor

Hi, i have just installed HDF on Ubuntu 14. When attempting to add hosts it fails with the error below.I have changed permissions of the .ssh folder and the id_rsa.pub file. I am attempting to add the machine that the ambari-server is installed on as a host. Thanks

INFO:root:BootStrapping hosts ['master.hadoop.com'] using /usr/lib/python2.6/site-packages/ambari_server cluster primary OS: ubuntu14 with user 'root'with ssh Port '22' sshKey File /var/run/ambari-server/bootstrap/8/sshKey password File null using tmp dir /var/run/ambari-server/bootstrap/8 ambari: master.hadoop.com; server_port: 8080; ambari version: 2.4.2.0; user_run_as: root INFO:root:Executing parallel bootstrap ERROR:root:ERROR: Bootstrap of host master.hadoop.com fails because previous action finished with non-zero exit code (255) ERROR MESSAGE: Permission denied (publickey,password).

If i was to install the agent manually, where can i get the package?, i can only find links to install hdp agents

1 ACCEPTED SOLUTION

avatar
Expert Contributor

Got it.

1. ssh-keygen -t rsa
Press enter for each line 
2. cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
3. chmod og-wx ~/.ssh/authorized_keys 

View solution in original post

2 REPLIES 2

avatar
Expert Contributor

Got it.

1. ssh-keygen -t rsa
Press enter for each line 
2. cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
3. chmod og-wx ~/.ssh/authorized_keys 

avatar
New Contributor

your name host, whe use ambari, not is 'localhost', its 'localhost.localdomain', because use the FQDN, try it