ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rob Lambert (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-12597) Ambari should support custom stack names
Date Sat, 05 Dec 2015 13:51:10 GMT

    [ https://issues.apache.org/jira/browse/AMBARI-12597?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15043317#comment-15043317
] 

Rob Lambert commented on AMBARI-12597:
--------------------------------------

[~sumitmohanty], Thanks for the clarification. I am unsure if the fixed release '2.3' is again
a typo maybe (I can only hope so).  We'd really love it if this fix makes it in for the upcoming
2.1.3 release, otherwise we are stuck unable to migrate past 1.7.0. Anything we can do to
help get this in there? Just ask.

As I read it, the next release scheduled from the roadmap in December is 2.1.3. At some point
in the future 2.2 is forseen but not yet scheduled, and 2.3 isn't even forseen yet. https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=30755705

Since this is blocker priority already, I guess there is no way to increase the priority,
but we would really appreciate seeing this fix included in the very next upcoming release
(2.1.3), which seems to also come with hundreds of other very useful fixes, and seems to be
on-track for release in December.

Thanks again for your time and help,

Rob

> Ambari should support custom stack names
> ----------------------------------------
>
>                 Key: AMBARI-12597
>                 URL: https://issues.apache.org/jira/browse/AMBARI-12597
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.1.0
>            Reporter: Alejandro Fernandez
>            Assignee: Sumit Mohanty
>            Priority: Blocker
>             Fix For: 2.3.0
>
>         Attachments: AMBARI-12597.patch
>
>
> When upgrading to Ambari 2.1.0, with a custom stack name and version that contains letters,
the Ambari Upgrade will fail, and most likely so will starting services.
> E.g.,
> /var/lib/ambari-server/stacks/HDP/
> 2.2
> 2.2.MYNAME
> If "2.2.MYNAME" is a stack, then the upgrade to Ambari 2.1 will attempt to insert a record
in the stack table. The upgrade will then try to insert appropriate repo_version items, and
then fail when trying to compare versions.
> First error,
> {code}
> 1) Error injecting method, java.lang.NullPointerException
>   at org.apache.ambari.server.api.services.AmbariMetaInfo.init(AmbariMetaInfo.java:242)
>   at org.apache.ambari.server.api.services.AmbariMetaInfo.class(AmbariMetaInfo.java:124)
>   while locating org.apache.ambari.server.api.services.AmbariMetaInfo
> 1 error
> 	at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:987)
> 	at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1013)
> 	at org.apache.ambari.server.upgrade.UpgradeCatalog210.executeStackPreDMLUpdates(UpgradeCatalog210.java:670)
> 	at org.apache.ambari.server.upgrade.UpgradeCatalog210.executePreDMLUpdates(UpgradeCatalog210.java:985)
> 	at org.apache.ambari.server.upgrade.AbstractUpgradeCatalog.preUpgradeData(AbstractUpgradeCatalog.java:531)
> 	at org.apache.ambari.server.upgrade.SchemaUpgradeHelper.executePreDMLUpdates(SchemaUpgradeHelper.java:205)
> 	at org.apache.ambari.server.upgrade.SchemaUpgradeHelper.main(SchemaUpgradeHelper.java:295)
> Caused by: java.lang.NullPointerException
> 	at org.apache.ambari.server.stack.StackModule.processRepositories(StackModule.java:650)
> 	at org.apache.ambari.server.stack.StackModule.resolve(StackModule.java:159)
> 	at org.apache.ambari.server.stack.StackManager.fullyResolveStacks(StackManager.java:201)
> 	at org.apache.ambari.server.stack.StackManager.<init>(StackManager.java:119)
> 	at org.apache.ambari.server.stack.StackManager$$FastClassByGuice$$33e4ffe0.newInstance(<generated>)
> 	at com.google.inject.internal.cglib.reflect.$FastConstructor.newInstance(FastConstructor.java:40)
> 	at com.google.inject.internal.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:60)
> 	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:1031)
> 	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.$Proxy26.create(Unknown Source)
> 	at org.apache.ambari.server.api.services.AmbariMetaInfo.init(AmbariMetaInfo.java:246)
> 	at org.apache.ambari.server.api.services.AmbariMetaInfo$$FastClassByGuice$$202844bc.invoke(<generated>)
> 	at com.google.inject.internal.cglib.reflect.$FastMethod.invoke(FastMethod.java:53)
> 	at com.google.inject.internal.SingleMethodInjector$1.invoke(SingleMethodInjector.java:56)
> 	at com.google.inject.internal.SingleMethodInjector.inject(SingleMethodInjector.java:90)
> 	at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:110)
> 	at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:94)
> 	at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:254)
> 	at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
> 	at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)
> 	at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
> 	at com.google.inject.Scopes$1$1.get(Scopes.java:65)
> 	at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
> 	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)
> 	... 6 more
> {code}
> Next error,
> {code}
> java.lang.NumberFormatException: For input string: "NEA"
>         at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
>         at java.lang.Integer.parseInt(Integer.java:580)
>         at java.lang.Integer.parseInt(Integer.java:615)
>         at org.apache.ambari.server.utils.VersionUtils.compareVersions(VersionUtils.java:76)
>         at org.apache.ambari.server.utils.VersionUtils.compareVersions(VersionUtils.java:136)
>         at org.apache.ambari.server.upgrade.UpgradeCatalog210.removeStormRestApiServiceComponent(UpgradeCatalog210.java:1141)
>         at org.apache.ambari.server.upgrade.UpgradeCatalog210.executeDMLUpdates(UpgradeCatalog210.java:1001)
>         at org.apache.ambari.server.upgrade.AbstractUpgradeCatalog.upgradeData(AbstractUpgradeCatalog.java:536)
>         at org.apache.ambari.server.upgrade.SchemaUpgradeHelper.executeDMLUpdates(SchemaUpgradeHelper.java:220)
>         at org.apache.ambari.server.upgrade.SchemaUpgradeHelper.main(SchemaUpgradeHelper.java:297)
> 30 Jul 2015 22:28:59,105 ERROR [main] SchemaUpgradeHelper:308 - Exception occurred during
upgrade, failed
> org.apache.ambari.server.AmbariException: For input string: "NEA"
>         at org.apache.ambari.server.upgrade.SchemaUpgradeHelper.executeDMLUpdates(SchemaUpgradeHelper.java:223)
>         at org.apache.ambari.server.upgrade.SchemaUpgradeHelper.main(SchemaUpgradeHelper.java:297)
> Caused by: java.lang.NumberFormatException: For input string: "NEA"
>         at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
>         at java.lang.Integer.parseInt(Integer.java:580)
>         at java.lang.Integer.parseInt(Integer.java:615)
>         at org.apache.ambari.server.utils.VersionUtils.compareVersions(VersionUtils.java:76)
>         at org.apache.ambari.server.utils.VersionUtils.compareVersions(VersionUtils.java:136)
>         at org.apache.ambari.server.upgrade.UpgradeCatalog210.removeStormRestApiServiceComponent(UpgradeCatalog210.java:1141)
>         at org.apache.ambari.server.upgrade.UpgradeCatalog210.executeDMLUpdates(UpgradeCatalog210.java:1001)
>         at org.apache.ambari.server.upgrade.AbstractUpgradeCatalog.upgradeData(AbstractUpgradeCatalog.java:536)
>         at org.apache.ambari.server.upgrade.SchemaUpgradeHelper.executeDMLUpdates(SchemaUpgradeHelper.java:220)
>         ... 1 more
> {code}



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

Mime
View raw message