Member since
04-05-2017
2
Posts
0
Kudos Received
0
Solutions
04-06-2017
08:35 PM
Hi Jey, Thanks for your response. The corrected the server hostname and prefixed it with www. and it worked fine. Thanks for your help. Thanks Rahul
... View more
04-05-2017
07:59 PM
I am trying to register ambari agent on my datanodes vai the ambari server web interface and getting below error while starting the ambari agent script. I have setup a local yum repository AMBARI-2.2.1.0 and HDP-2.4.0.0. I was successfully able to install/start the ambari server but while registering the ambari agent i am facing error - "Ambari Agent host cannot reach Ambari Server 'ns2.dns2go.com:8080'". I am not sure where is ns2.dns2go.com coming into picture. ========================== Creating target directory...
==========================
Command start time 2017-04-05 12:33:58
Connection to www.hdpdn1.rajlab.com closed.
SSH command execution finished
host=www.hdpdn1.rajlab.com, exitcode=0
Command end time 2017-04-05 12:33:58
==========================
Copying common functions script...
==========================
Command start time 2017-04-05 12:33:58
scp /usr/lib/python2.6/site-packages/ambari_commons
host=www.hdpdn1.rajlab.com, exitcode=0
Command end time 2017-04-05 12:33:58
==========================
Copying OS type check script...
==========================
Command start time 2017-04-05 12:33:58
scp /usr/lib/python2.6/site-packages/ambari_server/os_check_type.py
host=www.hdpdn1.rajlab.com, exitcode=0
Command end time 2017-04-05 12:33:58
==========================
Running OS type check...
==========================
Command start time 2017-04-05 12:33:58
Cluster primary/cluster OS family is redhat6 and local/current OS family is redhat6
Connection to www.hdpdn1.rajlab.com closed.
SSH command execution finished
host=www.hdpdn1.rajlab.com, exitcode=0
Command end time 2017-04-05 12:33:59
==========================
Checking 'sudo' package on remote host...
==========================
Command start time 2017-04-05 12:33:59
sudo-1.8.6p3-15.el6.x86_64
Connection to www.hdpdn1.rajlab.com closed.
SSH command execution finished
host=www.hdpdn1.rajlab.com, exitcode=0
Command end time 2017-04-05 12:33:59
==========================
Copying repo file to 'tmp' folder...
==========================
Command start time 2017-04-05 12:33:59
scp /etc/yum.repos.d/ambari.repo
host=www.hdpdn1.rajlab.com, exitcode=0
Command end time 2017-04-05 12:33:59
==========================
Moving file to repo dir...
==========================
Command start time 2017-04-05 12:33:59
Connection to www.hdpdn1.rajlab.com closed.
SSH command execution finished
host=www.hdpdn1.rajlab.com, exitcode=0
Command end time 2017-04-05 12:33:59
==========================
Changing permissions for ambari.repo...
==========================
Command start time 2017-04-05 12:33:59
Connection to www.hdpdn1.rajlab.com closed.
SSH command execution finished
host=www.hdpdn1.rajlab.com, exitcode=0
Command end time 2017-04-05 12:34:00
==========================
Copying setup script file...
==========================
Command start time 2017-04-05 12:34:00
scp /usr/lib/python2.6/site-packages/ambari_server/setupAgent.py
host=www.hdpdn1.rajlab.com, exitcode=0
Command end time 2017-04-05 12:34:00
==========================
Running setup agent script...
==========================
Command start time 2017-04-05 12:34:00
Host registration aborted. Ambari Agent host cannot reach Ambari Server 'ns2.dns2go.com:8080'. Please check the network connectivity between the Ambari Agent host and the Ambari Server
Connection to www.hdpdn1.rajlab.com closed.
SSH command execution finished
host=www.hdpdn1.rajlab.com, exitcode=1
Command end time 2017-04-05 12:35:03
ERROR: Bootstrap of host www.hdpdn1.rajlab.com fails because previous action finished with non-zero exit code (1)
ERROR MESSAGE: tcgetattr: Invalid argument
Connection to www.hdpdn1.rajlab.com closed.
STDOUT: Host registration aborted. Ambari Agent host cannot reach Ambari Server 'ns2.dns2go.com:8080'. Please check the network connectivity between the Ambari Agent host and the Ambari Server
Connection to www.hdpdn1.rajlab.com closed.
also when i checked the ambari-server logs i could see some bootstrap mesgs. [root@hdpserver yum.repos.d]# tail -50 /var/log/ambari-server/ambari-server.log
STDOUT: Host registration aborted. Ambari Agent host cannot reach Ambari Server 'ns2.dns2go.com:8080'. Please check the network connectivity between the Ambari Agent host and the Ambari Server
tcgetattr: Invalid argument
Connection to www.hdpdn1.rajlab.com closed.
ERROR:root:ERROR: Bootstrap of host www.hdpdn3.rajlab.com fails because previous action finished with non-zero exit code (1)
ERROR MESSAGE: tcgetattr: Invalid argument
Connection to www.hdpdn3.rajlab.com closed.
STDOUT: Host registration aborted. Ambari Agent host cannot reach Ambari Server 'ns2.dns2go.com:8080'. Please check the network connectivity between the Ambari Agent host and the Ambari Server
tcgetattr: Invalid argument
Connection to www.hdpdn3.rajlab.com closed.
ERROR:root:ERROR: Bootstrap of host www.hdpdn2.rajlab.com fails because previous action finished with non-zero exit code (1)
ERROR MESSAGE: tcgetattr: Invalid argument
Connection to www.hdpdn2.rajlab.com closed.
STDOUT: Host registration aborted. Ambari Agent host cannot reach Ambari Server 'ns2.dns2go.com:8080'. Please check the network connectivity between the Ambari Agent host and the Ambari Server
tcgetattr: Invalid argument
Connection to www.hdpdn2.rajlab.com closed.
INFO:root:Finished parallel bootstrap
05 Apr 2017 12:35:05,396 INFO [pool-11-thread-1] BSHostStatusCollector:55 - Request directory /var/run/ambari-server/bootstrap/4
Could someone pease guide me how to proceed further. I have tried to install manually the ambari-agent as well on each node but still i am not able to register the host from ambari server interface. Kindly help
... View more
Labels:
- Labels:
-
Apache Ambari