Created 08-16-2017 07:46 AM
Error as below :
==========================
Creating target directory...
==========================
Command start time 2017-08-16 07:40:34
chmod: cannot access `/var/lib/ambari-agent/data': No such file or directory
Connection to test-hdp-aws-1.icare.com closed.
SSH command execution finished
host=test-hdp-aws-1.icare.com, exitcode=0
Command end time 2017-08-16 07:40:34
==========================
Copying common functions script...
==========================
Command start time 2017-08-16 07:40:34
scp /usr/lib/python2.6/site-packages/ambari_commons
host=test-hdp-aws-1.icare.com, exitcode=0
Command end time 2017-08-16 07:40:34
==========================
Copying OS type check script...
==========================
Command start time 2017-08-16 07:40:34
scp /usr/lib/python2.6/site-packages/ambari_server/os_check_type.py
host=test-hdp-aws-1.icare.com, exitcode=0
Command end time 2017-08-16 07:40:34
==========================
Running OS type check...
==========================
Command start time 2017-08-16 07:40:34
Cluster primary/cluster OS family is redhat6 and local/current OS family is redhat6
Connection to test-hdp-aws-1.icare.com closed.
SSH command execution finished
host=test-hdp-aws-1.icare.com, exitcode=0
Command end time 2017-08-16 07:40:34
==========================
Checking 'sudo' package on remote host...
==========================
Command start time 2017-08-16 07:40:34
sudo-1.8.6p3-24.el6.x86_64
Connection to test-hdp-aws-1.icare.com closed.
SSH command execution finished
host=test-hdp-aws-1.icare.com, exitcode=0
Command end time 2017-08-16 07:40:35
==========================
Copying repo file to 'tmp' folder...
==========================
Command start time 2017-08-16 07:40:35
scp /etc/yum.repos.d/ambari.repo
host=test-hdp-aws-1.icare.com, exitcode=0
Command end time 2017-08-16 07:40:35
==========================
Moving file to repo dir...
==========================
Command start time 2017-08-16 07:40:35
Connection to test-hdp-aws-1.icare.com closed.
SSH command execution finished
host=test-hdp-aws-1.icare.com, exitcode=0
Command end time 2017-08-16 07:40:35
==========================
Changing permissions for ambari.repo...
==========================
Command start time 2017-08-16 07:40:35
Connection to test-hdp-aws-1.icare.com closed.
SSH command execution finished
host=test-hdp-aws-1.icare.com, exitcode=0
Command end time 2017-08-16 07:40:36
==========================
Copying setup script file...
==========================
Command start time 2017-08-16 07:40:36
scp /usr/lib/python2.6/site-packages/ambari_server/setupAgent.py
host=test-hdp-aws-1.icare.com, exitcode=0
Command end time 2017-08-16 07:40:36
==========================
Running setup agent script...
==========================
Command start time 2017-08-16 07:40:36
Host registration aborted. Ambari Agent host cannot reach Ambari Server 'dhm-rd-aws-4.icare.com:8080'. Please check the network connectivity between the Ambari Agent host and the Ambari Server
Connection to test-hdp-aws-1.icare.com closed.
SSH command execution finished
host=test-hdp-aws-1.icare.com, exitcode=1
Command end time 2017-08-16 07:41:39
ERROR: Bootstrap of host test-hdp-aws-1.icare.com fails because previous action finished with non-zero exit code (1)
ERROR MESSAGE: tcgetattr: Invalid argument
Connection to test-hdp-aws-1.icare.com closed.
STDOUT: Host registration aborted. Ambari Agent host cannot reach Ambari Server 'dhm-rd-aws-4.icare.com:8080'. Please check the network connectivity between the Ambari Agent host and the Ambari Server
Connection to test-hdp-aws-1.icare.com closed.
Created 08-16-2017 07:52 AM
The following error indicates either the Ambari Hostname is not accessible from ambari agent machine or the Port is not accessible.
Ambari Agent host cannot reach Ambari Server 'dhm-rd-aws-4.icare.com:8080'.
.
- Can you please check if the ambari-agent host has the correct "/etc/hosts" entry to resolve ambari server. Please share the output of the following commands from the ambari agent host
# cat /etc/hosts # hostname -f
- Also please collect the same outputs from the ambari-server host.
.
- Can the ambari agent machine access the port 8080 of ambari server (Additionally ambari agent need to access 8440 and 8441 ports of ambari server) ? Following need to be run from ambari agent host to check the connectivity.# nc -v dhm-rd-aws-4.icare.com 8080 (OR) # telnet dhm-rd-aws-4.icare.com 8080<br>
.
On Ambari Server host please check if the Iptables (firewall) is disabled.
Created 08-16-2017 08:01 AM
Additionally, Following links might be useful to check & set the hostnames correctly:
Created 08-16-2017 10:03 AM
Can you install ambari-agent on test-hdp-aws-1.icare.com I assume your ambari and hdp repos are correct on this host
# yum install -y ambari-agent
Edit the[server] entry in /etc/ambari-agent/conf/ambari-agent.ini to point to the Ambari server
[server] hostname=dhm-rd-aws-4.icare.com url_port=8440 secured_url_port=8441
Start the ambari-agent
# ambari-agent start
Now you should be able to register test-hdp-aws-1.icare.com from the Ambari UI after entering a list of hosts using the Fully Qualified Domain Name (FQDN),by selecting the Install options
Perform manual registration on hosts and do not use SSH
It shoud register successfully
Hope that helps