ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hadoop QA (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-12949) Downgrade fails with err: 500 status code received on POST method for API: /api/vi/clusters/mycluster/upgrades
Date Thu, 10 Sep 2015 20:46:45 GMT

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

Hadoop QA commented on AMBARI-12949:
------------------------------------

{color:red}-1 overall{color}.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12755183/AMBARI-12949.patch
  against trunk revision .

    {color:red}-1 patch{color}.  Top-level trunk compilation may be broken.

Console output: https://builds.apache.org/job/Ambari-trunk-test-patch/3763//console

This message is automatically generated.

> Downgrade fails with err: 500 status code received on POST method for API: /api/vi/clusters/mycluster/upgrades
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: AMBARI-12949
>                 URL: https://issues.apache.org/jira/browse/AMBARI-12949
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.1.0
>            Reporter: Di Li
>            Assignee: Di Li
>            Priority: Critical
>             Fix For: trunk
>
>         Attachments: AMBARI-12949.patch
>
>
> I have a 4 node HDP 2.2 cluster where I created a configuration group to apply customized
oozie_heap_size to the Oozie server and one of the Oozie client. I was able to rolling upgrade
the cluster to HDP 2.3, but when I clicked Downgrade button on the Finalize step. The Ambari
UI immediately threw error message "500 status code received on POST method for API: /api/vi/clusters/mycluster/upgrades"
> Checking the Ambari server log, it reported a nullpointer error when trying to load the
designed configurations
> Aug 30, 2015 11:01:07 PM com.sun.jersey.spi.container.ContainerResponse mapMappableContainerException
> SEVERE: The RuntimeException could not be mapped to a response, re-throwing to the HTTP
container
> java.lang.NullPointerException
>         at org.apache.ambari.server.state.host.HostImpl.getDesiredHostConfigs(HostImpl.java:1349)
> Digging around in the database, I saw that the oozie-env (where I had a configuration
group) had no version_tag set with "selected" as 1.
> Manually setting the version1 row to have selected = 1, restart server and then I was
able to run downgrade. However, the downgrade failed to mark itself as finished, and my Ambari
WEB UI remained in this "Downgrade:Aborted" state and I can't restart components anymore (as
in most of the UI features are disabled as the UI still thinks it's in the middle of an downgrade).
> ambari=> select * from clusterconfigmapping  where type_name = 'oozie-env';
>  cluster_id | type_name |     version_tag      | create_timestamp | selected |   user_name
> ------------+-----------+----------------------+------------------+----------+----------------
>           2 | oozie-env | version1             |    1441033897383 |        0 | admin
>           2 | oozie-env | version1441037586550 |    1441037586592 |        0 | ambari-upgrade
>           2 | oozie-env | version1441039514060 |    1441039516239 |        0 | admin
> (3 rows)



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

Mime
View raw message