You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Siddharth Wagle (JIRA)" <ji...@apache.org> on 2015/04/15 22:15:59 UTC
[jira] [Created] (AMBARI-10505) Equals predicate does not work for
host component metrics
Siddharth Wagle created AMBARI-10505:
----------------------------------------
Summary: Equals predicate does not work for host component metrics
Key: AMBARI-10505
URL: https://issues.apache.org/jira/browse/AMBARI-10505
Project: Ambari
Issue Type: Bug
Components: ambari-server
Affects Versions: 2.1.0
Reporter: Siddharth Wagle
Assignee: Siddharth Wagle
Fix For: 2.1.0
Generally equals predicate works on the host components. For example below API works
{code}
{
"href" : "http://c6401.ambari.apache.org:8080/api/v1/clusters/c1/services/HDFS/components/NAMENODE?host_components/HostRoles/host_name=c6401.ambari.apache.org",
"ServiceComponentInfo" : {
"cluster_name" : "c1",
"component_name" : "NAMENODE",
"service_name" : "HDFS"
},
"host_components" : [
{
"href" : "http://c6401.ambari.apache.org:8080/api/v1/clusters/c1/hosts/c6401.ambari.apache.org/host_components/NAMENODE",
"HostRoles" : {
"cluster_name" : "c1",
"component_name" : "NAMENODE",
"host_name" : "c6401.ambari.apache.org"
}
}
]
}
{code}
*But while using equals predicate with the host_component metrics it is not working.* GET request on following API does not return anything.
{code}
http://c6401.ambari.apache.org:8080/api/v1/clusters/c1/services/HDFS/components/NAMENODE?host_components/metrics/dfs/FSNamesystem/HAState=active
{code}
NOTE: filtering does work for host components metrics i.e below API call works:
{code}http://c6401.ambari.apache.org:8080/api/v1/clusters/c1/services/HDFS/components/NAMENODE?fields=host_components/metrics/dfs/FSNamesystem/HAState
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)