2017-09-14 72 views
0

我試圖將Ambari 2.1升級到2.5。導致:Ambari升級java.sql.SQLSyntaxErrorException:information_schema中的未知表'hostcomponentstate'

步驟如下:

停止ambari服務器

接過ambari數據庫備份從MySQL數據庫。

Ran 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 

我失去了任何步驟或任何配置需要改變?

回答

0

您可以嘗試先升級到Ambari 2.2 .X

不知道,這麼長的升級路徑完美的作品

相關問題