Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Problems with ambari installation hadoop page

Shulou Source: shulou.com Published: 2022-06-03 02:28:17 10月03日 Update

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.

Tags: System wit operating system Chinese version beginning file log code or is this Chinese question page Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft NVidia Shulou Tech Info Huawei OPPO Reno