You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by Vitalyi Brodetskyi <vb...@hortonworks.com> on 2014/09/22 18:58:55 UTC

Review Request 25896: Slider View: access deep within view instance after ambari-server restarted it throws error

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

Review request for Ambari and Srimanth Gunturi.


Bugs: AMBARI-7436
    https://issues.apache.org/jira/browse/AMBARI-7436


Repository: ambari


Description
-------

Tried to access - 

{noformat}
http://c6401.ambari.apache.org:8080/api/v1/views/SLIDER/versions/1.0.0/instances/SLIDER_1/apps/1401255963540_3

{
"status": 500,
"message": "org.apache.ambari.server.controller.spi.SystemException: Failed to load class: [org.apache.hadoop.yarn.api.records.impl.pb.ApplicationIdPBImpl]"
}
{noformat}

Then moved back to access view instance.
{noformat}
http://c6401.ambari.apache.org:8080/api/v1/views/SLIDER/versions/1.0.0/instances/SLIDER_1

{
"status": 500,
"message": "org.apache.ambari.server.controller.spi.SystemException: Failed to load class: [org.apache.hadoop.yarn.api.protocolrecords.impl.pb.GetApplicationsRequestPBImpl]"
}
{noformat}

Only way to get out of this is to restart ambari-server. 

If I start accessing from view list onwards - e.g. start with http://c6401.ambari.apache.org:8080/api/v1/views/SLIDER/versions/1.0.0 and then go to view instance and then resources within the instance then everything works fine.


Diffs
-----

  contrib/views/slider/src/main/java/org/apache/ambari/view/slider/SliderAppsViewControllerImpl.java ef11cfa 

Diff: https://reviews.apache.org/r/25896/diff/


Testing
-------

mvn clean test


Thanks,

Vitalyi Brodetskyi