卡在登记失败,查看日志发现注册前有报错:
INFO 2016 - 08 - 19, 15:42:58,149 hostname.py: 89年,安康;Read public hostname \“hdp-data1 \”, using socket.getfqdn () ERROR 2016 - 08 - 19, 15:42:58,156 main.py: 309年,安康;Fatal exception 发生: Traceback (most recent call 最后一个): File 才能;“/usr/lib/python2.6/网站/ambari_agent/main.py”,, line 306年,拷贝& lt; module> ,,,主要(heartbeat_stop_callback) File 才能;“/usr/lib/python2.6/网站/ambari_agent/main.py”,, line 297年,主拷贝 ,,,ExitHelper.execute_cleanup () TypeError: unbound method  execute_cleanup (), must be nbsp; with ExitHelper instance as first argument (got nothing 相反) ”,None)
这是因为洋麻他吗是国外的,默认用的ascii编码,如果你用的中文版操作系统,可以在/usr/lib/python2.6/网站/ambari_agent/主要。py文件开头添加
进口sys
重载(sys)
sys.setdefaultencoding (utf - 8)
然后再重试失败就可以了
哈哈,相比别人重装系统,我还是比较机智的。