ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmytro Sen" <d...@hortonworks.com>
Subject Re: Review Request 35388: Upgrade: error w/ ambari-server upgrade widgets
Date Fri, 12 Jun 2015 14:22:21 GMT

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

Ship it!


Ship It!

- Dmytro Sen


On Июнь 12, 2015, 2:20 п.п., Vitalyi Brodetskyi wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/35388/
> -----------------------------------------------------------
> 
> (Updated Июнь 12, 2015, 2:20 п.п.)
> 
> 
> Review request for Ambari and Dmytro Sen.
> 
> 
> Bugs: AMBARI-11884
>     https://issues.apache.org/jira/browse/AMBARI-11884
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> - Ambari 2.0.1 (embedded postgres), ambari-server non-root
> - installed hdp 2.2.6 cluster
> - upgraded to ambari 2.1.0 build #2081
> - "ambari-server upgrade" fails, exception in ambari-server.log
> 
> {code}
> [root@c6402 conf]# 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.
> {code}
> 
> {code}
> Cluster' changed by: 'ambari-upgrade'; type='hadoop-env' tag='version1433989511704' from='version1'
> 11 Jun 2015 02:25:11,796  INFO [main] AbstractUpgradeCatalog:347 - Applying configuration
with tag 'version1433989511796' to cluster 'MyCluster'
> 11 Jun 2015 02:25:11,866  INFO [main] AbstractUpgradeCatalog:363 - cluster 'MyCluster'
changed by: 'ambari-upgrade'; type='core-site' tag='version1433989511796' from='version1'
> 11 Jun 2015 02:25:11,898 ERROR [main] SchemaUpgradeHelper:214 - Upgrade failed. 
> org.apache.ambari.server.AmbariException: Error creating stack widget artifacts. Cluster:
MyCluster
> 	at org.apache.ambari.server.controller.AmbariManagementControllerImpl.initializeWidgetsAndLayouts(AmbariManagementControllerImpl.java:4104)
> 	at org.apache.ambari.server.upgrade.UpgradeCatalog210.initializeClusterAndServiceWidgets(UpgradeCatalog210.java:747)
> 	at org.apache.ambari.server.upgrade.UpgradeCatalog210.executeDMLUpdates(UpgradeCatalog210.java:899)
> 	at org.apache.ambari.server.upgrade.AbstractUpgradeCatalog.upgradeData(AbstractUpgradeCatalog.java:433)
> 	at org.apache.ambari.server.upgrade.SchemaUpgradeHelper.executeDMLUpdates(SchemaUpgradeHelper.java:212)
> 	at org.apache.ambari.server.upgrade.SchemaUpgradeHelper.main(SchemaUpgradeHelper.java:280)
> Caused by: java.lang.IllegalArgumentException: Can not refresh not managed object: org.apache.ambari.server.orm.entities.WidgetLayoutEntity@1.
> 	at org.eclipse.persistence.internal.jpa.EntityManagerImpl.refresh(EntityManagerImpl.java:1024)
> 	at org.eclipse.persistence.internal.jpa.EntityManagerImpl.refresh(EntityManagerImpl.java:929)
> 	at org.apache.ambari.server.orm.dao.WidgetLayoutDAO.refresh(WidgetLayoutDAO.java:118)
> 	at org.apache.ambari.server.orm.AmbariJpaLocalTxnInterceptor.invoke(AmbariJpaLocalTxnInterceptor.java:68)
> 	at org.apache.ambari.server.controller.AmbariManagementControllerImpl.createWidgetsAndLayouts(AmbariManagementControllerImpl.java:4192)
> 	at org.apache.ambari.server.controller.AmbariManagementControllerImpl.initializeWidgetsAndLayouts(AmbariManagementControllerImpl.java:4100)
> 	... 5 more
> 11 Jun 2015 02:25:11,901 ERROR [main] SchemaUpgradeHelper:291 - Exception occurred during
upgrade, failed
> org.apache.ambari.server.AmbariException: Error creating stack widget artifacts. Cluster:
MyCluster
> 	at org.apache.ambari.server.upgrade.SchemaUpgradeHelper.executeDMLUpdates(SchemaUpgradeHelper.java:215)
> 	at org.apache.ambari.server.upgrade.SchemaUpgradeHelper.main(SchemaUpgradeHelper.java:280)
> Caused by: org.apache.ambari.server.AmbariException: Error creating stack widget artifacts.
Cluster: MyCluster
> 	at org.apache.ambari.server.controller.AmbariManagementControllerImpl.initializeWidgetsAndLayouts(AmbariManagementControllerImpl.java:4104)
> 	at org.apache.ambari.server.upgrade.UpgradeCatalog210.initializeClusterAndServiceWidgets(UpgradeCatalog210.java:747)
> 	at org.apache.ambari.server.upgrade.UpgradeCatalog210.executeDMLUpdates(UpgradeCatalog210.java:899)
> 	at org.apache.ambari.server.upgrade.AbstractUpgradeCatalog.upgradeData(AbstractUpgradeCatalog.java:433)
> 	at org.apache.ambari.server.upgrade.SchemaUpgradeHelper.executeDMLUpdates(SchemaUpgradeHelper.java:212)
> 	... 1 more
> Caused by: java.lang.IllegalArgumentException: Can not refresh not managed object: org.apache.ambari.server.orm.entities.WidgetLayoutEntity@1.
> 	at org.eclipse.persistence.internal.jpa.EntityManagerImpl.refresh(EntityManagerImpl.java:1024)
> 	at org.eclipse.persistence.internal.jpa.EntityManagerImpl.refresh(EntityManagerImpl.java:929)
> 	at org.apache.ambari.server.orm.dao.WidgetLayoutDAO.refresh(WidgetLayoutDAO.java:118)
> 	at org.apache.ambari.server.orm.AmbariJpaLocalTxnInterceptor.invoke(AmbariJpaLocalTxnInterceptor.java:68)
> 	at org.apache.ambari.server.controller.AmbariManagementControllerImpl.createWidgetsAndLayouts(AmbariManagementControllerImpl.java:4192)
> 	at org.apache.ambari.server.controller.AmbariManagementControllerImpl.initializeWidgetsAndLayouts(AmbariManagementControllerImpl.java:4100)
> 	... 5 more
> {code}
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariManagementControllerImpl.java
4a7e305 
>   ambari-server/src/main/java/org/apache/ambari/server/orm/dao/WidgetLayoutDAO.java 5e794a7

> 
> Diff: https://reviews.apache.org/r/35388/diff/
> 
> 
> Testing
> -------
> 
> mvn clean test
> 
> 
> Thanks,
> 
> Vitalyi Brodetskyi
> 
>


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message