ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitry Lysnichenko (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMBARI-11103) Ambari Upgrade from 2.0.0 to 2.1.0 fails due to StackEntity
Date Wed, 13 May 2015 12:35:59 GMT

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

Dmitry Lysnichenko updated AMBARI-11103:
----------------------------------------
    Attachment: AMBARI-11103.patch

> Ambari Upgrade from 2.0.0 to 2.1.0 fails due to StackEntity
> -----------------------------------------------------------
>
>                 Key: AMBARI-11103
>                 URL: https://issues.apache.org/jira/browse/AMBARI-11103
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>            Reporter: Dmitry Lysnichenko
>            Assignee: Dmitry Lysnichenko
>             Fix For: 2.1.0
>
>         Attachments: AMBARI-11103.patch
>
>
> Upgrade Ambari 2.0.0 to 2.1.0 and it fails while executing data transformations.
> See attached database.
> ClusterImpl.java:265
> {code}
> desiredStackVersion = new StackId(clusterEntity.getDesiredStack());
> {code}
> StackId.java:50
> {code}
>   public StackId(StackEntity stackEntity) {
>     this(stackEntity.getStackName(), stackEntity.getStackVersion());
>   }
> {code}
> {code}
> 24 Apr 2015 01:35:58,493 ERROR [main] SchemaUpgradeHelper:231 - Upgrade failed.
> java.lang.NullPointerException
>         at org.apache.ambari.server.state.StackId.<init>(StackId.java:50)
>         at org.apache.ambari.server.state.cluster.ClusterImpl.<init>(ClusterImpl.java:265)
>         at org.apache.ambari.server.state.cluster.ClusterImpl$$EnhancerByGuice$$9616e406.<init>(<generated>)
>         at org.apache.ambari.server.state.cluster.ClusterImpl$$EnhancerByGuice$$9616e406$$FastClassByGuice$$89b410a5.newInstance(<generated>)
>         at com.google.inject.internal.cglib.reflect.$FastConstructor.newInstance(FastConstructor.java:40)
>         at com.google.inject.internal.ProxyFactory$ProxyConstructor.newInstance(ProxyFactory.java:260)
>         at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:85)
>         at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:254)
>         at com.google.inject.internal.InjectorImpl$4$1.call(InjectorImpl.java:978)
>         at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1024)
>         at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:974)
>         at com.google.inject.assistedinject.FactoryProvider2.invoke(FactoryProvider2.java:632)
>         at com.sun.proxy.$Proxy10.create(Unknown Source)
>         at org.apache.ambari.server.state.cluster.ClustersImpl.loadClustersAndHosts(ClustersImpl.java:168)
>         at org.apache.ambari.server.state.cluster.ClustersImpl.checkLoaded(ClustersImpl.java:157)
>         at org.apache.ambari.server.state.cluster.ClustersImpl.getClusters(ClustersImpl.java:568)
>         at org.apache.ambari.server.upgrade.AbstractUpgradeCatalog.addNewConfigurationsFromXml(AbstractUpgradeCatalog.java:186)
>         at org.apache.ambari.server.upgrade.UpgradeCatalog210.executeDMLUpdates(UpgradeCatalog210.java:692)
>         at org.apache.ambari.server.upgrade.AbstractUpgradeCatalog.upgradeData(AbstractUpgradeCatalog.java:381)
>         at org.apache.ambari.server.upgrade.SchemaUpgradeHelper.executeDMLUpdates(SchemaUpgradeHelper.java:229)
>         at org.apache.ambari.server.upgrade.SchemaUpgradeHelper.main(SchemaUpgradeHelper.java:297)
> 24 Apr 2015 01:35:58,497 ERROR [main] SchemaUpgradeHelper:308 - Exception occurred during
upgrade, failed
> org.apache.ambari.server.AmbariException
>         at org.apache.ambari.server.upgrade.SchemaUpgradeHelper.executeDMLUpdates(SchemaUpgradeHelper.java:232)
>         at org.apache.ambari.server.upgrade.SchemaUpgradeHelper.main(SchemaUpgradeHelper.java:297)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message