incubator-ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Ratay (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-1526) State fields are not returned by default for services
Date Thu, 28 Feb 2013 23:55:13 GMT

    [ https://issues.apache.org/jira/browse/AMBARI-1526?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13590075#comment-13590075
] 

Steve Ratay commented on AMBARI-1526:
-------------------------------------

Issue #1 – The state field is missing for the services
HDP-1.2.2:
http://<host>/api/v1/clusters?fields=services/ServiceInfo
{
  "href" : "http://<host>/api/v1/clusters?fields=services/ServiceInfo",
  "items" : [
    {
      "href" : "http://<host>/api/v1/clusters/<host>",
      "Clusters" : {
        "cluster_name" : "<host>",
        "version" : "HDP-1.2.2"
      },
      "services" : [
        {
          "href" : "http://<host>/api/v1/clusters/<host>/services/HCATALOG",
          "ServiceInfo" : {
            "cluster_name" : "<host>",
            "service_name" : "HCATALOG"
          }
        },
        {
          "href" : "http://<host>/api/v1/clusters/<host>/services/SQOOP",
          "ServiceInfo" : {
            "cluster_name" : "<host>",
            "service_name" : "SQOOP"
          }
        },
 
HDP-1.2.0:
http://<host>/api/v1/clusters?fields=services/ServiceInfo
{
  "href" : "http://<host>/api/v1/clusters?fields=services/ServiceInfo",
  "items" : [
    {
      "href" : "http://<host>/api/v1/clusters/<host>",
      "Clusters" : {
        "cluster_name" : "<host>",
        "version" : "HDP-1.2.0"
      },
      "services" : [
        {
          "href" : "http://<host>/api/v1/clusters/<host>/services/NAGIOS",
          "ServiceInfo" : {
            "cluster_name" : "<host>",
            "state" : "STARTED",
            "service_name" : "NAGIOS"
          }
        },
        {
          "href" : "http://<host>/api/v1/clusters/<host>/services/HBASE",
          "ServiceInfo" : {
            "cluster_name" : "<host>",
            "state" : "STARTED",
            "service_name" : "HBASE"
          }
        },
 
 
Issue #2 – The states are also missing for the host_component APIs
HDP 1.2.2:
http://<host>/api/v1/clusters?fields=hosts/host_components/HostRoles,hosts/host_components/component
{
  "href" : "http://<host>/api/v1/clusters?fields=hosts/host_components/HostRoles,hosts/host_components/component",
  "items" : [
    {
      "href" : "http://<host>/api/v1/clusters/<host>",
      "Clusters" : {
        "cluster_name" : "<host>",
        "version" : "HDP-1.2.2"
      },
      "hosts" : [
        {
          "href" : "http://<host>/api/v1/clusters/<host>/hosts/<host>",
          "Hosts" : {
            "cluster_name" : "<host>",
            "host_name" : "<host>"
          },
          "host_components" : [
            {
              "href" : "http://<host>/api/v1/clusters/<host>/hosts/<host>/host_components/DATANODE",
              "HostRoles" : {
                "cluster_name" : "<host>",
                "component_name" : "DATANODE",
                "service_name" : "HDFS",
                "host_name" : "<host>"
              },
              "component" : [
                {
                  "href" : "http://<host>/api/v1/clusters/<host>/services/HDFS/components/DATANODE",
                  "ServiceComponentInfo" : {
                    "cluster_name" : "<host>",
                    "component_name" : "DATANODE",
                    "service_name" : "HDFS"
                  }
                }
              ]
            },
 
HDP 1.2.0:
http://<host>/api/v1/clusters?fields=hosts/host_components/HostRoles,hosts/host_components/component
{
  "href" : "http://<host>/api/v1/clusters?fields=hosts/host_components/HostRoles,hosts/host_components/component",
  "items" : [
    {
      "href" : "http://<host>/api/v1/clusters/<host>",
      "Clusters" : {
        "cluster_name" : "<host>",
        "version" : "HDP-1.2.0"
      },
      "hosts" : [
        {
          "href" : "http://<host>/api/v1/clusters/<host>/hosts/<host>",
          "Hosts" : {
            "cluster_name" : "<host>",
            "host_name" : "<host>"
          },
          "host_components" : [
            {
              "href" : "http://<host>/api/v1/clusters/<host>/hosts/<host>/host_components/DATANODE",
              "HostRoles" : {
                "cluster_name" : "<host>",
                "desired_state" : "STARTED",
                "state" : "STARTED",
                "component_name" : "DATANODE",
                "service_name" : "HDFS",
                "host_name" : "<host>"
              },
              "component" : [
                {
                  "href" : "http://<host>/api/v1/clusters/<host>/services/HDFS/components/DATANODE",
                  "ServiceComponentInfo" : {
                    "cluster_name" : "<host>",
                    "component_name" : "DATANODE",
                    "service_name" : "HDFS"
                  }
                }
              ]
            },

                
> State fields are not returned by default for services
> -----------------------------------------------------
>
>                 Key: AMBARI-1526
>                 URL: https://issues.apache.org/jira/browse/AMBARI-1526
>             Project: Ambari
>          Issue Type: Bug
>          Components: controller
>    Affects Versions: 1.2.2
>            Reporter: Steve Ratay
>
> The state field is missing from the following API calls.  It was there in 1.2.0.
> /api/v1/clusters?fields=services/ServiceInfo
> /api/v1/clusters?fields=hosts/host_components/HostRoles,hosts/host_components/component

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message