You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2015/04/16 00:36:59 UTC
[jira] [Commented] (AMBARI-10505) Equals predicate does not work
for host component metrics
[ https://issues.apache.org/jira/browse/AMBARI-10505?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14497154#comment-14497154 ]
Hudson commented on AMBARI-10505:
---------------------------------
FAILURE: Integrated in Ambari-trunk-Commit #2327 (See [https://builds.apache.org/job/Ambari-trunk-Commit/2327/])
AMBARI-10505. Equals predicate does not work for host component metrics. (swagle) (swagle: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=f05543d393aed760f49f799a447366d45b3a128b)
* ambari-server/src/test/java/org/apache/ambari/server/api/query/QueryImplTest.java
* ambari-server/src/main/java/org/apache/ambari/server/api/query/QueryImpl.java
> 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)