Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-5832

"service_name" field unavailable from Hosts API

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.6.1
    • 1.6.1
    • None
    • None

    Description

      For request URL:
      /api/v1/clusters/cl/hosts?fields=host_components/HostRoles/service_name
      Response missing "service_name" field:

      {
        "href" : "http://192.168.56.101:8080/api/v1/clusters/cl/hosts?fields=host_components/HostRoles/service_name",
        "items" : [
          {
            "href" : "http://192.168.56.101:8080/api/v1/clusters/cl/hosts/dev01.hortonworks.com",
            "Hosts" : {
              "cluster_name" : "cl",
              "host_name" : "dev01.hortonworks.com"
            },
            "host_components" : [
              {
                "href" : "http://192.168.56.101:8080/api/v1/clusters/cl/hosts/dev01.hortonworks.com/host_components/APP_TIMELINE_SERVER",
                "HostRoles" : {
                  "cluster_name" : "cl",
                  "component_name" : "APP_TIMELINE_SERVER",
                  "host_name" : "dev01.hortonworks.com"
                }
              }
           ]
      }
      

      Also filtering by service_name doesn't work:
      Request: /api/v1/clusters/cl/hosts?host_components/HostRoles/service_name=HDFS&fields=host_components/HostRoles/service_name
      Return empty items

      Attachments

        Issue Links

          Activity

            People

              dmitriusan Dmitry Lysnichenko
              dmitriusan Dmitry Lysnichenko
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: