ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nc...@apache.org
Subject [02/15] git commit: AMBARI-7109 Fix test mode in ambari web. (atkach)
Date Tue, 02 Sep 2014 20:29:36 GMT
AMBARI-7109 Fix test mode in ambari web. (atkach)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/6738d3d3
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/6738d3d3
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/6738d3d3

Branch: refs/heads/branch-alerts-dev
Commit: 6738d3d346f4b5af4a1084e880907ba3bf19dffc
Parents: b6abb3d
Author: atkach <atkach@hortonworks.com>
Authored: Tue Sep 2 15:28:52 2014 +0300
Committer: atkach <atkach@hortonworks.com>
Committed: Tue Sep 2 15:28:52 2014 +0300

----------------------------------------------------------------------
 .../app/assets/data/hosts/HDP2/hosts.json       |  406 ++++++-
 .../app/assets/data/hosts/quick_links.json      |   62 +
 .../app/assets/data/services/HDP2/services.json |   16 +
 .../services/host_component_stale_configs.json  |   62 +-
 .../data/stacks/HDP-2.1/operating_systems.json  |  157 +++
 .../data/stacks/HDP-2.1/service_components.json | 1143 +++++++++++++++---
 ambari-web/app/assets/data/views/instances.json |   40 +
 ambari-web/app/assets/data/views/views.json     |   11 +
 .../app/controllers/global/update_controller.js |    3 +
 ambari-web/app/utils/ajax/ajax.js               |    8 +-
 ambari-web/app/utils/http_client.js             |    2 +-
 .../app/views/common/quick_view_link_view.js    |    2 +-
 12 files changed, 1639 insertions(+), 273 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/6738d3d3/ambari-web/app/assets/data/hosts/HDP2/hosts.json
