升级Ambari Server失败,出现AttributeError:“ NoneType”对象没有属性“ title”

时间:2018-11-13 07:21:12

标签: ambari hdp

按照本文档,我正在将ambari服务器2.6版升级到2.7版

https://docs.hortonworks.com/HDPDocuments/Ambari-2.7.1.0/bk_ambari-upgrade-major/content/upgrade_ambari.html

在第12步之前,任务可以正常运行。当我运行ambari-server upgrade -v时,会产生此错误:

    INFO: Loading properties from /etc/ambari-server/conf/ambari.properties
Traceback (most recent call last):
  File "/usr/sbin/ambari-server.py", line 1060, in <module>
    mainBody()
  File "/usr/sbin/ambari-server.py", line 1030, in mainBody
    main(options, args, parser)
  File "/usr/sbin/ambari-server.py", line 980, in main
    action_obj.execute()
  File "/usr/sbin/ambari-server.py", line 79, in execute
    self.fn(*self.args, **self.kwargs)
  File "/usr/lib/ambari-server/lib/ambari_server/serverUpgrade.py", line 262, in upgrade
    retcode = run_schema_upgrade(args)
  File "/usr/lib/ambari-server/lib/ambari_server/serverUpgrade.py", line 125, in run_schema_upgrade
    db_title = get_db_type(get_ambari_properties()).title
AttributeError: 'NoneType' object has no attribute 'title'

有人可以帮助我解决这个问题吗?

谢谢。

1 个答案:

答案 0 :(得分:1)

我认为您的/etc/ambari-server/conf/ambari.properties属性文件已损坏或为空。