Comment 2 for bug 1381764

Revision history for this message
Marvin Anderson (marvin-anderson) wrote :

Additional details:

This is specific to Cloudera distro which has names for the hadoop types and the names may not match the type:

$ curl -u admin:admin http://16.235.158.33:7180/api/v1/clusters/amethyst18/services
{
  "items" : [ {
    "name" : "zookeeper",
    "type" : "ZOOKEEPER",
    "clusterRef" : {
      "clusterName" : "cluster"
. . .
    "name" : "hbase",
    "type" : "HBASE",
    "clusterRef" : {
      "clusterName" : "cluster"

Ambari does not have names, only types. i.e. the service name for HBASE will always be "HBASE".

$ curl -u admin:admin http://sea-nodepool.hpl.hp.com:8080/api/v1/clusters/sea_nodepool/sevices
{
  "href" : "http://sea-nodepool.hpl.hp.com:8080/api/v1/clusters/sea_nodepool/services",
  "items" : [
    {
      "href" : "http://sea-nodepool.hpl.hp.com:8080/api/v1/clusters/sea_nodepool/services/HBASE",
      "ServiceInfo" : {
        "cluster_name" : "sea_nodepool",
        "service_name" : "HBASE"
      }
    },
    {
      "href" : "http://sea-nodepool.hpl.hp.com:8080/api/v1/clusters/sea_nodepool/services/HDFS",
      "ServiceInfo" : {
        "cluster_name" : "sea_nodepool",
        "service_name" : "HDFS"
      }