You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Tom Beerbower (JIRA)" <ji...@apache.org> on 2013/10/28 20:54:30 UTC
[jira] [Commented] (AMBARI-3604) Components in API should have
'category' field
[ https://issues.apache.org/jira/browse/AMBARI-3604?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13807158#comment-13807158 ]
Tom Beerbower commented on AMBARI-3604:
---------------------------------------
Exposing a new property on the component resource ...
* ServiceComponentInfo/category
It has the following possible values
# MASTER
# SLAVE
# CLIENT
You can query for all MASTER components like this ...
{code}
api/v1/clusters/c1/components/?ServiceComponentInfo/category=MASTER
{code}
You can query for all of the master components, and their host component jvm heap metrics like this ...
{code}
api/v1/clusters/c1/components/?ServiceComponentInfo/category=MASTER&fields=ServiceComponentInfo,host_components,host_components/HostRoles,host_components/metrics/jvm/memHeapUsedM
{code}
> Components in API should have 'category' field
> ----------------------------------------------
>
> Key: AMBARI-3604
> URL: https://issues.apache.org/jira/browse/AMBARI-3604
> Project: Ambari
> Issue Type: Bug
> Reporter: Tom Beerbower
> Assignee: Tom Beerbower
>
> Ambari UI when loading services, loads *all* host-components to get service specific metrics, which is available only on master host-components. Loading of client/worker host-components is not needed on dashboard and services pages.
> Hence in API we need a {{type}} field on host_components. This should indicate whether the host_component is master/worker/client/other type. Also, this field should be query-able.
> So the below query should give me services with their master host-components, and their jvm heap metrics.
> {code}
> http://162.216.149.155:8080/api/v1/clusters/ga/services?components/host_components/HostRoles/type=master&fields=components/ServiceComponentInfo,components/host_components,components/host_components/HostRoles,components/host_components/metrics/jvm/memHeapUsedM
> {code}
--
This message was sent by Atlassian JIRA
(v6.1#6144)