org.apache.ambari.server.HostNotFoundException: Host not found, hostname

====================

ambari-agent报错


INFO 2017-03-06 16:11:16,949 hostname.py:89 - Read public hostname 'centos2' using socket.getfqdn()
ERROR 2017-03-06 16:11:17,374 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)
INFO 2017-03-06 16:53:49,684 main.py:71 - loglevel=logging.INFO
INFO 2017-03-06 16:53:49,685 main.py:71 - loglevel=logging.INFO
ERROR 2017-03-06 16:53:54,966 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 242, in main
    stop_agent()
  File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 189, in stop_agent
    sys.exit(1)
SystemExit: 1
INFO 2017-03-06 16:53:54,970 ExitHelper.py:53 - Performing cleanup before exiting...


====================

ambari-server报错

org.apache.ambari.server.controller.spi.SystemException: An internal system exception occurred: Host not found, hostname=centos2.bigdata.com

Caused by: org.apache.ambari.server.HostNotFoundException: Host not found, hostname=centos2.bigdata.com



==========================

折腾了好久,原来是因为centos7系统中了中文,python对中文支持度不好,所以把系统改为英文就可以了,centos7有界面,直接在设置中改language为英文

你可能感兴趣的:(hadoop)