ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alejandro Fernandez (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMBARI-13418) Stop-and-Start Upgrade: Upgrade START call cannot find upgrade pack to use
Date Wed, 14 Oct 2015 02:44:05 GMT

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

Alejandro Fernandez updated AMBARI-13418:
-----------------------------------------
    Attachment: AMBARI-13418.patch

> Stop-and-Start Upgrade: Upgrade START call cannot find upgrade pack to use
> --------------------------------------------------------------------------
>
>                 Key: AMBARI-13418
>                 URL: https://issues.apache.org/jira/browse/AMBARI-13418
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.1.3
>            Reporter: Alejandro Fernandez
>            Assignee: Alejandro Fernandez
>             Fix For: 2.1.3
>
>         Attachments: AMBARI-13418.patch
>
>
> Make the following call to start upgrade, the response is 500 server error
> {code}
> POST  http://c6401.ambari.apache.org:8080/api/v1/clusters/c123/upgrades
> {"Upgrade":{
> "repository_version":"2.3.4.0-2984",
> "type":"NON-ROLLING",
> "skip_failures":true,
> "skip_service_check_failures":null
> }}
> {code} 
> Server log error:
> {code}
> 13 Oct 2015 01:59:30,460 ERROR [qtp-client-26] BaseManagementHandler:66 - Caught a runtime
exception while attempting to create a resource
> java.lang.ClassCastException: org.apache.ambari.server.state.stack.upgrade.RestartGrouping
cannot be cast to org.apache.ambari.server.state.stack.upgrade.Task
>         at org.apache.ambari.server.state.stack.upgrade.Grouping$DefaultBuilder.add(Grouping.java:111)
>         at org.apache.ambari.server.state.UpgradeHelper.createSequence(UpgradeHelper.java:383)
>         at org.apache.ambari.server.controller.internal.UpgradeResourceProvider.createUpgrade(UpgradeResourceProvider.java:672)
>         at org.apache.ambari.server.controller.internal.UpgradeResourceProvider.access$100(UpgradeResourceProvider.java:117)
>         at org.apache.ambari.server.controller.internal.UpgradeResourceProvider$1.invoke(UpgradeResourceProvider.java:291)
>         at org.apache.ambari.server.controller.internal.UpgradeResourceProvider$1.invoke(UpgradeResourceProvider.java:281)
>         at org.apache.ambari.server.controller.internal.AbstractResourceProvider.createResources(AbstractResourceProvider.java:272)
>         at org.apache.ambari.server.controller.internal.UpgradeResourceProvider.createResources(UpgradeResourceProvider.java:281)
>         at org.apache.ambari.server.controller.internal.ClusterControllerImpl.createResources(ClusterControllerImpl.java:289)
>         at org.apache.ambari.server.api.services.persistence.PersistenceManagerImpl.create(PersistenceManagerImpl.java:76)
>         at org.apache.ambari.server.api.handlers.CreateHandler.persist(CreateHandler.java:36)
>         at org.apache.ambari.server.api.handlers.BaseManagementHandler.handleRequest(BaseManagementHandler.java:72)
>         at org.apache.ambari.server.api.services.BaseRequest.process(BaseRequest.java:135)
>         at org.apache.ambari.server.api.services.BaseService.handleRequest(BaseService.java:105)
>         at org.apache.ambari.server.api.services.BaseService.handleRequest(BaseService.java:74)
>         at org.apache.ambari.server.api.services.UpgradeService.createUpgrade(UpgradeService.java:58)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:497)
>         at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
>         at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)
>         at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
>         at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)
> {code}
>  ambari-server --hash
> 259ee9807e5f41d91aeb9d746a5267881ff2d5c8



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

Mime
View raw message