【问题标题】:Caused by:Ambari Upgradation java.sql.SQLSyntaxErrorException: Unknown table 'hostcomponentstate' in information_schema引起:Ambari 升级 java.sql.SQLSyntaxErrorException:信息架构中的未知表 'hostcomponentstate'
【发布时间】:2017-09-14 09:54:03
【问题描述】:

我正在尝试将 Ambari 2.1 升级到 2.5。

接下来的步骤:

已停止 ambari 服务器

从 MySql 数据库中备份了 ambari 数据库。

运行 ambari-server 升级。

我收到此 SQL 错误,

Exception in thread "main" org.apache.ambari.server.AmbariException: Unknown table 'hostcomponentstate' in information_schema
    at org.apache.ambari.server.upgrade.SchemaUpgradeHelper.executeUpgrade(SchemaUpgradeHelper.java:212)
    at org.apache.ambari.server.upgrade.SchemaUpgradeHelper.main(SchemaUpgradeHelper.java:427)
Caused by: java.sql.SQLSyntaxErrorException: Unknown table 'hostcomponentstate' in information_schema
    at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:536)
    at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:513)
    at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:115)
    at com.mysql.cj.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:1983)
    at com.mysql.cj.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:1936)
    at com.mysql.cj.jdbc.StatementImpl.executeQuery(StatementImpl.java:1422)
    at com.mysql.cj.jdbc.DatabaseMetaData$7.forEach(DatabaseMetaData.java:3182)
    at com.mysql.cj.jdbc.DatabaseMetaData$7.forEach(DatabaseMetaData.java:3170)
    at com.mysql.cj.jdbc.IterateBlock.doForAll(IterateBlock.java:50)
    at com.mysql.cj.jdbc.DatabaseMetaData.getPrimaryKeys(DatabaseMetaData.java:3223)
    at org.apache.ambari.server.orm.DBAccessorImpl.tableHasPrimaryKey(DBAccessorImpl.java:1082)
    at org.apache.ambari.server.upgrade.UpgradeCatalog211.executeHostComponentStateDDLUpdates(UpgradeCatalog211.java:204)
    at org.apache.ambari.server.upgrade.UpgradeCatalog211.executeDDLUpdates(UpgradeCatalog211.java:108)
    at org.apache.ambari.server.upgrade.AbstractUpgradeCatalog.upgradeSchema(AbstractUpgradeCatalog.java:925)
    at org.apache.ambari.server.upgrade.SchemaUpgradeHelper.executeUpgrade(SchemaUpgradeHelper.java:209)
    ... 1 more

我是否遗漏了任何步骤或需要进行任何配置更改?

【问题讨论】:

    标签: linux apache ambari


    【解决方案1】:

    您可以尝试先升级到 Ambari 2.2.x

    不确定这么长的升级路径能否完美运行

    【讨论】:

      猜你喜欢
      • 2020-06-19
      • 1970-01-01
      • 2021-11-30
      • 1970-01-01
      • 2015-02-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多