You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by tb...@apache.org on 2014/09/12 21:17:24 UTC
git commit: AMBARI-7274 - Detailed response in 'view cluster
information' under Server API documentation (Saurabh Jain via tbeerbower)
Repository: ambari
Updated Branches:
refs/heads/trunk 093ed17d4 -> fc569f191
AMBARI-7274 - Detailed response in 'view cluster information' under Server API documentation (Saurabh Jain via tbeerbower)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/fc569f19
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/fc569f19
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/fc569f19
Branch: refs/heads/trunk
Commit: fc569f191f5a44994e68d4e54aae0ff80192935d
Parents: 093ed17
Author: tbeerbower <tb...@hortonworks.com>
Authored: Fri Sep 12 15:16:58 2014 -0400
Committer: tbeerbower <tb...@hortonworks.com>
Committed: Fri Sep 12 15:16:58 2014 -0400
----------------------------------------------------------------------
ambari-server/docs/api/v1/clusters-cluster.md | 284 ++++++++++++++-------
1 file changed, 188 insertions(+), 96 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/fc569f19/ambari-server/docs/api/v1/clusters-cluster.md
----------------------------------------------------------------------
diff --git a/ambari-server/docs/api/v1/clusters-cluster.md b/ambari-server/docs/api/v1/clusters-cluster.md
index 0a57e43..8da5b29 100644
--- a/ambari-server/docs/api/v1/clusters-cluster.md
+++ b/ambari-server/docs/api/v1/clusters-cluster.md
@@ -60,105 +60,197 @@ Returns information for the specified cluster identified by ":name"
**Example**
-Get information for the cluster "c1".
+Get information for the cluster "cluster001".
- GET /clusters/c1
+ GET /clusters/cluster001
200 OK
{
- "href" : "http://your.ambari.server/api/v1/clusters/c1",
- "Clusters" : {
- "cluster_name" : "c1",
- "cluster_id" : 1,
- "version" : "HDP-1.2.0"
- },
- "services" : [
- {
- "href" : "http://your.ambari.server/api/v1/clusters/c1/services/NAGIOS",
- "ServiceInfo" : {
- "cluster_name" : "c1",
- "service_name" : "NAGIOS"
- }
- },
- {
- "href" : "http://your.ambari.server/api/v1/clusters/c1/services/HCATALOG",
- "ServiceInfo" : {
- "cluster_name" : "c1",
- "service_name" : "HCATALOG"
- }
- },
- {
- "href" : "http://your.ambari.server/api/v1/clusters/c1/services/PIG",
- "ServiceInfo" : {
- "cluster_name" : "c1",
- "service_name" : "PIG"
- }
- },
- {
- "href" : "http://your.ambari.server/api/v1/clusters/c1/services/MAPREDUCE",
- "ServiceInfo" : {
- "cluster_name" : "c1",
- "service_name" : "MAPREDUCE"
- }
- },
- {
- "href" : "http://your.ambari.server/api/v1/clusters/c1/services/GANGLIA",
- "ServiceInfo" : {
- "cluster_name" : "c1",
- "service_name" : "GANGLIA"
- }
- },
- {
- "href" : "http://your.ambari.server/api/v1/clusters/c1/services/HIVE",
- "ServiceInfo" : {
- "cluster_name" : "c1",
- "service_name" : "HIVE"
- }
- },
- {
- "href" : "http://your.ambari.server/api/v1/clusters/c1/services/HDFS",
- "ServiceInfo" : {
- "cluster_name" : "MyIE9",
- "service_name" : "HDFS"
- }
- },
- {
- "href" : "http://your.ambari.server/api/v1/clusters/c1/services/ZOOKEEPER",
- "ServiceInfo" : {
- "cluster_name" : "c1",
- "service_name" : "ZOOKEEPER"
- }
- },
- {
- "href" : "http://your.ambari.server/api/v1/clusters/c1/services/HBASE",
- "ServiceInfo" : {
- "cluster_name" : "c1",
- "service_name" : "HBASE"
- }
- },
- {
- "href" : "http://your.ambari.server/api/v1/clusters/c1/services/OOZIE",
- "ServiceInfo" : {
- "cluster_name" : "c1",
- "service_name" : "OOZIE"
- }
- }
+ "href" : "http://your.ambari.server/api/v1/clusters/cluster001",
+ "Clusters" : {
+ "cluster_id" : 9,
+ "cluster_name" : "cluster001",
+ "health_report" : {
+ "Host/stale_config" : 1,
+ "Host/maintenance_state" : 0,
+ "Host/host_state/HEALTHY" : 3,
+ "Host/host_state/UNHEALTHY" : 0,
+ "Host/host_state/HEARTBEAT_LOST" : 0,
+ "Host/host_state/INIT" : 0,
+ "Host/host_status/HEALTHY" : 3,
+ "Host/host_status/UNHEALTHY" : 0,
+ "Host/host_status/UNKNOWN" : 0,
+ "Host/host_status/ALERT" : 0
+ },
+ "provisioning_state" : "INIT",
+ "total_hosts" : 3,
+ "version" : "HDP-2.0",
+ "desired_configs" : {
+ "capacity-scheduler" : {
+ "user" : "admin",
+ "tag" : "version1408514705943"
+ },
+ "core-site" : {
+ "user" : "admin",
+ "tag" : "version1409806913314"
+ },
+ "global" : {
+ "user" : "admin",
+ "tag" : "version1409806913314"
+ },
+ "hdfs-log4j" : {
+ "user" : "admin",
+ "tag" : "version1"
+ },
+ "hdfs-site" : {
+ "user" : "admin",
+ "tag" : "version1407908591996"
+ },
+ "mapred-site" : {
+ "user" : "admin",
+ "tag" : "version1408514705943"
+ },
+ "mapreduce2-log4j" : {
+ "user" : "admin",
+ "tag" : "version1408514705943"
+ },
+ "yarn-log4j" : {
+ "user" : "admin",
+ "tag" : "version1408514705943"
+ },
+ "yarn-site" : {
+ "user" : "admin",
+ "tag" : "version1408514705943"
+ },
+ "zoo.cfg" : {
+ "user" : "admin",
+ "tag" : "version1"
+ },
+ "zookeeper-log4j" : {
+ "user" : "admin",
+ "tag" : "version1"
+ }
+ }
+ },
+ "alerts" : {
+ "summary" : {
+ "CRITICAL" : 1,
+ "OK" : 2,
+ "PASSIVE" : 0,
+ "WARNING" : 0
+ }
+ },
+ "requests" : [
+ {
+ "href" : "http://your.ambari.server/api/v1/clusters/cluster001/requests/304",
+ "Requests" : {
+ "cluster_name" : "cluster001",
+ "id" : 304
+ }
+ },
+ {
+ "href" : "http://your.ambari.server/api/v1/clusters/cluster001/requests/305",
+ "Requests" : {
+ "cluster_name" : "cluster001",
+ "id" : 305
+ }
+ }
+ ],
+ "services" : [
+ {
+ "href" : "http://your.ambari.server/api/v1/clusters/cluster001/services/GANGLIA",
+ "ServiceInfo" : {
+ "cluster_name" : "cluster001",
+ "service_name" : "GANGLIA"
+ }
+ },
+ {
+ "href" : "http://your.ambari.server/api/v1/clusters/cluster001/services/HDFS",
+ "ServiceInfo" : {
+ "cluster_name" : "cluster001",
+ "service_name" : "HDFS"
+ }
+ },
+ {
+ "href" : "http://your.ambari.server/api/v1/clusters/cluster001/services/MAPREDUCE2",
+ "ServiceInfo" : {
+ "cluster_name" : "cluster001",
+ "service_name" : "MAPREDUCE2"
+ }
+ },
+ {
+ "href" : "http://your.ambari.server/api/v1/clusters/cluster001/services/ZOOKEEPER",
+ "ServiceInfo" : {
+ "cluster_name" : "cluster001",
+ "service_name" : "ZOOKEEPER"
+ }
+ }
],
- "hosts" : [
- {
- "href" : "http://your.ambari.server/api/v1/clusters/c1/hosts/some.host",
- "Hosts" : {
- "cluster_name" : "c1",
- "host_name" : "some.host"
- }
- },
- {
- "href" : "http://your.ambari.server/api/v1/clusters/c1/hosts/another.host",
- "Hosts" : {
- "cluster_name" : "c1",
- "host_name" : "another.host"
- }
- }
- ]
+ "config_groups" : [
+ {
+ "href" : "http://your.ambari.server/api/v1/clusters/cluster001/config_groups/2",
+ "ConfigGroup" : {
+ "cluster_name" : "cluster001",
+ "id" : 2
+ }
+ }
+ ],
+ "workflows" : [ ],
+ "hosts" : [
+ {
+ "href" : "http://your.ambari.server/api/v1/clusters/cluster001/hosts/host1.domain.com",
+ "Hosts" : {
+ "cluster_name" : "cluster001",
+ "host_name" : "host1.domain.com"
+ }
+ },
+ {
+ "href" : "http://your.ambari.server/api/v1/clusters/cluster001/hosts/host2.domain.com",
+ "Hosts" : {
+ "cluster_name" : "cluster001",
+ "host_name" : "host2.domain.com"
+ }
+ },
+ {
+ "href" : "http://your.ambari.server/api/v1/clusters/cluster001/hosts/host3.domain.com",
+ "Hosts" : {
+ "cluster_name" : "cluster001",
+ "host_name" : "host3.domain.com"
+ }
+ }
+ ],
+ "configurations" : [
+ {
+ "href" : "http://your.ambari.server/api/v1/clusters/cluster001/configurations?type=core-site&tag=version1",
+ "tag" : "version1",
+ "type" : "core-site",
+ "Config" : {
+ "cluster_name" : "cluster001"
+ }
+ },
+ {
+ "href" : "http://your.ambari.server/api/v1/clusters/cluster001/configurations?type=global&tag=version1",
+ "tag" : "version1",
+ "type" : "global",
+ "Config" : {
+ "cluster_name" : "cluster001"
+ }
+ },
+ {
+ "href" : "http://your.ambari.server/api/v1/clusters/cluster001/configurations?type=hdfs-site&tag=version1",
+ "tag" : "version1",
+ "type" : "hdfs-site",
+ "Config" : {
+ "cluster_name" : "cluster001"
+ }
+ },
+ {
+ "href" : "http://your.ambari.server/api/v1/clusters/cluster001/configurations?type=zoo.cfg&tag=version1",
+ "tag" : "version1",
+ "type" : "zoo.cfg",
+ "Config" : {
+ "cluster_name" : "cluster001"
+ }
+ },
+ ]
}
-