----------------------------------------------------------------------
diff --git a/ambari-web/app/assets/data/hosts/HDP2/hosts.json b/ambari-web/app/assets/data/hosts/HDP2/hosts.json
index 41b5e7e..2533488 100644
--- a/ambari-web/app/assets/data/hosts/HDP2/hosts.json
+++ b/ambari-web/app/assets/data/hosts/HDP2/hosts.json
@@ -1,79 +1,353 @@
 {
-  "href" : "http://dev01.hortonworks.com:8080/api/v1/clusters/c1/hosts?fields=Hosts/host_name,Hosts/public_host_name,Hosts/disk_info,Hosts/cpu_count,Hosts/total_mem,Hosts/host_status,Hosts/last_heartbeat_time,Hosts/os_arch,Hosts/os_type,Hosts/ip,host_components,metrics/disk,metrics/load/load_one",
+  "itemTotal" : "1",
   "items" : [
     {
-      "href" : "http://dev01.hortonworks.com:8080/api/v1/clusters/c1/hosts/dev01.hortonworks.com",
       "Hosts" : {
-        "cluster_name" : "c1",
         "cpu_count" : 1,
-        "disk_info" : [
-          {
-            "available" : "46389672",
-            "used" : "4692332",
-            "percent" : "10%",
-            "size" : "51606140",
-            "type" : "ext4",
-            "mountpoint" : "/"
-          },
-          {
-            "available" : "1027192",
-            "used" : "272",
-            "percent" : "1%",
-            "size" : "1027464",
-            "type" : "tmpfs",
-            "mountpoint" : "/dev/shm"
-          },
-          {
-            "available" : "409107",
-            "used" : "61137",
-            "percent" : "14%",
-            "size" : "495844",
-            "type" : "ext4",
-            "mountpoint" : "/boot"
-          },
-          {
-            "available" : "44459296",
-            "used" : "184796",
-            "percent" : "1%",
-            "size" : "47033288",
-            "type" : "ext4",
-            "mountpoint" : "/home"
-          },
-          {
-            "available" : "29882200",
-            "used" : "457830724",
-            "percent" : "94%",
-            "size" : "487712924",
-            "type" : "vboxsf",
-            "mountpoint" : "/media/sf_ambari"
-          }
-        ],
         "host_name" : "dev01.hortonworks.com",
-        "host_status" : "HEALTHY",
+        "host_status" : "UNHEALTHY",
         "ip" : "10.0.2.15",
-        "last_heartbeat_time" : 1375309885919,
-        "os_arch" : "x86_64",
-        "os_type" : "centos6",
-        "public_host_name" : "dev01.hortonworks.com",
+        "last_heartbeat_time" : 1409659979205,
         "maintenance_state" : "OFF",
-        "total_mem" : 2055208
+        "ph_cpu_count" : 1,
+        "public_host_name" : "dev01.hortonworks.com",
+        "total_mem" : 4055304
       },
-      "metrics" : {
-        "disk" : {
-          "disk_free" : 91.23,
-          "disk_total" : 101.515
+      "host_components" : [
+        {
+          "HostRoles" : {
+            "component_name" : "APP_TIMELINE_SERVER",
+            "maintenance_state" : "OFF",
+            "service_name" : "YARN",
+            "stale_configs" : false,
+            "state" : "STARTED"
+          }
         },
-        "load" : {
-          "load_one" : 1.51880555556
-        }
-      },
-      "alerts" : {
-        "summary" : {
-          "CRITICAL" : 9,
-          "OK" : 5,
-          "WARNING" : 2
+        {
+          "HostRoles" : {
+            "component_name" : "DATANODE",
+            "maintenance_state" : "OFF",
+            "service_name" : "HDFS",
+            "stale_configs" : false,
+            "state" : "STARTED"
+          }
+        },
+        {
+          "HostRoles" : {
+            "component_name" : "DRPC_SERVER",
+            "maintenance_state" : "OFF",
+            "service_name" : "STORM",
+            "stale_configs" : false,
+            "state" : "INSTALL_FAILED"
+          }
+        },
+        {
+          "HostRoles" : {
+            "component_name" : "FALCON_CLIENT",
+            "maintenance_state" : "OFF",
+            "service_name" : "FALCON",
+            "stale_configs" : false,
+            "state" : "INSTALL_FAILED"
+          }
+        },
+        {
+          "HostRoles" : {
+            "component_name" : "FALCON_SERVER",
+            "maintenance_state" : "OFF",
+            "service_name" : "FALCON",
+            "stale_configs" : false,
+            "state" : "INSTALL_FAILED"
+          }
+        },
+        {
+          "HostRoles" : {
+            "component_name" : "FLUME_HANDLER",
+            "maintenance_state" : "OFF",
+            "service_name" : "FLUME",
+            "stale_configs" : false,
+            "state" : "INSTALL_FAILED"
+          }
+        },
+        {
+          "HostRoles" : {
+            "component_name" : "GANGLIA_MONITOR",
+            "maintenance_state" : "OFF",
+            "service_name" : "GANGLIA",
+            "stale_configs" : true,
+            "state" : "INSTALL_FAILED"
+          }
+        },
+        {
+          "HostRoles" : {
+            "component_name" : "GANGLIA_SERVER",
+            "maintenance_state" : "OFF",
+            "service_name" : "GANGLIA",
+            "stale_configs" : true,
+            "state" : "INSTALL_FAILED"
+          }
+        },
+        {
+          "HostRoles" : {
+            "component_name" : "HBASE_CLIENT",
+            "maintenance_state" : "OFF",
+            "service_name" : "HBASE",
+            "stale_configs" : false,
+            "state" : "INSTALL_FAILED"
+          }
+        },
+        {
+          "HostRoles" : {
+            "component_name" : "HBASE_MASTER",
+            "maintenance_state" : "OFF",
+            "service_name" : "HBASE",
+            "stale_configs" : false,
+            "state" : "INSTALL_FAILED"
+          }
+        },
+        {
+          "HostRoles" : {
+            "component_name" : "HBASE_REGIONSERVER",
+            "maintenance_state" : "OFF",
+            "service_name" : "HBASE",
+            "stale_configs" : false,
+            "state" : "INSTALL_FAILED"
+          }
+        },
+        {
+          "HostRoles" : {
+            "component_name" : "HCAT",
+            "maintenance_state" : "OFF",
+            "service_name" : "HCATALOG",
+            "stale_configs" : false,
+            "state" : "INSTALL_FAILED"
+          }
+        },
+        {
+          "HostRoles" : {
+            "component_name" : "HDFS_CLIENT",
+            "maintenance_state" : "OFF",
+            "service_name" : "HDFS",
+            "stale_configs" : false,
+            "state" : "INSTALLED"
+          }
+        },
+        {
+          "HostRoles" : {
+            "component_name" : "HISTORYSERVER",
+            "maintenance_state" : "OFF",
+            "service_name" : "MAPREDUCE2",
+            "stale_configs" : false,
+            "state" : "STARTED"
+          }
+        },
+        {
+          "HostRoles" : {
+            "component_name" : "HIVE_CLIENT",
+            "maintenance_state" : "OFF",
+            "service_name" : "HIVE",
+            "stale_configs" : false,
+            "state" : "INSTALL_FAILED"
+          }
+        },
+        {
+          "HostRoles" : {
+            "component_name" : "HIVE_METASTORE",
+            "maintenance_state" : "OFF",
+            "service_name" : "HIVE",
+            "stale_configs" : false,
+            "state" : "INSTALL_FAILED"
+          }
+        },
+        {
+          "HostRoles" : {
+            "component_name" : "HIVE_SERVER",
+            "maintenance_state" : "OFF",
+            "service_name" : "HIVE",
+            "stale_configs" : false,
+            "state" : "INSTALL_FAILED"
+          }
+        },
+        {
+          "HostRoles" : {
+            "component_name" : "MAPREDUCE2_CLIENT",
+            "maintenance_state" : "OFF",
+            "service_name" : "MAPREDUCE2",
+            "stale_configs" : false,
+            "state" : "INSTALLED"
+          }
+        },
+        {
+          "HostRoles" : {
+            "component_name" : "MYSQL_SERVER",
+            "maintenance_state" : "OFF",
+            "service_name" : "HIVE",
+            "stale_configs" : false,
+            "state" : "INSTALL_FAILED"
+          }
+        },
+        {
+          "HostRoles" : {
+            "component_name" : "NAGIOS_SERVER",
+            "maintenance_state" : "OFF",
+            "service_name" : "NAGIOS",
+            "stale_configs" : true,
+            "state" : "INIT"
+          }
+        },
+        {
+          "HostRoles" : {
+            "component_name" : "NAMENODE",
+            "maintenance_state" : "OFF",
+            "service_name" : "HDFS",
+            "stale_configs" : false,
+            "state" : "STARTED"
+          }
+        },
+        {
+          "HostRoles" : {
+            "component_name" : "NIMBUS",
+            "maintenance_state" : "OFF",
+            "service_name" : "STORM",
+            "stale_configs" : false,
+            "state" : "INSTALL_FAILED"
+          }
+        },
+        {
+          "HostRoles" : {
+            "component_name" : "NODEMANAGER",
+            "maintenance_state" : "OFF",
+            "service_name" : "YARN",
+            "stale_configs" : false,
+            "state" : "STARTED"
+          }
+        },
+        {
+          "HostRoles" : {
+            "component_name" : "OOZIE_CLIENT",
+            "maintenance_state" : "OFF",
+            "service_name" : "OOZIE",
+            "stale_configs" : false,
+            "state" : "INSTALL_FAILED"
+          }
+        },
+        {
+          "HostRoles" : {
+            "component_name" : "OOZIE_SERVER",
+            "maintenance_state" : "OFF",
+            "service_name" : "OOZIE",
+            "stale_configs" : false,
+            "state" : "INSTALL_FAILED"
+          }
+        },
+        {
+          "HostRoles" : {
+            "component_name" : "PIG",
+            "maintenance_state" : "OFF",
+            "service_name" : "PIG",
+            "stale_configs" : false,
+            "state" : "INSTALL_FAILED"
+          }
+        },
+        {
+          "HostRoles" : {
+            "component_name" : "RESOURCEMANAGER",
+            "maintenance_state" : "OFF",
+            "service_name" : "YARN",
+            "stale_configs" : false,
+            "state" : "STARTED"
+          }
+        },
+        {
+          "HostRoles" : {
+            "component_name" : "SECONDARY_NAMENODE",
+            "maintenance_state" : "OFF",
+            "service_name" : "HDFS",
+            "stale_configs" : false,
+            "state" : "STARTED"
+          }
+        },
+        {
+          "HostRoles" : {
+            "component_name" : "SQOOP",
+            "maintenance_state" : "OFF",
+            "service_name" : "SQOOP",
+            "stale_configs" : false,
+            "state" : "INSTALL_FAILED"
+          }
+        },
+        {
+          "HostRoles" : {
+            "component_name" : "STORM_REST_API",
+            "maintenance_state" : "OFF",
+            "service_name" : "STORM",
+            "stale_configs" : false,
+            "state" : "INSTALL_FAILED"
+          }
+        },
+        {
+          "HostRoles" : {
+            "component_name" : "STORM_UI_SERVER",
+            "maintenance_state" : "OFF",
+            "service_name" : "STORM",
+            "stale_configs" : false,
+            "state" : "INSTALL_FAILED"
+          }
+        },
+        {
+          "HostRoles" : {
+            "component_name" : "SUPERVISOR",
+            "maintenance_state" : "OFF",
+            "service_name" : "STORM",
+            "stale_configs" : false,
+            "state" : "INSTALL_FAILED"
+          }
+        },
+        {
+          "HostRoles" : {
+            "component_name" : "TEZ_CLIENT",
+            "maintenance_state" : "OFF",
+            "service_name" : "TEZ",
+            "stale_configs" : false,
+            "state" : "INSTALLED"
+          }
+        },
+        {
+          "HostRoles" : {
+            "component_name" : "WEBHCAT_SERVER",
+            "maintenance_state" : "OFF",
+            "service_name" : "WEBHCAT",
+            "stale_configs" : false,
+            "state" : "INSTALL_FAILED"
+          }
+        },
+        {
+          "HostRoles" : {
+            "component_name" : "YARN_CLIENT",
+            "maintenance_state" : "OFF",
+            "service_name" : "YARN",
+            "stale_configs" : false,
+            "state" : "INSTALLED"
+          }
+        },
+        {
+          "HostRoles" : {
+            "component_name" : "ZOOKEEPER_CLIENT",
+            "maintenance_state" : "OFF",
+            "service_name" : "ZOOKEEPER",
+            "stale_configs" : false,
+            "state" : "INSTALLED"
+          }
+        },
+        {
+          "HostRoles" : {
+            "component_name" : "ZOOKEEPER_SERVER",
+            "maintenance_state" : "OFF",
+            "service_name" : "ZOOKEEPER",
+            "stale_configs" : false,
+            "state" : "STARTED"
+          }
         }
-      }
+      ]
     }
   ]
-}
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/ambari/blob/6738d3d3/ambari-web/app/assets/data/hosts/quick_links.json
----------------------------------------------------------------------
diff --git a/ambari-web/app/assets/data/hosts/quick_links.json b/ambari-web/app/assets/data/hosts/quick_links.json
new file mode 100644
index 0000000..6b5ca69
--- /dev/null
+++ b/ambari-web/app/assets/data/hosts/quick_links.json
@@ -0,0 +1,62 @@
+{
+  "items" : [
+    {
+      "Hosts" : {
+        "host_name" : "dev01.hortonworks.com",
+        "public_host_name" : "dev01.hortonworks.com"
+      },
+      "host_components" : [
+        {
+          "HostRoles" : {
+            "component_name" : "DATANODE"
+          }
+        },
+        {
+          "HostRoles" : {
+            "component_name" : "HDFS_CLIENT"
+          }
+        },
+        {
+          "HostRoles" : {
+            "component_name" : "HISTORYSERVER"
+          }
+        },
+        {
+          "HostRoles" : {
+            "component_name" : "JOBTRACKER"
+          }
+        },
+        {
+          "HostRoles" : {
+            "component_name" : "MAPREDUCE_CLIENT"
+          }
+        },
+        {
+          "HostRoles" : {
+            "component_name" : "NAMENODE"
+          }
+        },
+        {
+          "HostRoles" : {
+            "component_name" : "PIG"
+          }
+        },
+        {
+          "HostRoles" : {
+            "component_name" : "SECONDARY_NAMENODE"
+          }
+        },
+        {
+          "HostRoles" : {
+            "component_name" : "SQOOP"
+          }
+        },
+        {
+          "HostRoles" : {
+            "component_name" : "TASKTRACKER"
+          }
+        }
+      ]
+    }
+  ]
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/ambari/blob/6738d3d3/ambari-web/app/assets/data/services/HDP2/services.json
----------------------------------------------------------------------
diff --git a/ambari-web/app/assets/data/services/HDP2/services.json b/ambari-web/app/assets/data/services/HDP2/services.json
index dc470a8..3cb544d 100644
--- a/ambari-web/app/assets/data/services/HDP2/services.json
+++ b/ambari-web/app/assets/data/services/HDP2/services.json
@@ -18,6 +18,22 @@
       }
     },
     {
+      "href" : "http://192.168.56.101:8080/api/v1/clusters/cl/services/GANGLIA",
+      "ServiceInfo" : {
+        "maintenance_state" : "OFF",
+        "cluster_name" : "cl",
+        "service_name" : "HIVE",
+        "state": "STARTED"
+      },
+      "alerts" : {
+        "summary" : {
+          "CRITICAL" : 0,
+          "OK" : 0,
+          "WARNING" : 0
+        }
+      }
+    },
+    {
       "href" : "http://192.168.56.101:8080/api/v1/clusters/cl/services/HBASE",
       "ServiceInfo" : {
         "maintenance_state" : "OFF",

http://git-wip-us.apache.org/repos/asf/ambari/blob/6738d3d3/ambari-web/app/assets/data/services/host_component_stale_configs.json
----------------------------------------------------------------------
diff --git a/ambari-web/app/assets/data/services/host_component_stale_configs.json b/ambari-web/app/assets/data/services/host_component_stale_configs.json
index e256ff0..a63f647 100644
--- a/ambari-web/app/assets/data/services/host_component_stale_configs.json
+++ b/ambari-web/app/assets/data/services/host_component_stale_configs.json
@@ -1,42 +1,38 @@
 {
-  "href" : "http://192.168.56.101:8080/api/v1/clusters/cl/host_components?fields=HostRoles/component_name&HostRoles/stale_configs=true",
   "items" : [
     {
-      "href" : "http://192.168.56.101:8080/api/v1/clusters/cl/hosts/dev01.hortonworks.com/host_components/HBASE_CLIENT",
-      "HostRoles" : {
-        "cluster_name" : "cl",
-        "component_name" : "HBASE_CLIENT",
-        "host_name" : "dev01.hortonworks.com",
-        "stale_configs" : true
+      "ServiceComponentInfo" : {
+        "component_name" : "DATANODE"
       },
-      "host" : {
-        "href" : "http://192.168.56.101:8080/api/v1/clusters/cl/hosts/dev01.hortonworks.com"
-      }
+      "host_components" : [
+        {
+          "HostRoles" : {
+            "component_name" : "DATANODE",
+            "host_name" : "dev01.hortonworks.com",
+            "maintenance_state" : "OFF",
+            "service_name" : "HDFS",
+            "stale_configs" : true,
+            "state" : "STARTED"
+          }
+        }
+      ]
     },
     {
-      "href" : "http://192.168.56.101:8080/api/v1/clusters/cl/hosts/dev01.hortonworks.com/host_components/HBASE_MASTER",
-      "HostRoles" : {
-        "cluster_name" : "cl",
-        "component_name" : "HBASE_MASTER",
-        "ha_status" : "passive",
-        "host_name" : "dev01.hortonworks.com",
-        "stale_configs" : true
+      "ServiceComponentInfo" : {
+        "component_name" : "HDFS_CLIENT"
       },
-      "host" : {
-        "href" : "http://192.168.56.101:8080/api/v1/clusters/cl/hosts/dev01.hortonworks.com"
-      }
-    },
-    {
-      "href" : "http://192.168.56.101:8080/api/v1/clusters/cl/hosts/dev01.hortonworks.com/host_components/HBASE_REGIONSERVER",
-      "HostRoles" : {
-        "cluster_name" : "cl",
-        "component_name" : "HBASE_REGIONSERVER",
-        "host_name" : "dev01.hortonworks.com",
-        "stale_configs" : true
-      },
-      "host" : {
-        "href" : "http://192.168.56.101:8080/api/v1/clusters/cl/hosts/dev01.hortonworks.com"
-      }
+      "host_components" : [
+        {
+          "HostRoles" : {
+            "component_name" : "HDFS_CLIENT",
+            "host_name" : "dev01.hortonworks.com",
+            "maintenance_state" : "OFF",
+            "service_name" : "HDFS",
+            "stale_configs" : true,
+            "state" : "INSTALLED"
+          }
+        }
+      ]
     }
   ]
-}
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/ambari/blob/6738d3d3/ambari-web/app/assets/data/stacks/HDP-2.1/operating_systems.json
----------------------------------------------------------------------
diff --git a/ambari-web/app/assets/data/stacks/HDP-2.1/operating_systems.json b/ambari-web/app/assets/data/stacks/HDP-2.1/operating_systems.json
new file mode 100644
index 0000000..31aa8a4
--- /dev/null
+++ b/ambari-web/app/assets/data/stacks/HDP-2.1/operating_systems.json
@@ -0,0 +1,157 @@
+{
+  "href" : "http://192.168.56.101:8080/api/v1/stacks/HDP/versions/2.1/operating_systems?fields=repositories/*&_=1409658025867",
+  "items" : [
+    {
+      "href" : "http://192.168.56.101:8080/api/v1/stacks/HDP/versions/2.1/operating_systems/debian12",
+      "OperatingSystems" : {
+        "os_type" : "debian12",
+        "stack_name" : "HDP",
+        "stack_version" : "2.1"
+      },
+      "repositories" : [
+        {
+          "href" : "http://192.168.56.101:8080/api/v1/stacks/HDP/versions/2.1/operating_systems/debian12/repositories/HDP-2.1",
+          "Repositories" : {
+            "base_url" : "REPLACE_WITH_UBUNTU12_URL",
+            "default_base_url" : "REPLACE_WITH_UBUNTU12_URL",
+            "latest_base_url" : "http://private-repo-1.hortonworks.com/HDP/ubuntu12/2.1.5.0",
+            "mirrors_list" : null,
+            "os_type" : "debian12",
+            "repo_id" : "HDP-2.1",
+            "repo_name" : "HDP",
+            "stack_name" : "HDP",
+            "stack_version" : "2.1"
+          }
+        },
+        {
+          "href" : "http://192.168.56.101:8080/api/v1/stacks/HDP/versions/2.1/operating_systems/debian12/repositories/HDP-UTILS-1.1.0.19",
+          "Repositories" : {
+            "base_url" : "http://dev.hortonworks.com.s3.amazonaws.com/HDP-UTILS-1.1.0.19/repos/ubuntu12",
+            "default_base_url" : "http://dev.hortonworks.com.s3.amazonaws.com/HDP-UTILS-1.1.0.19/repos/ubuntu12",
+            "latest_base_url" : "http://dev.hortonworks.com.s3.amazonaws.com/HDP-UTILS-1.1.0.19/repos/ubuntu12",
+            "mirrors_list" : null,
+            "os_type" : "debian12",
+            "repo_id" : "HDP-UTILS-1.1.0.19",
+            "repo_name" : "HDP-UTILS",
+            "stack_name" : "HDP",
+            "stack_version" : "2.1"
+          }
+        }
+      ]
+    },
+    {
+      "href" : "http://192.168.56.101:8080/api/v1/stacks/HDP/versions/2.1/operating_systems/redhat5",
+      "OperatingSystems" : {
+        "os_type" : "redhat5",
+        "stack_name" : "HDP",
+        "stack_version" : "2.1"
+      },
+      "repositories" : [
+        {
+          "href" : "http://192.168.56.101:8080/api/v1/stacks/HDP/versions/2.1/operating_systems/redhat5/repositories/HDP-2.1",
+          "Repositories" : {
+            "base_url" : "REPLACE_WITH_CENTOS5_URL",
+            "default_base_url" : "REPLACE_WITH_CENTOS5_URL",
+            "latest_base_url" : "http://private-repo-1.hortonworks.com/HDP/centos5/2.x/updates/2.1.5.0",
+            "mirrors_list" : null,
+            "os_type" : "redhat5",
+            "repo_id" : "HDP-2.1",
+            "repo_name" : "HDP",
+            "stack_name" : "HDP",
+            "stack_version" : "2.1"
+          }
+        },
+        {
+          "href" : "http://192.168.56.101:8080/api/v1/stacks/HDP/versions/2.1/operating_systems/redhat5/repositories/HDP-UTILS-1.1.0.17",
+          "Repositories" : {
+            "base_url" : "http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.17/repos/centos5",
+            "default_base_url" : "http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.17/repos/centos5",
+            "latest_base_url" : "http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.17/repos/centos5",
+            "mirrors_list" : null,
+            "os_type" : "redhat5",
+            "repo_id" : "HDP-UTILS-1.1.0.17",
+            "repo_name" : "HDP-UTILS",
+            "stack_name" : "HDP",
+            "stack_version" : "2.1"
+          }
+        }
+      ]
+    },
+    {
+      "href" : "http://192.168.56.101:8080/api/v1/stacks/HDP/versions/2.1/operating_systems/redhat6",
+      "OperatingSystems" : {
+        "os_type" : "redhat6",
+        "stack_name" : "HDP",
+        "stack_version" : "2.1"
+      },
+      "repositories" : [
+        {
+          "href" : "http://192.168.56.101:8080/api/v1/stacks/HDP/versions/2.1/operating_systems/redhat6/repositories/HDP-2.1",
+          "Repositories" : {
+            "base_url" : "REPLACE_WITH_CENTOS6_URL",
+            "default_base_url" : "REPLACE_WITH_CENTOS6_URL",
+            "latest_base_url" : "http://private-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.1.5.0",
+            "mirrors_list" : null,
+            "os_type" : "redhat6",
+            "repo_id" : "HDP-2.1",
+            "repo_name" : "HDP",
+            "stack_name" : "HDP",
+            "stack_version" : "2.1"
+          }
+        },
+        {
+          "href" : "http://192.168.56.101:8080/api/v1/stacks/HDP/versions/2.1/operating_systems/redhat6/repositories/HDP-UTILS-1.1.0.17",
+          "Repositories" : {
+            "base_url" : "http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.17/repos/centos6",
+            "default_base_url" : "http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.17/repos/centos6",
+            "latest_base_url" : "http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.17/repos/centos6",
+            "mirrors_list" : null,
+            "os_type" : "redhat6",
+            "repo_id" : "HDP-UTILS-1.1.0.17",
+            "repo_name" : "HDP-UTILS",
+            "stack_name" : "HDP",
+            "stack_version" : "2.1"
+          }
+        }
+      ]
+    },
+    {
+      "href" : "http://192.168.56.101:8080/api/v1/stacks/HDP/versions/2.1/operating_systems/suse11",
+      "OperatingSystems" : {
+        "os_type" : "suse11",
+        "stack_name" : "HDP",
+        "stack_version" : "2.1"
+      },
+      "repositories" : [
+        {
+          "href" : "http://192.168.56.101:8080/api/v1/stacks/HDP/versions/2.1/operating_systems/suse11/repositories/HDP-2.1",
+          "Repositories" : {
+            "base_url" : "REPLACE_WITH_SUSE11_URL",
+            "default_base_url" : "REPLACE_WITH_SUSE11_URL",
+            "latest_base_url" : "http://private-repo-1.hortonworks.com/HDP/sles11sp1/2.x/updates/2.1.5.0",
+            "mirrors_list" : null,
+            "os_type" : "suse11",
+            "repo_id" : "HDP-2.1",
+            "repo_name" : "HDP",
+            "stack_name" : "HDP",
+            "stack_version" : "2.1"
+          }
+        },
+        {
+          "href" : "http://192.168.56.101:8080/api/v1/stacks/HDP/versions/2.1/operating_systems/suse11/repositories/HDP-UTILS-1.1.0.17",
+          "Repositories" : {
+            "base_url" : "http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.17/repos/suse11",
+            "default_base_url" : "http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.17/repos/suse11",
+            "latest_base_url" : "http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.17/repos/suse11",
+            "mirrors_list" : null,
+            "os_type" : "suse11",
+            "repo_id" : "HDP-UTILS-1.1.0.17",
+            "repo_name" : "HDP-UTILS",
+            "stack_name" : "HDP",
+            "stack_version" : "2.1"
+          }
+        }
+      ]
+    }
+  ]
+}
\ No newline at end of file


Mime
View raw message