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" }
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 sea-nodepool. hpl.hp. com:8080/ api/v1/ clusters/ sea_nodepool/ services", sea-nodepool. hpl.hp. com:8080/ api/v1/ clusters/ sea_nodepool/ services/ HBASE",
"cluster_ name" : "sea_nodepool",
"service_ name" : "HBASE" sea-nodepool. hpl.hp. com:8080/ api/v1/ clusters/ sea_nodepool/ services/ HDFS",
"cluster_ name" : "sea_nodepool",
"service_ name" : "HDFS"
{
"href" : "http://
"items" : [
{
"href" : "http://
"ServiceInfo" : {
}
},
{
"href" : "http://
"ServiceInfo" : {
}