ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Siddharth Wagle (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (AMBARI-5622) 'Upgrading schema' failed during upgrading to 1.6.0
Date Tue, 29 Apr 2014 21:35:14 GMT

     [ https://issues.apache.org/jira/browse/AMBARI-5622?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Siddharth Wagle resolved AMBARI-5622.
-------------------------------------

    Resolution: Fixed

Committed to trunk.

> 'Upgrading schema' failed during upgrading to 1.6.0
> ---------------------------------------------------
>
>                 Key: AMBARI-5622
>                 URL: https://issues.apache.org/jira/browse/AMBARI-5622
>             Project: Ambari
>          Issue Type: Bug
>          Components: controller
>    Affects Versions: 1.6.0
>            Reporter: Myroslav Papirkovskyy
>            Assignee: Myroslav Papirkovskyy
>            Priority: Blocker
>             Fix For: 1.6.0
>
>
> Postgres issue:
> new restart_required relies on eclipselink default type converters, we avoided this in
past
> {noformat}
> org.postgresql.util.PSQLException: ERROR: column "restart_required" is of type boolean
but expression is of type integer
>   Hint: You will need to rewrite or cast the expression.
>   Position: 57
> 	at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2161)
> 	at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1890)
> 	at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:255)
> 	at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:559)
> 	at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:403)
> 	at org.postgresql.jdbc2.AbstractJdbc2Statement.executeUpdate(AbstractJdbc2Statement.java:331)
> 	at org.apache.ambari.server.orm.DBAccessorImpl.updateTable(DBAccessorImpl.java:447)
> 	at org.apache.ambari.server.orm.DBAccessorImpl.addColumn(DBAccessorImpl.java:371)
> 	at org.apache.ambari.server.upgrade.UpgradeCatalog160.executeDDLUpdates(UpgradeCatalog160.java:72)
> 	at org.apache.ambari.server.upgrade.AbstractUpgradeCatalog.upgradeSchema(AbstractUpgradeCatalog.java:177)
> 	at org.apache.ambari.server.upgrade.SchemaUpgradeHelper.executeUpgrade(SchemaUpgradeHelper.java:176)
> 	at org.apache.ambari.server.upgrade.SchemaUpgradeHelper.main(SchemaUpgradeHelper.java:225)
> {noformat}
> MySQL issue:
> Inreresting MySQL feature, there should be no space between function name and parenthesis
> {noformat}
> 18:57:00,629  WARN [main] DBAccessorImpl:469 - Error executing query: insert into request(request_id,
cluster_id, request_context, start_time, end_time, create_time) select distinct s.request_id,
s.cluster_id, s.request_context, coalesce (cmd.start_time, -1), coalesce (cmd.end_time, -1),
-1 from (select distinct request_id, cluster_id, request_context from stage ) s left join
(select request_id, min(start_time) as start_time, max(end_time) as end_time from host_role_command
group by request_id) cmd on s.request_id=cmd.request_id
> com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: FUNCTION ambari.coalesce does
not exist
>         at sun.reflect.GeneratedConstructorAccessor14.newInstance(Unknown Source)
>         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>         at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
>         at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
>         at com.mysql.jdbc.Util.getInstance(Util.java:386)
>         at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1054)
>         at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4237)
>         at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4169)
>         at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2617)
>         at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2778)
>         at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2828)
>         at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2777)
>         at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:949)
>         at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:795)
>         at org.apache.ambari.server.orm.DBAccessorImpl.executeQuery(DBAccessorImpl.java:466)
>         at org.apache.ambari.server.orm.DBAccessorImpl.executeQuery(DBAccessorImpl.java:452)
>         at org.apache.ambari.server.upgrade.UpgradeCatalog150.executeDDLUpdates(UpgradeCatalog150.java:325)
>         at org.apache.ambari.server.upgrade.AbstractUpgradeCatalog.upgradeSchema(AbstractUpgradeCatalog.java:177)
>         at org.apache.ambari.server.upgrade.SchemaUpgradeHelper.executeUpgrade(SchemaUpgradeHelper.java:176)
>         at org.apache.ambari.server.upgrade.SchemaUpgradeHelper.main(SchemaUpgradeHelper.java:225)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message