You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by Andrew Onischuk <ao...@hortonworks.com> on 2015/06/20 18:27:15 UTC

Review Request 35693: Ambari Upgrade: failed 2.0.1 -> 2.1.0

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/35693/
-----------------------------------------------------------

Review request for Ambari and Myroslav Papirkovskyy.


Bugs: AMBARI-12045
    https://issues.apache.org/jira/browse/AMBARI-12045


Repository: ambari


Description
-------

Build #1166

  * Ambari 2.0.1 + mysql database
  * Attempted upgrade to ambari to 2.1.0, failed
    
    
    
    [root@c6401 yum.repos.d]# ambari-server upgrade
    Using python  /usr/bin/python2.6
    Upgrading ambari-server
    Updating properties in ambari.properties ...
    Fixing database objects owner
    Upgrading database schema
    ERROR: Error executing schema upgrade, please check the server logs.
    ERROR: Ambari server upgrade failed. Please look at /var/log/ambari-server/ambari-server.log, for more details.
    ERROR: Exiting with exit code 11. 
    REASON: Schema upgrade failed.
    
    
    
    
    19 Jun 2015 19:38:11,243  INFO [main] MLog:80 - MLog clients using log4j logging.
    19 Jun 2015 19:38:11,386  INFO [main] C3P0Registry:204 - Initializing c3p0-0.9.1.1 [built 15-March-2007 01:32:31; debug? true; trace: 10]
    19 Jun 2015 19:38:14,407  INFO [main] ControllerModule:558 - Binding and registering notification dispatcher class org.apache.ambari.server.notifications.dispatchers.AlertScriptDispatcher
    19 Jun 2015 19:38:14,426  INFO [main] ControllerModule:558 - Binding and registering notification dispatcher class org.apache.ambari.server.notifications.dispatchers.EmailDispatcher
    19 Jun 2015 19:38:14,542  INFO [main] ControllerModule:558 - Binding and registering notification dispatcher class org.apache.ambari.server.notifications.dispatchers.SNMPDispatcher
    19 Jun 2015 19:38:18,895  INFO [main] SchemaUpgradeHelper:263 - Upgrading schema to target version = 2.1.0
    19 Jun 2015 19:38:18,903 ERROR [main] SchemaUpgradeHelper:297 - Unexpected error, upgrade failed
    java.lang.AbstractMethodError: com.mysql.jdbc.StatementImpl.closeOnCompletion()V
    	at org.apache.ambari.server.orm.DBAccessorImpl.executeSelect(DBAccessorImpl.java:666)
    	at org.apache.ambari.server.upgrade.SchemaUpgradeHelper.readSourceVersion(SchemaUpgradeHelper.java:77)
    	at org.apache.ambari.server.upgrade.SchemaUpgradeHelper.main(SchemaUpgradeHelper.java:271)


Diffs
-----

  ambari-server/src/main/java/org/apache/ambari/server/orm/DBAccessorImpl.java 6e31eee 

Diff: https://reviews.apache.org/r/35693/diff/


Testing
-------

mvn clean test


Thanks,

Andrew Onischuk


Re: Review Request 35693: Ambari Upgrade: failed 2.0.1 -> 2.1.0

Posted by Mahadev Konar <ma...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/35693/#review88653
-----------------------------------------------------------

Ship it!


Ship It!

- Mahadev Konar


On June 20, 2015, 4:27 p.m., Andrew Onischuk wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/35693/
> -----------------------------------------------------------
> 
> (Updated June 20, 2015, 4:27 p.m.)
> 
> 
> Review request for Ambari and Myroslav Papirkovskyy.
> 
> 
> Bugs: AMBARI-12045
>     https://issues.apache.org/jira/browse/AMBARI-12045
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> Build #1166
> 
>   * Ambari 2.0.1 + mysql database
>   * Attempted upgrade to ambari to 2.1.0, failed
>     
>     
>     
>     [root@c6401 yum.repos.d]# ambari-server upgrade
>     Using python  /usr/bin/python2.6
>     Upgrading ambari-server
>     Updating properties in ambari.properties ...
>     Fixing database objects owner
>     Upgrading database schema
>     ERROR: Error executing schema upgrade, please check the server logs.
>     ERROR: Ambari server upgrade failed. Please look at /var/log/ambari-server/ambari-server.log, for more details.
>     ERROR: Exiting with exit code 11. 
>     REASON: Schema upgrade failed.
>     
>     
>     
>     
>     19 Jun 2015 19:38:11,243  INFO [main] MLog:80 - MLog clients using log4j logging.
>     19 Jun 2015 19:38:11,386  INFO [main] C3P0Registry:204 - Initializing c3p0-0.9.1.1 [built 15-March-2007 01:32:31; debug? true; trace: 10]
>     19 Jun 2015 19:38:14,407  INFO [main] ControllerModule:558 - Binding and registering notification dispatcher class org.apache.ambari.server.notifications.dispatchers.AlertScriptDispatcher
>     19 Jun 2015 19:38:14,426  INFO [main] ControllerModule:558 - Binding and registering notification dispatcher class org.apache.ambari.server.notifications.dispatchers.EmailDispatcher
>     19 Jun 2015 19:38:14,542  INFO [main] ControllerModule:558 - Binding and registering notification dispatcher class org.apache.ambari.server.notifications.dispatchers.SNMPDispatcher
>     19 Jun 2015 19:38:18,895  INFO [main] SchemaUpgradeHelper:263 - Upgrading schema to target version = 2.1.0
>     19 Jun 2015 19:38:18,903 ERROR [main] SchemaUpgradeHelper:297 - Unexpected error, upgrade failed
>     java.lang.AbstractMethodError: com.mysql.jdbc.StatementImpl.closeOnCompletion()V
>     	at org.apache.ambari.server.orm.DBAccessorImpl.executeSelect(DBAccessorImpl.java:666)
>     	at org.apache.ambari.server.upgrade.SchemaUpgradeHelper.readSourceVersion(SchemaUpgradeHelper.java:77)
>     	at org.apache.ambari.server.upgrade.SchemaUpgradeHelper.main(SchemaUpgradeHelper.java:271)
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/java/org/apache/ambari/server/orm/DBAccessorImpl.java 6e31eee 
> 
> Diff: https://reviews.apache.org/r/35693/diff/
> 
> 
> Testing
> -------
> 
> mvn clean test
> 
> 
> Thanks,
> 
> Andrew Onischuk
> 
>