ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Risden (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AMBARI-20197) RestMetricsPropertyProvider support nested JSON metrics
Date Sat, 25 Feb 2017 22:42:44 GMT
Kevin Risden created AMBARI-20197:
-------------------------------------

             Summary: RestMetricsPropertyProvider support nested JSON metrics
                 Key: AMBARI-20197
                 URL: https://issues.apache.org/jira/browse/AMBARI-20197
             Project: Ambari
          Issue Type: Bug
    Affects Versions: 2.4.2
            Reporter: Kevin Risden


Attempting to use the RestMetricsPropertyProvider with nested metrics results in a ClassCastException.

{code}
Caused by: java.lang.ClassCastException: com.google.gson.internal.StringMap cannot be cast
to com.google.gson.JsonElement
 	at org.apache.ambari.server.controller.metrics.RestMetricsPropertyProvider.extractValuesFromJSON(RestMetricsPropertyProvider.java:472)
{code}

Based on reading the code, this should be supported by using the # path splitter.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message