Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

There is a problem when install HDP on the step"Confirm Hosts"

avatar
Explorer

hadoop54.example.com is my ambari-server.55/56 are agent.Ambari is ok,when I install HDP got a problem on the step "Confirm Hosts".the log is:

2849-微博桌面截图-20160317115242.jpg

==========================
Creating target directory...
==========================


Command start time 2016-03-17 11:48:06


Connection to hadoop54.example.com closed.
SSH command execution finished
host=hadoop54.example.com, exitcode=0
Command end time 2016-03-17 11:48:06


==========================
Copying common functions script...
==========================


Command start time 2016-03-17 11:48:06


scp /usr/lib/python2.6/site-packages/ambari_commons
host=hadoop54.example.com, exitcode=0
Command end time 2016-03-17 11:48:06


==========================
Copying OS type check script...
==========================


Command start time 2016-03-17 11:48:06


scp /usr/lib/python2.6/site-packages/ambari_server/os_check_type.py
host=hadoop54.example.com, exitcode=0
Command end time 2016-03-17 11:48:07


==========================
Running OS type check...
==========================


Command start time 2016-03-17 11:48:07
Cluster primary/cluster OS family is redhat7 and local/current OS family is redhat7


Connection to hadoop54.example.com closed.
SSH command execution finished
host=hadoop54.example.com, exitcode=0
Command end time 2016-03-17 11:48:07


==========================
Checking 'sudo' package on remote host...
==========================


Command start time 2016-03-17 11:48:07
sudo-1.8.6p7-16.el7.x86_64


Connection to hadoop54.example.com closed.
SSH command execution finished
host=hadoop54.example.com, exitcode=0
Command end time 2016-03-17 11:48:08


==========================
Copying repo file to 'tmp' folder...
==========================


Command start time 2016-03-17 11:48:08


scp /etc/yum.repos.d/ambari.repo
host=hadoop54.example.com, exitcode=0
Command end time 2016-03-17 11:48:08


==========================
Moving file to repo dir...
==========================


Command start time 2016-03-17 11:48:08


Connection to hadoop54.example.com closed.
SSH command execution finished
host=hadoop54.example.com, exitcode=0
Command end time 2016-03-17 11:48:08


==========================
Changing permissions for ambari.repo...
==========================


Command start time 2016-03-17 11:48:08


Connection to hadoop54.example.com closed.
SSH command execution finished
host=hadoop54.example.com, exitcode=0
Command end time 2016-03-17 11:48:08


==========================
Copying setup script file...
==========================


Command start time 2016-03-17 11:48:08


scp /usr/lib/python2.6/site-packages/ambari_server/setupAgent.py
host=hadoop54.example.com, exitcode=0
Command end time 2016-03-17 11:48:08


==========================
Running setup agent script...
==========================


