Problems with ambari installation hadoop page
The card failed in registering. Check the log and find that there is an error before registering:
INFO 2016-08-19 15 15 hdp-data1 42 hdp-data1 58149 hostname.py:89-Read public hostname\ 'hdp-data1\' using socket.getfqdn () ERROR 2016-08-19 15 15 15 hdp-data1 58 156 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 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)
This is because ambari is foreign and uses ascii encoding by default. If you use the Chinese version of the operating system, you can add it at the beginning of the / usr/lib/python2.6/site-packages/ambari_agent/main.py file.
Import sys
Reload (sys)
Sys.setdefaultencoding ('utf-8')
And then retry failed it.
Haha, I am more resourceful than others to reinstall the system.