Command start time 2016-03-17 11:48:08
('INFO 2016-03-17 11:48:16,908 ExitHelper.py:53 - Performing cleanup before exiting...
INFO 2016-03-17 11:48:17,338 main.py:71 - loglevel=logging.INFO
INFO 2016-03-17 11:48:17,338 main.py:71 - loglevel=logging.INFO
INFO 2016-03-17 11:48:17,340 DataCleaner.py:39 - Data cleanup thread started
INFO 2016-03-17 11:48:17,341 DataCleaner.py:120 - Data cleanup started
INFO 2016-03-17 11:48:17,342 DataCleaner.py:122 - Data cleanup finished
INFO 2016-03-17 11:48:17,401 PingPortListener.py:50 - Ping port listener started on port: 8670
INFO 2016-03-17 11:48:17,402 main.py:283 - Connecting to Ambari server at https://hadoop54.example.com:8440 (127.0.0.1)
INFO 2016-03-17 11:48:17,403 NetUtil.py:60 - Connecting to https://hadoop54.example.com:8440/ca
INFO 2016-03-17 11:48:17,516 threadpool.py:52 - Started thread pool with 3 core threads and 20 maximum threads
WARNING 2016-03-17 11:48:17,516 AlertSchedulerHandler.py:243 - [AlertScheduler] /var/lib/ambari-agent/cache/alerts/definitions.json not found or invalid. No alerts will be scheduled until registration occurs.
INFO 2016-03-17 11:48:17,516 AlertSchedulerHandler.py:139 - [AlertScheduler] Starting <ambari_agent.apscheduler.scheduler.Scheduler object at 0x283ea10>; currently running: False
INFO 2016-03-17 11:48:19,521 hostname.py:89 - Read public hostname \'hadoop54.example.com\' using socket.getfqdn()
ERROR 2016-03-17 11:48:19,532 main.py:309 - Fatal exception occurred:
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 306, in <module>
    main(heartbeat_stop_callback)
  File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 297, in main
    ExitHelper.execute_cleanup()
TypeError: unbound method execute_cleanup() must be called with ExitHelper instance as first argument (got nothing instead)
', None)
('INFO 2016-03-17 11:48:16,908 ExitHelper.py:53 - Performing cleanup before exiting...
INFO 2016-03-17 11:48:17,338 main.py:71 - loglevel=logging.INFO
INFO 2016-03-17 11:48:17,338 main.py:71 - loglevel=logging.INFO
INFO 2016-03-17 11:48:17,340 DataCleaner.py:39 - Data cleanup thread started
INFO 2016-03-17 11:48:17,341 DataCleaner.py:120 - Data cleanup started
INFO 2016-03-17 11:48:17,342 DataCleaner.py:122 - Data cleanup finished
INFO 2016-03-17 11:48:17,401 PingPortListener.py:50 - Ping port listener started on port: 8670
INFO 2016-03-17 11:48:17,402 main.py:283 - Connecting to Ambari server at https://hadoop54.example.com:8440 (127.0.0.1)
INFO 2016-03-17 11:48:17,403 NetUtil.py:60 - Connecting to https://hadoop54.example.com:8440/ca
INFO 2016-03-17 11:48:17,516 threadpool.py:52 - Started thread pool with 3 core threads and 20 maximum threads
WARNING 2016-03-17 11:48:17,516 AlertSchedulerHandler.py:243 - [AlertScheduler] /var/lib/ambari-agent/cache/alerts/definitions.json not found or invalid. No alerts will be scheduled until registration occurs.
INFO 2016-03-17 11:48:17,516 AlertSchedulerHandler.py:139 - [AlertScheduler] Starting <ambari_agent.apscheduler.scheduler.Scheduler object at 0x283ea10>; currently running: False
INFO 2016-03-17 11:48:19,521 hostname.py:89 - Read public hostname \'hadoop54.example.com\' using socket.getfqdn()
ERROR 2016-03-17 11:48:19,532 main.py:309 - Fatal exception occurred:
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 306, in <module>
    main(heartbeat_stop_callback)
  File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 297, in main
    ExitHelper.execute_cleanup()
TypeError: unbound method execute_cleanup() must be called with ExitHelper instance as first argument (got nothing instead)
', None)


Connection to hadoop54.example.com closed.
SSH command execution finished
host=hadoop54.example.com, exitcode=0
Command end time 2016-03-17 11:48:20


Registering with the server...
Registration with the server failed.

1 ACCEPTED SOLUTION

avatar
Explorer

Hey,thank both of you.i got it.The character in China is UTF8,and Ambari is ascii.And Python 2.6 for UTF8 has a bug.

View solution in original post

14 REPLIES 14

avatar
Contributor

It will be great to know what was done to fix the issue, I mean to ask what changes were made in which files

avatar
Contributor

@Rock Zhang

Can you explain clearly? How did you fix the issue?

avatar
New Contributor

Could you tell us how you solved this issue? thanks

avatar
New Contributor

Hi, could you tell us how you fixed this issue ?

avatar
New Contributor

Its a firewall issue, added the firewall rule in amabari server and fixed the password less login issue to register the host.