incubator-ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yus...@apache.org
Subject svn commit: r1418895 [2/5] - in /incubator/ambari/branches/AMBARI-666: ./ ambari-web/ ambari-web/app/ ambari-web/app/assets/data/alerts/ ambari-web/app/assets/data/background_operations/ ambari-web/app/assets/data/dashboard/ ambari-web/app/assets/data/...
Date Sun, 09 Dec 2012 11:53:23 GMT
Modified: incubator/ambari/branches/AMBARI-666/ambari-web/app/assets/data/dashboard/services.json
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/AMBARI-666/ambari-web/app/assets/data/dashboard/services.json?rev=1418895&r1=1418894&r2=1418895&view=diff
==============================================================================
--- incubator/ambari/branches/AMBARI-666/ambari-web/app/assets/data/dashboard/services.json (original)
+++ incubator/ambari/branches/AMBARI-666/ambari-web/app/assets/data/dashboard/services.json Sun Dec  9 11:53:15 2012
@@ -1,43 +1,36 @@
 {
-  "href" : "http://ambari/clusters/mycluster/services?ServiceInfo/service_name!=MISCELLANEOUS&ServiceInfo/service_name!=DASHBOARD&fields=*,components/*,components/host_components/*",
+  "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/services?ServiceInfo/service_name!=MISCELLANEOUS&ServiceInfo/service_name!=DASHBOARD&fields=components/host_components/*",
   "items" : [
     {
-      "href" : "http://ambari/clusters/mycluster/services/HBASE",
-      "Services" : {
-        "display_name" : "HBase",
-        "description" : "Apache HDFS-based Non-relational Distributed Database",
-        "attributes" : "{ \"runnable\": true, \"mustInstall\": false, \"editable\": true, \"noDisplay\": false }"
-      },
+      "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/services/MAPREDUCE",
       "ServiceInfo" : {
         "cluster_name" : "mycluster",
-        "state" : "STARTED",
-        "service_name" : "HBASE"
+        "service_name" : "MAPREDUCE"
       },
       "components" : [
         {
-          "href" : "http://ambari/clusters/mycluster/services/HBASE/components/HBASE_MASTER",
+          "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/services/MAPREDUCE/components/MAPREDUCE_CLIENT",
           "ServiceComponentInfo" : {
             "cluster_name" : "mycluster",
-            "component_name" : "HBASE_MASTER",
-            "service_name" : "HBASE"
+            "component_name" : "MAPREDUCE_CLIENT",
+            "service_name" : "MAPREDUCE"
           },
           "host_components" : [
             {
-              "href" : "http://ambari/clusters/mycluster/hosts/ip-10-38-5-128.ec2.internal/host_components/HBASE_MASTER",
+              "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/MAPREDUCE_CLIENT",
               "HostRoles" : {
                 "cluster_name" : "mycluster",
-                "role_id" : "5",
-                "component_name" : "HBASE_MASTER",
-                "state" : "STARTED",
-                "host_name" : "ip-10-38-5-128.ec2.internal"
+                "state" : "INSTALLED",
+                "component_name" : "MAPREDUCE_CLIENT",
+                "host_name" : "dev.hortonworks.com"
               },
               "component" : [
                 {
-                  "href" : "http://ambari/clusters/mycluster/services/HBASE/components/HBASE_MASTER",
+                  "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/services/MAPREDUCE/components/MAPREDUCE_CLIENT",
                   "ServiceComponentInfo" : {
                     "cluster_name" : "mycluster",
-                    "component_name" : "HBASE_MASTER",
-                    "service_name" : "HBASE"
+                    "component_name" : "MAPREDUCE_CLIENT",
+                    "service_name" : "MAPREDUCE"
                   }
                 }
               ]
@@ -45,149 +38,81 @@
           ]
         },
         {
-          "href" : "http://ambari/clusters/mycluster/services/HBASE/components/HBASE_REGIONSERVER",
+          "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/services/MAPREDUCE/components/JOBTRACKER",
           "ServiceComponentInfo" : {
             "cluster_name" : "mycluster",
-            "component_name" : "HBASE_REGIONSERVER",
-            "service_name" : "HBASE"
+            "component_name" : "JOBTRACKER",
+            "service_name" : "MAPREDUCE"
           },
           "host_components" : [
             {
-              "href" : "http://ambari/clusters/mycluster/hosts/ip-10-38-5-128.ec2.internal/host_components/HBASE_REGIONSERVER",
+              "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/JOBTRACKER",
               "HostRoles" : {
                 "cluster_name" : "mycluster",
-                "role_id" : "24",
-                "component_name" : "HBASE_REGIONSERVER",
                 "state" : "STARTED",
-                "host_name" : "ip-10-38-5-128.ec2.internal"
-              },
-              "component" : [
-                {
-                  "href" : "http://ambari/clusters/mycluster/services/HBASE/components/HBASE_REGIONSERVER",
-                  "ServiceComponentInfo" : {
-                    "cluster_name" : "mycluster",
-                    "component_name" : "HBASE_REGIONSERVER",
-                    "service_name" : "HBASE"
-                  }
-                }
-              ]
-            }
-          ]
-        },
-        {
-          "href" : "http://ambari/clusters/mycluster/services/HBASE/components/HBASE_CLIENT",
-          "ServiceComponentInfo" : {
-            "cluster_name" : "mycluster",
-            "component_name" : "HBASE_CLIENT",
-            "service_name" : "HBASE"
-          },
-          "host_components" : [
-            {
-              "href" : "http://ambari/clusters/mycluster/hosts/ip-10-38-5-128.ec2.internal/host_components/HBASE_CLIENT",
-              "HostRoles" : {
-                "cluster_name" : "mycluster",
-                "role_id" : "29",
-                "component_name" : "HBASE_CLIENT",
-                "state" : "INSTALLED",
-                "host_name" : "ip-10-38-5-128.ec2.internal"
-              },
-              "component" : [
-                {
-                  "href" : "http://ambari/clusters/mycluster/services/HBASE/components/HBASE_CLIENT",
-                  "ServiceComponentInfo" : {
-                    "cluster_name" : "mycluster",
-                    "component_name" : "HBASE_CLIENT",
-                    "service_name" : "HBASE"
-                  }
-                }
-              ]
-            }
-          ]
-        }
-      ]
-    },
-    {
-      "href" : "http://ambari/clusters/mycluster/services/PIG",
-      "Services" : {
-        "display_name" : "Pig",
-        "description" : "Platform for Analyzing Large Data Sets",
-        "attributes" : "{ \"runnable\": false, \"mustInstall\": false, \"editable\": true, \"noDisplay\": false }"
-      },
-      "ServiceInfo" : {
-        "cluster_name" : "mycluster",
-        "state" : "INSTALLED",
-        "service_name" : "PIG"
-      },
-      "components" : [
-        {
-          "href" : "http://ambari/clusters/mycluster/services/PIG/components/PIG_CLIENT",
-          "ServiceComponentInfo" : {
-            "cluster_name" : "mycluster",
-            "component_name" : "PIG_CLIENT",
-            "service_name" : "PIG"
-          },
-          "host_components" : [
-            {
-              "href" : "http://ambari/clusters/mycluster/hosts/ip-10-38-5-128.ec2.internal/host_components/PIG_CLIENT",
-              "HostRoles" : {
-                "cluster_name" : "mycluster",
-                "role_id" : "30",
-                "component_name" : "PIG_CLIENT",
-                "state" : "INSTALLED",
-                "host_name" : "ip-10-38-5-128.ec2.internal"
+                "component_name" : "JOBTRACKER",
+                "host_name" : "dev.hortonworks.com"
               },
-              "component" : [
-                {
-                  "href" : "http://ambari/clusters/mycluster/services/PIG/components/PIG_CLIENT",
-                  "ServiceComponentInfo" : {
-                    "cluster_name" : "mycluster",
-                    "component_name" : "PIG_CLIENT",
-                    "service_name" : "PIG"
-                  }
+              "metrics" : {
+                "rpc" : {
+                  "rpcAuthorizationSuccesses" : 0,
+                  "SentBytes" : 32961793,
+                  "rpcAuthorizationFailures" : 0,
+                  "ReceivedBytes" : 95243938,
+                  "NumOpenConnections" : 0,
+                  "callQueueLen" : 0,
+                  "RpcQueueTime_num_ops" : 307991,
+                  "rpcAuthenticationSuccesses" : 0,
+                  "RpcProcessingTime_num_ops" : 307991,
+                  "RpcProcessingTime_avg_time" : 0.02941176470588236,
+                  "rpcAuthenticationFailures" : 0,
+                  "RpcQueueTime_avg_time" : 0.14705882352941177
+                },
+                "jvm" : {
+                  "memHeapCommittedM" : 185.1875,
+                  "logFatal" : 0,
+                  "threadsBlocked" : 0,
+                  "gcCount" : 24,
+                  "threadsWaiting" : 22,
+                  "logWarn" : 0,
+                  "logError" : 0,
+                  "memNonHeapCommittedM" : 23.625,
+                  "memNonHeapUsedM" : 23.226303,
+                  "gcTimeMillis" : 714,
+                  "logInfo" : 3,
+                  "threadsNew" : 0,
+                  "memHeapUsedM" : 27.627754,
+                  "threadsTerminated" : 0,
+                  "threadsTimedWaiting" : 8,
+                  "threadsRunnable" : 6
+                },
+                "metricssystem" : {
+                  "dropped_pub_all" : 0,
+                  "num_sources" : 6,
+                  "publish_max_time" : 6.0,
+                  "publish_num_ops" : 9269,
+                  "snapshot_stdev_time" : 0.0,
+                  "snapshot_num_ops" : 64889,
+                  "publish_stdev_time" : 0.0,
+                  "num_sinks" : 1,
+                  "publish_imin_time" : 0.0,
+                  "snapshot_min_time" : 0.0,
+                  "snapshot_imin_time" : 0.0,
+                  "snapshot_imax_time" : 1.401298464324817E-45,
+                  "publish_avg_time" : 0.0,
+                  "publish_min_time" : 0.0,
+                  "snapshot_max_time" : 177.0,
+                  "publish_imax_time" : 1.401298464324817E-45,
+                  "snapshot_avg_time" : 0.0
                 }
-              ]
-            }
-          ]
-        }
-      ]
-    },
-    {
-      "href" : "http://ambari/clusters/mycluster/services/TEMPLETON",
-      "Services" : {
-        "display_name" : "Templeton",
-        "description" : "Webservice APIs for Apache Hadoop",
-        "attributes" : "{ \"runnable\": true, \"mustInstall\": false, \"editable\": true, \"noDisplay\": false }"
-      },
-      "ServiceInfo" : {
-        "cluster_name" : "mycluster",
-        "state" : "STARTED",
-        "service_name" : "TEMPLETON"
-      },
-      "components" : [
-        {
-          "href" : "http://ambari/clusters/mycluster/services/TEMPLETON/components/TEMPLETON_CLIENT",
-          "ServiceComponentInfo" : {
-            "cluster_name" : "mycluster",
-            "component_name" : "TEMPLETON_CLIENT",
-            "service_name" : "TEMPLETON"
-          },
-          "host_components" : [
-            {
-              "href" : "http://ambari/clusters/mycluster/hosts/ip-10-38-5-128.ec2.internal/host_components/TEMPLETON_CLIENT",
-              "HostRoles" : {
-                "cluster_name" : "mycluster",
-                "role_id" : "34",
-                "component_name" : "TEMPLETON_CLIENT",
-                "state" : "INSTALLED",
-                "host_name" : "ip-10-38-5-128.ec2.internal"
               },
               "component" : [
                 {
-                  "href" : "http://ambari/clusters/mycluster/services/TEMPLETON/components/TEMPLETON_CLIENT",
+                  "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/services/MAPREDUCE/components/JOBTRACKER",
                   "ServiceComponentInfo" : {
                     "cluster_name" : "mycluster",
-                    "component_name" : "TEMPLETON_CLIENT",
-                    "service_name" : "TEMPLETON"
+                    "component_name" : "JOBTRACKER",
+                    "service_name" : "MAPREDUCE"
                   }
                 }
               ]
@@ -195,29 +120,81 @@
           ]
         },
         {
-          "href" : "http://ambari/clusters/mycluster/services/TEMPLETON/components/TEMPLETON_SERVER",
+          "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/services/MAPREDUCE/components/TASKTRACKER",
           "ServiceComponentInfo" : {
             "cluster_name" : "mycluster",
-            "component_name" : "TEMPLETON_SERVER",
-            "service_name" : "TEMPLETON"
+            "component_name" : "TASKTRACKER",
+            "service_name" : "MAPREDUCE"
           },
           "host_components" : [
             {
-              "href" : "http://ambari/clusters/mycluster/hosts/ip-10-38-5-128.ec2.internal/host_components/TEMPLETON_SERVER",
+              "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/TASKTRACKER",
               "HostRoles" : {
                 "cluster_name" : "mycluster",
-                "role_id" : "8",
-                "component_name" : "TEMPLETON_SERVER",
                 "state" : "STARTED",
-                "host_name" : "ip-10-38-5-128.ec2.internal"
+                "component_name" : "TASKTRACKER",
+                "host_name" : "dev.hortonworks.com"
+              },
+              "metrics" : {
+                "rpc" : {
+                  "rpcAuthorizationSuccesses" : 0,
+                  "SentBytes" : 0,
+                  "rpcAuthorizationFailures" : 0,
+                  "ReceivedBytes" : 0,
+                  "NumOpenConnections" : 0,
+                  "callQueueLen" : 0,
+                  "RpcQueueTime_num_ops" : 0,
+                  "rpcAuthenticationSuccesses" : 0,
+                  "RpcProcessingTime_num_ops" : 0,
+                  "RpcProcessingTime_avg_time" : 0.0,
+                  "rpcAuthenticationFailures" : 0,
+                  "RpcQueueTime_avg_time" : 0.0
+                },
+                "jvm" : {
+                  "memHeapCommittedM" : 45.5625,
+                  "logFatal" : 0,
+                  "threadsBlocked" : 0,
+                  "gcCount" : 3433,
+                  "threadsWaiting" : 15,
+                  "logWarn" : 0,
+                  "logError" : 0,
+                  "memNonHeapCommittedM" : 23.1875,
+                  "memNonHeapUsedM" : 21.687134,
+                  "gcTimeMillis" : 2142,
+                  "logInfo" : 3,
+                  "threadsNew" : 0,
+                  "memHeapUsedM" : 3.5596008,
+                  "threadsTerminated" : 0,
+                  "threadsTimedWaiting" : 6,
+                  "threadsRunnable" : 6
+                },
+                "metricssystem" : {
+                  "dropped_pub_all" : 0,
+                  "num_sources" : 6,
+                  "publish_max_time" : 21.0,
+                  "publish_num_ops" : 9267,
+                  "snapshot_stdev_time" : 0.0,
+                  "snapshot_num_ops" : 64875,
+                  "publish_stdev_time" : 0.0,
+                  "num_sinks" : 1,
+                  "publish_imin_time" : 1.0,
+                  "snapshot_min_time" : 0.0,
+                  "snapshot_imin_time" : 0.0,
+                  "snapshot_imax_time" : 1.401298464324817E-45,
+                  "publish_avg_time" : 1.0,
+                  "publish_min_time" : 0.0,
+                  "snapshot_max_time" : 5.0,
+                  "publish_imax_time" : 1.0,
+                  "snapshot_avg_time" : 0.0
+                }
               },
               "component" : [
                 {
-                  "href" : "http://ambari/clusters/mycluster/services/TEMPLETON/components/TEMPLETON_SERVER",
+                  "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/services/MAPREDUCE/components/TASKTRACKER",
                   "ServiceComponentInfo" : {
                     "cluster_name" : "mycluster",
-                    "component_name" : "TEMPLETON_SERVER",
-                    "service_name" : "TEMPLETON"
+                    "component_name" : "TASKTRACKER",
+                    "service_name" : "MAPREDUCE"
                   }
                 }
               ]
@@ -227,42 +204,35 @@
       ]
     },
     {
-      "href" : "http://ambari/clusters/mycluster/services/ZOOKEEPER",
-      "Services" : {
-        "display_name" : "ZooKeeper",
-        "description" : "Centralized Service for Configuration Management and Distribution Synchronization",
-        "attributes" : "{ \"runnable\": true, \"mustInstall\": false, \"editable\": false, \"noDisplay\": false }"
-      },
+      "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/services/HDFS",
       "ServiceInfo" : {
         "cluster_name" : "mycluster",
-        "state" : "STARTED",
-        "service_name" : "ZOOKEEPER"
+        "service_name" : "HDFS"
       },
       "components" : [
         {
-          "href" : "http://ambari/clusters/mycluster/services/ZOOKEEPER/components/ZOOKEEPER_SERVER",
+          "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/services/HDFS/components/SECONDARY_NAMENODE",
           "ServiceComponentInfo" : {
             "cluster_name" : "mycluster",
-            "component_name" : "ZOOKEEPER_SERVER",
-            "service_name" : "ZOOKEEPER"
+            "component_name" : "SECONDARY_NAMENODE",
+            "service_name" : "HDFS"
           },
           "host_components" : [
             {
-              "href" : "http://ambari/clusters/mycluster/hosts/ip-10-38-5-128.ec2.internal/host_components/ZOOKEEPER_SERVER",
+              "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/SECONDARY_NAMENODE",
               "HostRoles" : {
                 "cluster_name" : "mycluster",
-                "role_id" : "4",
-                "component_name" : "ZOOKEEPER_SERVER",
                 "state" : "STARTED",
-                "host_name" : "ip-10-38-5-128.ec2.internal"
+                "component_name" : "SECONDARY_NAMENODE",
+                "host_name" : "dev.hortonworks.com"
               },
               "component" : [
                 {
-                  "href" : "http://ambari/clusters/mycluster/services/ZOOKEEPER/components/ZOOKEEPER_SERVER",
+                  "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/services/HDFS/components/SECONDARY_NAMENODE",
                   "ServiceComponentInfo" : {
                     "cluster_name" : "mycluster",
-                    "component_name" : "ZOOKEEPER_SERVER",
-                    "service_name" : "ZOOKEEPER"
+                    "component_name" : "SECONDARY_NAMENODE",
+                    "service_name" : "HDFS"
                   }
                 }
               ]
@@ -270,111 +240,82 @@
           ]
         },
         {
-          "href" : "http://ambari/clusters/mycluster/services/ZOOKEEPER/components/ZOOKEEPER_CLIENT",
-          "ServiceComponentInfo" : {
-            "cluster_name" : "mycluster",
-            "component_name" : "ZOOKEEPER_CLIENT",
-            "service_name" : "ZOOKEEPER"
-          },
-          "host_components" : [
-            {
-              "href" : "http://ambari/clusters/mycluster/hosts/ip-10-38-5-128.ec2.internal/host_components/ZOOKEEPER_CLIENT",
-              "HostRoles" : {
-                "cluster_name" : "mycluster",
-                "role_id" : "28",
-                "component_name" : "ZOOKEEPER_CLIENT",
-                "state" : "INSTALLED",
-                "host_name" : "ip-10-38-5-128.ec2.internal"
-              },
-              "component" : [
-                {
-                  "href" : "http://ambari/clusters/mycluster/services/ZOOKEEPER/components/ZOOKEEPER_CLIENT",
-                  "ServiceComponentInfo" : {
-                    "cluster_name" : "mycluster",
-                    "component_name" : "ZOOKEEPER_CLIENT",
-                    "service_name" : "ZOOKEEPER"
-                  }
-                }
-              ]
-            }
-          ]
-        }
-      ]
-    },
-    {
-      "href" : "http://ambari/clusters/mycluster/services/MAPREDUCE",
-      "Services" : {
-        "display_name" : "MapReduce",
-        "description" : "Apache Hadoop Distributed Processing Framework",
-        "attributes" : "{ \"runnable\": true, \"mustInstall\": true, \"editable\": false, \"noDisplay\": false }"
-      },
-      "ServiceInfo" : {
-        "cluster_name" : "mycluster",
-        "state" : "STARTED",
-        "service_name" : "MAPREDUCE"
-      },
-      "components" : [
-        {
-          "href" : "http://ambari/clusters/mycluster/services/MAPREDUCE/components/JOBTRACKER",
+          "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/services/HDFS/components/NAMENODE",
           "ServiceComponentInfo" : {
             "cluster_name" : "mycluster",
-            "component_name" : "JOBTRACKER",
-            "service_name" : "MAPREDUCE"
+            "component_name" : "NAMENODE",
+            "service_name" : "HDFS"
           },
           "host_components" : [
             {
-              "href" : "http://ambari/clusters/mycluster/hosts/ip-10-38-5-128.ec2.internal/host_components/JOBTRACKER",
+              "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/NAMENODE",
               "HostRoles" : {
                 "cluster_name" : "mycluster",
-                "role_id" : "3",
-                "component_name" : "JOBTRACKER",
                 "state" : "STARTED",
-                "host_name" : "ip-10-38-5-128.ec2.internal"
+                "component_name" : "NAMENODE",
+                "host_name" : "dev.hortonworks.com"
               },
               "metrics" : {
                 "rpc" : {
-                  "rpcAuthorizationSuccesses" : 8,
-                  "SentBytes" : 187411672,
+                  "rpcAuthorizationSuccesses" : 0,
+                  "SentBytes" : 504011,
                   "rpcAuthorizationFailures" : 0,
-                  "ReceivedBytes" : 570755511,
+                  "ReceivedBytes" : 1055599,
                   "NumOpenConnections" : 0,
                   "callQueueLen" : 0,
-                  "RpcQueueTime_num_ops" : 1751188,
+                  "RpcQueueTime_num_ops" : 3468,
                   "rpcAuthenticationSuccesses" : 0,
-                  "RpcProcessingTime_num_ops" : 1751188,
-                  "RpcProcessingTime_avg_time" : 0.30303030303030304,
+                  "RpcProcessingTime_num_ops" : 3468,
+                  "RpcProcessingTime_avg_time" : 0.0,
                   "rpcAuthenticationFailures" : 0,
-                  "RpcQueueTime_avg_time" : 1.6969696969696975
+                  "RpcQueueTime_avg_time" : 0.6666666666666667
+                },
+                "dfs" : {
+                  "namenode" : {
+                    "AddBlockOps" : 0,
+                    "FileInfoOps" : 0,
+                    "CreateFileOps" : 0,
+                    "GetListingOps" : 0,
+                    "Transactions_num_ops" : 0,
+                    "GetBlockLocations" : 0,
+                    "Syncs_avg_time" : 0.0,
+                    "blockReport_num_ops" : 0,
+                    "Syncs_num_ops" : 0,
+                    "FilesInGetListingOps" : 0,
+                    "Transactions_avg_time" : 0.0,
+                    "FilesCreated" : 0,
+                    "blockReport_avg_time" : 0.0
+                  }
                 },
                 "rpcdetailed" : {
-                  "getProtocolVersion_avg_time" : 0.0,
-                  "getProtocolVersion_num_ops" : 11
+                  "sendHeartbeat_avg_time" : 0.0,
+                  "sendHeartbeat_num_ops" : 3240
                 },
                 "jvm" : {
-                  "memHeapCommittedM" : 185.1875,
+                  "memHeapCommittedM" : 960.0,
                   "logFatal" : 0,
                   "threadsBlocked" : 0,
-                  "gcCount" : 165,
-                  "threadsWaiting" : 59,
+                  "gcCount" : 1,
+                  "threadsWaiting" : 14,
                   "logWarn" : 0,
                   "logError" : 0,
-                  "memNonHeapCommittedM" : 38.722656,
-                  "memNonHeapUsedM" : 25.408173,
-                  "gcTimeMillis" : 3812,
+                  "memNonHeapCommittedM" : 23.1875,
+                  "memNonHeapUsedM" : 20.247017,
+                  "gcTimeMillis" : 55,
                   "logInfo" : 3,
                   "threadsNew" : 0,
-                  "memHeapUsedM" : 150.10947,
+                  "memHeapUsedM" : 136.56186,
                   "threadsTerminated" : 0,
-                  "threadsTimedWaiting" : 10,
+                  "threadsTimedWaiting" : 7,
                   "threadsRunnable" : 6
                 },
                 "metricssystem" : {
                   "dropped_pub_all" : 0,
                   "num_sources" : 6,
-                  "publish_max_time" : 543.0,
-                  "publish_num_ops" : 55219,
+                  "publish_max_time" : 6.0,
+                  "publish_num_ops" : 972,
                   "snapshot_stdev_time" : 0.37796447300922725,
-                  "snapshot_num_ops" : 386539,
+                  "snapshot_num_ops" : 6810,
                   "publish_stdev_time" : 0.0,
                   "num_sinks" : 1,
                   "publish_imin_time" : 0.0,
@@ -383,48 +324,18 @@
                   "snapshot_imax_time" : 1.0,
                   "publish_avg_time" : 0.0,
                   "publish_min_time" : 0.0,
-                  "snapshot_max_time" : 694.0,
+                  "snapshot_max_time" : 10.0,
                   "publish_imax_time" : 1.401298464324817E-45,
-                  "snapshot_avg_time" : 0.14285714285714285
-                }
-              },
-              "component" : [
-                {
-                  "href" : "http://ambari/clusters/mycluster/services/MAPREDUCE/components/JOBTRACKER",
-                  "ServiceComponentInfo" : {
-                    "cluster_name" : "mycluster",
-                    "component_name" : "JOBTRACKER",
-                    "service_name" : "MAPREDUCE"
-                  }
+                  "snapshot_avg_time" : 0.14285714285714288
                 }
-              ]
-            }
-          ]
-        },
-        {
-          "href" : "http://ambari/clusters/mycluster/services/MAPREDUCE/components/MAPREDUCE_CLIENT",
-          "ServiceComponentInfo" : {
-            "cluster_name" : "mycluster",
-            "component_name" : "MAPREDUCE_CLIENT",
-            "service_name" : "MAPREDUCE"
-          },
-          "host_components" : [
-            {
-              "href" : "http://ambari/clusters/mycluster/hosts/ip-10-38-5-128.ec2.internal/host_components/MAPREDUCE_CLIENT",
-              "HostRoles" : {
-                "cluster_name" : "mycluster",
-                "role_id" : "27",
-                "component_name" : "MAPREDUCE_CLIENT",
-                "state" : "INSTALLED",
-                "host_name" : "ip-10-38-5-128.ec2.internal"
               },
               "component" : [
                 {
-                  "href" : "http://ambari/clusters/mycluster/services/MAPREDUCE/components/MAPREDUCE_CLIENT",
+                  "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/services/HDFS/components/NAMENODE",
                   "ServiceComponentInfo" : {
                     "cluster_name" : "mycluster",
-                    "component_name" : "MAPREDUCE_CLIENT",
-                    "service_name" : "MAPREDUCE"
+                    "component_name" : "NAMENODE",
+                    "service_name" : "HDFS"
                   }
                 }
               ]
@@ -432,66 +343,61 @@
           ]
         },
         {
-          "href" : "http://ambari/clusters/mycluster/services/MAPREDUCE/components/TASKTRACKER",
+          "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/services/HDFS/components/DATANODE",
           "ServiceComponentInfo" : {
             "cluster_name" : "mycluster",
-            "component_name" : "TASKTRACKER",
-            "service_name" : "MAPREDUCE"
+            "component_name" : "DATANODE",
+            "service_name" : "HDFS"
           },
           "host_components" : [
             {
-              "href" : "http://ambari/clusters/mycluster/hosts/ip-10-38-5-128.ec2.internal/host_components/TASKTRACKER",
+              "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/DATANODE",
               "HostRoles" : {
                 "cluster_name" : "mycluster",
-                "role_id" : "22",
-                "component_name" : "TASKTRACKER",
                 "state" : "STARTED",
-                "host_name" : "ip-10-38-5-128.ec2.internal"
+                "component_name" : "DATANODE",
+                "host_name" : "dev.hortonworks.com"
               },
               "metrics" : {
                 "rpc" : {
-                  "rpcAuthorizationSuccesses" : 14,
-                  "SentBytes" : 11141,
+                  "rpcAuthorizationSuccesses" : 0,
+                  "SentBytes" : 0,
                   "rpcAuthorizationFailures" : 0,
-                  "ReceivedBytes" : 40426,
+                  "ReceivedBytes" : 0,
                   "NumOpenConnections" : 0,
                   "callQueueLen" : 0,
-                  "RpcQueueTime_num_ops" : 93,
+                  "RpcQueueTime_num_ops" : 0,
                   "rpcAuthenticationSuccesses" : 0,
-                  "RpcProcessingTime_num_ops" : 93,
-                  "RpcProcessingTime_avg_time" : 0.4,
+                  "RpcProcessingTime_num_ops" : 0,
+                  "RpcProcessingTime_avg_time" : 0.0,
                   "rpcAuthenticationFailures" : 0,
                   "RpcQueueTime_avg_time" : 0.0
                 },
-                "rpcdetailed" : {
-                  "getProtocolVersion_avg_time" : 0.0,
-                  "getProtocolVersion_num_ops" : 14
-                },
                 "jvm" : {
-                  "memHeapCommittedM" : 27.3125,
+                  "memHeapCommittedM" : 45.5625,
                   "logFatal" : 0,
                   "threadsBlocked" : 0,
-                  "gcCount" : 46316,
-                  "threadsWaiting" : 15,
+                  "gcCount" : 14,
+                  "threadsWaiting" : 7,
                   "logWarn" : 0,
                   "logError" : 0,
-                  "memNonHeapCommittedM" : 33.75,
-                  "memNonHeapUsedM" : 23.388573,
-                  "gcTimeMillis" : 367178,
+                  "memNonHeapCommittedM" : 23.1875,
+                  "memNonHeapUsedM" : 18.308372,
+                  "gcTimeMillis" : 67,
                   "logInfo" : 3,
                   "threadsNew" : 0,
-                  "memHeapUsedM" : 23.116539,
+                  "memHeapUsedM" : 2.4481506,
                   "threadsTerminated" : 0,
                   "threadsTimedWaiting" : 7,
-                  "threadsRunnable" : 6
+                  "threadsRunnable" : 7
                 },
                 "metricssystem" : {
                   "dropped_pub_all" : 0,
-                  "num_sources" : 6,
-                  "publish_max_time" : 808.0,
-                  "publish_num_ops" : 55201,
+                  "num_sources" : 5,
+                  "publish_max_time" : 3.0,
+                  "publish_num_ops" : 974,
                   "snapshot_stdev_time" : 0.0,
-                  "snapshot_num_ops" : 386413,
+                  "snapshot_num_ops" : 5841,
                   "publish_stdev_time" : 0.0,
                   "num_sinks" : 1,
                   "publish_imin_time" : 0.0,
@@ -500,161 +406,14 @@
                   "snapshot_imax_time" : 1.401298464324817E-45,
                   "publish_avg_time" : 0.0,
                   "publish_min_time" : 0.0,
-                  "snapshot_max_time" : 656.0,
+                  "snapshot_max_time" : 2.0,
                   "publish_imax_time" : 1.401298464324817E-45,
                   "snapshot_avg_time" : 0.0
                 }
               },
               "component" : [
                 {
-                  "href" : "http://ambari/clusters/mycluster/services/MAPREDUCE/components/TASKTRACKER",
-                  "ServiceComponentInfo" : {
-                    "cluster_name" : "mycluster",
-                    "component_name" : "TASKTRACKER",
-                    "service_name" : "MAPREDUCE"
-                  }
-                }
-              ]
-            }
-          ]
-        }
-      ]
-    },
-    {
-      "href" : "http://ambari/clusters/mycluster/services/SQOOP",
-      "Services" : {
-        "display_name" : "Sqoop",
-        "description" : "Tool for transferring bulk data between Apache Hadoop and structured datastores such as relational databases",
-        "attributes" : "{ \"runnable\": false, \"mustInstall\": false, \"editable\": true, \"noDisplay\": false }"
-      },
-      "ServiceInfo" : {
-        "cluster_name" : "mycluster",
-        "state" : "INSTALLED",
-        "service_name" : "SQOOP"
-      },
-      "components" : [
-        {
-          "href" : "http://ambari/clusters/mycluster/services/SQOOP/components/SQOOP_CLIENT",
-          "ServiceComponentInfo" : {
-            "cluster_name" : "mycluster",
-            "component_name" : "SQOOP_CLIENT",
-            "service_name" : "SQOOP"
-          },
-          "host_components" : [
-            {
-              "href" : "http://ambari/clusters/mycluster/hosts/ip-10-38-5-128.ec2.internal/host_components/SQOOP_CLIENT",
-              "HostRoles" : {
-                "cluster_name" : "mycluster",
-                "role_id" : "31",
-                "component_name" : "SQOOP_CLIENT",
-                "state" : "INSTALLED",
-                "host_name" : "ip-10-38-5-128.ec2.internal"
-              },
-              "component" : [
-                {
-                  "href" : "http://ambari/clusters/mycluster/services/SQOOP/components/SQOOP_CLIENT",
-                  "ServiceComponentInfo" : {
-                    "cluster_name" : "mycluster",
-                    "component_name" : "SQOOP_CLIENT",
-                    "service_name" : "SQOOP"
-                  }
-                }
-              ]
-            }
-          ]
-        }
-      ]
-    },
-    {
-      "href" : "http://ambari/clusters/mycluster/services/HDFS",
-      "Services" : {
-        "display_name" : "HDFS",
-        "description" : "Apache Hadoop Distributed File System",
-        "attributes" : "{ \"runnable\": true, \"mustInstall\": true, \"editable\": false, \"noDisplay\": false }"
-      },
-      "ServiceInfo" : {
-        "cluster_name" : "mycluster",
-        "state" : "STARTED",
-        "service_name" : "HDFS"
-      },
-      "components" : [
-        {
-          "href" : "http://ambari/clusters/mycluster/services/HDFS/components/DATANODE",
-          "ServiceComponentInfo" : {
-            "cluster_name" : "mycluster",
-            "component_name" : "DATANODE",
-            "service_name" : "HDFS"
-          },
-          "host_components" : [
-            {
-              "href" : "http://ambari/clusters/mycluster/hosts/ip-10-38-5-128.ec2.internal/host_components/DATANODE",
-              "HostRoles" : {
-                "cluster_name" : "mycluster",
-                "role_id" : "23",
-                "component_name" : "DATANODE",
-                "state" : "STARTED",
-                "host_name" : "ip-10-38-5-128.ec2.internal"
-              },
-              "metrics" : {
-                "rpc" : {
-                  "rpcAuthorizationSuccesses" : 4,
-                  "SentBytes" : 1350,
-                  "rpcAuthorizationFailures" : 0,
-                  "ReceivedBytes" : 2006,
-                  "NumOpenConnections" : 0,
-                  "callQueueLen" : 0,
-                  "RpcQueueTime_num_ops" : 7,
-                  "rpcAuthenticationSuccesses" : 0,
-                  "RpcProcessingTime_num_ops" : 7,
-                  "RpcProcessingTime_avg_time" : 1.0,
-                  "rpcAuthenticationFailures" : 0,
-                  "RpcQueueTime_avg_time" : 0.0
-                },
-                "rpcdetailed" : {
-                  "getProtocolVersion_avg_time" : 0.0,
-                  "getProtocolVersion_num_ops" : 2
-                },
-                "jvm" : {
-                  "memHeapCommittedM" : 84.3125,
-                  "logFatal" : 0,
-                  "threadsBlocked" : 0,
-                  "gcCount" : 1229,
-                  "threadsWaiting" : 8,
-                  "logWarn" : 0,
-                  "logError" : 0,
-                  "memNonHeapCommittedM" : 23.375,
-                  "memNonHeapUsedM" : 21.495056,
-                  "gcTimeMillis" : 8111,
-                  "logInfo" : 3,
-                  "threadsNew" : 0,
-                  "memHeapUsedM" : 28.507965,
-                  "threadsTerminated" : 0,
-                  "threadsTimedWaiting" : 8,
-                  "threadsRunnable" : 12
-                },
-                "metricssystem" : {
-                  "dropped_pub_all" : 0,
-                  "num_sources" : 5,
-                  "publish_max_time" : 501.0,
-                  "publish_num_ops" : 55260,
-                  "snapshot_stdev_time" : 0.408248290463863,
-                  "snapshot_num_ops" : 331565,
-                  "publish_stdev_time" : 0.0,
-                  "num_sinks" : 1,
-                  "publish_imin_time" : 1.0,
-                  "snapshot_min_time" : 0.0,
-                  "snapshot_imin_time" : 0.0,
-                  "snapshot_imax_time" : 1.0,
-                  "publish_avg_time" : 1.0,
-                  "publish_min_time" : 0.0,
-                  "snapshot_max_time" : 585.0,
-                  "publish_imax_time" : 1.0,
-                  "snapshot_avg_time" : 0.16666666666666669
-                }
-              },
-              "component" : [
-                {
-                  "href" : "http://ambari/clusters/mycluster/services/HDFS/components/DATANODE",
+                  "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/services/HDFS/components/DATANODE",
                   "ServiceComponentInfo" : {
                     "cluster_name" : "mycluster",
                     "component_name" : "DATANODE",
@@ -666,7 +425,7 @@
           ]
         },
         {
-          "href" : "http://ambari/clusters/mycluster/services/HDFS/components/HDFS_CLIENT",
+          "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/services/HDFS/components/HDFS_CLIENT",
           "ServiceComponentInfo" : {
             "cluster_name" : "mycluster",
             "component_name" : "HDFS_CLIENT",
@@ -674,17 +433,16 @@
           },
           "host_components" : [
             {
-              "href" : "http://ambari/clusters/mycluster/hosts/ip-10-38-5-128.ec2.internal/host_components/HDFS_CLIENT",
+              "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/HDFS_CLIENT",
               "HostRoles" : {
                 "cluster_name" : "mycluster",
-                "role_id" : "26",
-                "component_name" : "HDFS_CLIENT",
                 "state" : "INSTALLED",
-                "host_name" : "ip-10-38-5-128.ec2.internal"
+                "component_name" : "HDFS_CLIENT",
+                "host_name" : "dev.hortonworks.com"
               },
               "component" : [
                 {
-                  "href" : "http://ambari/clusters/mycluster/services/HDFS/components/HDFS_CLIENT",
+                  "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/services/HDFS/components/HDFS_CLIENT",
                   "ServiceComponentInfo" : {
                     "cluster_name" : "mycluster",
                     "component_name" : "HDFS_CLIENT",
@@ -694,468 +452,6 @@
               ]
             }
           ]
-        },
-        {
-          "href" : "http://ambari/clusters/mycluster/services/HDFS/components/SNAMENODE",
-          "ServiceComponentInfo" : {
-            "cluster_name" : "mycluster",
-            "component_name" : "SNAMENODE",
-            "service_name" : "HDFS"
-          },
-          "host_components" : [
-            {
-              "href" : "http://ambari/clusters/mycluster/hosts/ip-10-38-5-128.ec2.internal/host_components/SNAMENODE",
-              "HostRoles" : {
-                "cluster_name" : "mycluster",
-                "role_id" : "2",
-                "component_name" : "SNAMENODE",
-                "state" : "STARTED",
-                "host_name" : "ip-10-38-5-128.ec2.internal"
-              },
-              "component" : [
-                {
-                  "href" : "http://ambari/clusters/mycluster/services/HDFS/components/SNAMENODE",
-                  "ServiceComponentInfo" : {
-                    "cluster_name" : "mycluster",
-                    "component_name" : "SNAMENODE",
-                    "service_name" : "HDFS"
-                  }
-                }
-              ]
-            }
-          ]
-        },
-        {
-          "href" : "http://ambari/clusters/mycluster/services/HDFS/components/NAMENODE",
-          "ServiceComponentInfo" : {
-            "cluster_name" : "mycluster",
-            "component_name" : "NAMENODE",
-            "service_name" : "HDFS"
-          },
-          "host_components" : [
-            {
-              "href" : "http://ambari/clusters/mycluster/hosts/ip-10-38-5-128.ec2.internal/host_components/NAMENODE",
-              "HostRoles" : {
-                "cluster_name" : "mycluster",
-                "role_id" : "1",
-                "component_name" : "NAMENODE",
-                "state" : "STARTED",
-                "host_name" : "ip-10-38-5-128.ec2.internal"
-              },
-              "metrics" : {
-                "rpc" : {
-                  "rpcAuthorizationSuccesses" : 56734,
-                  "SentBytes" : 71919973,
-                  "rpcAuthorizationFailures" : 0,
-                  "ReceivedBytes" : 82615006,
-                  "NumOpenConnections" : 0,
-                  "callQueueLen" : 0,
-                  "RpcQueueTime_num_ops" : 407816,
-                  "rpcAuthenticationSuccesses" : 0,
-                  "RpcProcessingTime_num_ops" : 407816,
-                  "RpcProcessingTime_avg_time" : 0.0,
-                  "rpcAuthenticationFailures" : 0,
-                  "RpcQueueTime_avg_time" : 0.0
-                },
-                "dfs" : {
-                  "namenode" : {
-                    "AddBlockOps" : 178,
-                    "FileInfoOps" : 91688,
-                    "CreateFileOps" : 181,
-                    "GetListingOps" : 73730,
-                    "Transactions_num_ops" : 973,
-                    "GetBlockLocations" : 45,
-                    "Syncs_avg_time" : 4.0,
-                    "blockReport_num_ops" : 137,
-                    "Syncs_num_ops" : 587,
-                    "FilesInGetListingOps" : 188175,
-                    "Transactions_avg_time" : 0.0,
-                    "FilesCreated" : 314,
-                    "blockReport_avg_time" : 1.0
-                  }
-                },
-                "rpcdetailed" : {
-                  "addBlock_avg_time" : 0.0,
-                  "rollFsImage_num_ops" : 26,
-                  "getListing_num_ops" : 82658,
-                  "renewLease_avg_time" : 0.0,
-                  "sendHeartbeat_num_ops" : 183761,
-                  "create_avg_time" : 2.0,
-                  "fsync_num_ops" : 8,
-                  "blockReport_num_ops" : 154,
-                  "create_num_ops" : 181,
-                  "getEditLogSize_num_ops" : 1837,
-                  "rollEditLog_num_ops" : 26,
-                  "rollFsImage_avg_time" : 237.0,
-                  "getBlockLocations_num_ops" : 45,
-                  "getFileInfo_avg_time" : 0.0,
-                  "addBlock_num_ops" : 178,
-                  "getProtocolVersion_avg_time" : 0.0,
-                  "getListing_avg_time" : 0.33333333333333337,
-                  "rollEditLog_avg_time" : 36.0,
-                  "getBlockLocations_avg_time" : 0.0,
-                  "blockReceived_avg_time" : 0.0,
-                  "renewLease_num_ops" : 18186,
-                  "getEditLogSize_avg_time" : 0.0,
-                  "getFileInfo_num_ops" : 101504,
-                  "sendHeartbeat_avg_time" : 0.0,
-                  "complete_avg_time" : 12.0,
-                  "fsync_avg_time" : 0.0,
-                  "complete_num_ops" : 183,
-                  "blockReceived_num_ops" : 177,
-                  "getProtocolVersion_num_ops" : 18437,
-                  "blockReport_avg_time" : 1.0
-                },
-                "jvm" : {
-                  "memHeapCommittedM" : 432.0625,
-                  "logFatal" : 0,
-                  "threadsBlocked" : 0,
-                  "gcCount" : 194029,
-                  "threadsWaiting" : 104,
-                  "logWarn" : 0,
-                  "logError" : 0,
-                  "memNonHeapCommittedM" : 36.847656,
-                  "memNonHeapUsedM" : 23.048737,
-                  "gcTimeMillis" : 218543395,
-                  "logInfo" : 3,
-                  "threadsNew" : 0,
-                  "memHeapUsedM" : 93.0164,
-                  "threadsTerminated" : 0,
-                  "threadsTimedWaiting" : 8,
-                  "threadsRunnable" : 10
-                },
-                "metricssystem" : {
-                  "dropped_pub_all" : 0,
-                  "num_sources" : 6,
-                  "publish_max_time" : 2320.0,
-                  "publish_num_ops" : 55266,
-                  "snapshot_stdev_time" : 0.37796447300922725,
-                  "snapshot_num_ops" : 386868,
-                  "publish_stdev_time" : 0.0,
-                  "num_sinks" : 1,
-                  "publish_imin_time" : 0.0,
-                  "snapshot_min_time" : 0.0,
-                  "snapshot_imin_time" : 0.0,
-                  "snapshot_imax_time" : 1.0,
-                  "publish_avg_time" : 0.0,
-                  "publish_min_time" : 0.0,
-                  "snapshot_max_time" : 2770.0,
-                  "publish_imax_time" : 1.401298464324817E-45,
-                  "snapshot_avg_time" : 0.14285714285714288
-                }
-              },
-              "component" : [
-                {
-                  "href" : "http://ambari/clusters/mycluster/services/HDFS/components/NAMENODE",
-                  "ServiceComponentInfo" : {
-                    "cluster_name" : "mycluster",
-                    "component_name" : "NAMENODE",
-                    "service_name" : "HDFS"
-                  }
-                }
-              ]
-            }
-          ]
-        }
-      ]
-    },
-    {
-      "href" : "http://ambari/clusters/mycluster/services/NAGIOS",
-      "Services" : {
-        "display_name" : "Nagios",
-        "description" : "Nagios-based Monitoring for HDP",
-        "attributes" : "{ \"runnable\": true, \"mustInstall\": true, \"editable\": false, \"noDisplay\": false }"
-      },
-      "ServiceInfo" : {
-        "cluster_name" : "mycluster",
-        "state" : "STARTED",
-        "service_name" : "NAGIOS"
-      },
-      "components" : [
-        {
-          "href" : "http://ambari/clusters/mycluster/services/NAGIOS/components/NAGIOS_SERVER",
-          "ServiceComponentInfo" : {
-            "cluster_name" : "mycluster",
-            "component_name" : "NAGIOS_SERVER",
-            "service_name" : "NAGIOS"
-          },
-          "host_components" : [
-            {
-              "href" : "http://ambari/clusters/mycluster/hosts/ip-10-38-5-128.ec2.internal/host_components/NAGIOS_SERVER",
-              "HostRoles" : {
-                "cluster_name" : "mycluster",
-                "role_id" : "10",
-                "component_name" : "NAGIOS_SERVER",
-                "state" : "STARTED",
-                "host_name" : "ip-10-38-5-128.ec2.internal"
-              },
-              "component" : [
-                {
-                  "href" : "http://ambari/clusters/mycluster/services/NAGIOS/components/NAGIOS_SERVER",
-                  "ServiceComponentInfo" : {
-                    "cluster_name" : "mycluster",
-                    "component_name" : "NAGIOS_SERVER",
-                    "service_name" : "NAGIOS"
-                  }
-                }
-              ]
-            }
-          ]
-        }
-      ]
-    },
-    {
-      "href" : "http://ambari/clusters/mycluster/services/HIVE",
-      "Services" : {
-        "display_name" : "Hive/HCatalog",
-        "description" : "Hive - Data Warehouse system for Apache Hadoop, HCatalog - Table and Storage Management service for data created using Apache Hadoop",
-        "attributes" : "{ \"runnable\": true, \"mustInstall\": false, \"editable\": true, \"noDisplay\": false }"
-      },
-      "ServiceInfo" : {
-        "cluster_name" : "mycluster",
-        "state" : "STARTED",
-        "service_name" : "HIVE"
-      },
-      "components" : [
-        {
-          "href" : "http://ambari/clusters/mycluster/services/HIVE/components/HIVE_SERVER",
-          "ServiceComponentInfo" : {
-            "cluster_name" : "mycluster",
-            "component_name" : "HIVE_SERVER",
-            "service_name" : "HIVE"
-          },
-          "host_components" : [
-            {
-              "href" : "http://ambari/clusters/mycluster/hosts/ip-10-38-5-128.ec2.internal/host_components/HIVE_SERVER",
-              "HostRoles" : {
-                "cluster_name" : "mycluster",
-                "role_id" : "7",
-                "component_name" : "HIVE_SERVER",
-                "state" : "STARTED",
-                "host_name" : "ip-10-38-5-128.ec2.internal"
-              },
-              "component" : [
-                {
-                  "href" : "http://ambari/clusters/mycluster/services/HIVE/components/HIVE_SERVER",
-                  "ServiceComponentInfo" : {
-                    "cluster_name" : "mycluster",
-                    "component_name" : "HIVE_SERVER",
-                    "service_name" : "HIVE"
-                  }
-                }
-              ]
-            }
-          ]
-        },
-        {
-          "href" : "http://ambari/clusters/mycluster/services/HIVE/components/HIVE_CLIENT",
-          "ServiceComponentInfo" : {
-            "cluster_name" : "mycluster",
-            "component_name" : "HIVE_CLIENT",
-            "service_name" : "HIVE"
-          },
-          "host_components" : [
-            {
-              "href" : "http://ambari/clusters/mycluster/hosts/ip-10-38-5-128.ec2.internal/host_components/HIVE_CLIENT",
-              "HostRoles" : {
-                "cluster_name" : "mycluster",
-                "role_id" : "33",
-                "component_name" : "HIVE_CLIENT",
-                "state" : "INSTALLED",
-                "host_name" : "ip-10-38-5-128.ec2.internal"
-              },
-              "component" : [
-                {
-                  "href" : "http://ambari/clusters/mycluster/services/HIVE/components/HIVE_CLIENT",
-                  "ServiceComponentInfo" : {
-                    "cluster_name" : "mycluster",
-                    "component_name" : "HIVE_CLIENT",
-                    "service_name" : "HIVE"
-                  }
-                }
-              ]
-            }
-          ]
-        },
-        {
-          "href" : "http://ambari/clusters/mycluster/services/HIVE/components/HIVE_MYSQL",
-          "ServiceComponentInfo" : {
-            "cluster_name" : "mycluster",
-            "component_name" : "HIVE_MYSQL",
-            "service_name" : "HIVE"
-          },
-          "host_components" : [
-            {
-              "href" : "http://ambari/clusters/mycluster/hosts/ip-10-38-5-128.ec2.internal/host_components/HIVE_MYSQL",
-              "HostRoles" : {
-                "cluster_name" : "mycluster",
-                "role_id" : "35",
-                "component_name" : "HIVE_MYSQL",
-                "state" : "STARTED",
-                "host_name" : "ip-10-38-5-128.ec2.internal"
-              },
-              "component" : [
-                {
-                  "href" : "http://ambari/clusters/mycluster/services/HIVE/components/HIVE_MYSQL",
-                  "ServiceComponentInfo" : {
-                    "cluster_name" : "mycluster",
-                    "component_name" : "HIVE_MYSQL",
-                    "service_name" : "HIVE"
-                  }
-                }
-              ]
-            }
-          ]
-        }
-      ]
-    },
-    {
-      "href" : "http://ambari/clusters/mycluster/services/GANGLIA",
-      "Services" : {
-        "display_name" : "Ganglia",
-        "description" : "Ganglia-based Metrics Collection for HDP",
-        "attributes" : "{ \"runnable\": true, \"mustInstall\": true, \"editable\": false, \"noDisplay\": false }"
-      },
-      "ServiceInfo" : {
-        "cluster_name" : "mycluster",
-        "state" : "STARTED",
-        "service_name" : "GANGLIA"
-      },
-      "components" : [
-        {
-          "href" : "http://ambari/clusters/mycluster/services/GANGLIA/components/GANGLIA_SERVER",
-          "ServiceComponentInfo" : {
-            "cluster_name" : "mycluster",
-            "component_name" : "GANGLIA_SERVER",
-            "service_name" : "GANGLIA"
-          },
-          "host_components" : [
-            {
-              "href" : "http://ambari/clusters/mycluster/hosts/ip-10-38-5-128.ec2.internal/host_components/GANGLIA_SERVER",
-              "HostRoles" : {
-                "cluster_name" : "mycluster",
-                "role_id" : "9",
-                "component_name" : "GANGLIA_SERVER",
-                "state" : "STARTED",
-                "host_name" : "ip-10-38-5-128.ec2.internal"
-              },
-              "component" : [
-                {
-                  "href" : "http://ambari/clusters/mycluster/services/GANGLIA/components/GANGLIA_SERVER",
-                  "ServiceComponentInfo" : {
-                    "cluster_name" : "mycluster",
-                    "component_name" : "GANGLIA_SERVER",
-                    "service_name" : "GANGLIA"
-                  }
-                }
-              ]
-            }
-          ]
-        },
-        {
-          "href" : "http://ambari/clusters/mycluster/services/GANGLIA/components/GANGLIA_MONITOR",
-          "ServiceComponentInfo" : {
-            "cluster_name" : "mycluster",
-            "component_name" : "GANGLIA_MONITOR",
-            "service_name" : "GANGLIA"
-          },
-          "host_components" : [
-            {
-              "href" : "http://ambari/clusters/mycluster/hosts/ip-10-38-5-128.ec2.internal/host_components/GANGLIA_MONITOR",
-              "HostRoles" : {
-                "cluster_name" : "mycluster",
-                "role_id" : "25",
-                "component_name" : "GANGLIA_MONITOR",
-                "state" : "STARTED",
-                "host_name" : "ip-10-38-5-128.ec2.internal"
-              },
-              "component" : [
-                {
-                  "href" : "http://ambari/clusters/mycluster/services/GANGLIA/components/GANGLIA_MONITOR",
-                  "ServiceComponentInfo" : {
-                    "cluster_name" : "mycluster",
-                    "component_name" : "GANGLIA_MONITOR",
-                    "service_name" : "GANGLIA"
-                  }
-                }
-              ]
-            }
-          ]
-        }
-      ]
-    },
-    {
-      "href" : "http://ambari/clusters/mycluster/services/OOZIE",
-      "Services" : {
-        "display_name" : "Oozie",
-        "description" : "Workflow/Coordination system to manage Apache Hadoop jobs",
-        "attributes" : "{ \"runnable\": true, \"mustInstall\": false, \"editable\": true, \"noDisplay\": false }"
-      },
-      "ServiceInfo" : {
-        "cluster_name" : "mycluster",
-        "state" : "STARTED",
-        "service_name" : "OOZIE"
-      },
-      "components" : [
-        {
-          "href" : "http://ambari/clusters/mycluster/services/OOZIE/components/OOZIE_SERVER",
-          "ServiceComponentInfo" : {
-            "cluster_name" : "mycluster",
-            "component_name" : "OOZIE_SERVER",
-            "service_name" : "OOZIE"
-          },
-          "host_components" : [
-            {
-              "href" : "http://ambari/clusters/mycluster/hosts/ip-10-38-5-128.ec2.internal/host_components/OOZIE_SERVER",
-              "HostRoles" : {
-                "cluster_name" : "mycluster",
-                "role_id" : "6",
-                "component_name" : "OOZIE_SERVER",
-                "state" : "STARTED",
-                "host_name" : "ip-10-38-5-128.ec2.internal"
-              },
-              "component" : [
-                {
-                  "href" : "http://ambari/clusters/mycluster/services/OOZIE/components/OOZIE_SERVER",
-                  "ServiceComponentInfo" : {
-                    "cluster_name" : "mycluster",
-                    "component_name" : "OOZIE_SERVER",
-                    "service_name" : "OOZIE"
-                  }
-                }
-              ]
-            }
-          ]
-        },
-        {
-          "href" : "http://ambari/clusters/mycluster/services/OOZIE/components/OOZIE_CLIENT",
-          "ServiceComponentInfo" : {
-            "cluster_name" : "mycluster",
-            "component_name" : "OOZIE_CLIENT",
-            "service_name" : "OOZIE"
-          },
-          "host_components" : [
-            {
-              "href" : "http://ambari/clusters/mycluster/hosts/ip-10-38-5-128.ec2.internal/host_components/OOZIE_CLIENT",
-              "HostRoles" : {
-                "cluster_name" : "mycluster",
-                "role_id" : "32",
-                "component_name" : "OOZIE_CLIENT",
-                "state" : "INSTALLED",
-                "host_name" : "ip-10-38-5-128.ec2.internal"
-              },
-              "component" : [
-                {
-                  "href" : "http://ambari/clusters/mycluster/services/OOZIE/components/OOZIE_CLIENT",
-                  "ServiceComponentInfo" : {
-                    "cluster_name" : "mycluster",
-                    "component_name" : "OOZIE_CLIENT",
-                    "service_name" : "OOZIE"
-                  }
-                }
-              ]
-            }
-          ]
         }
       ]
     }

Added: incubator/ambari/branches/AMBARI-666/ambari-web/app/assets/data/hosts/hosts.json
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/AMBARI-666/ambari-web/app/assets/data/hosts/hosts.json?rev=1418895&view=auto
==============================================================================
--- incubator/ambari/branches/AMBARI-666/ambari-web/app/assets/data/hosts/hosts.json (added)
+++ incubator/ambari/branches/AMBARI-666/ambari-web/app/assets/data/hosts/hosts.json Sun Dec  9 11:53:15 2012
@@ -0,0 +1,126 @@
+{
+  "href" : "http://localhost:8080/api/hosts?fields=*",
+  "items" : [
+    {
+      "href" : "http://localhost:8080/api/hosts/host1",
+      "Hosts" : {
+        "cpu_count" : 1,
+        "total_mem" : 2055208,
+        "os_arch" : "x86_64",
+        "host_name" : "host01",
+        "os_type" : "centos6",
+        "ip" : "10.0.2.1"
+      }
+    },
+    {
+      "href" : "http://localhost:8080/api/hosts/host1",
+      "Hosts" : {
+        "cpu_count" : 1,
+        "total_mem" : 2055208,
+        "os_arch" : "x86_64",
+        "host_name" : "host02",
+        "os_type" : "centos6",
+        "ip" : "10.0.2.2"
+      }
+    },
+    {
+      "href" : "http://localhost:8080/api/hosts/host1",
+      "Hosts" : {
+        "cpu_count" : 1,
+        "total_mem" : 2055208,
+        "os_arch" : "x86_64",
+        "host_name" : "host03",
+        "os_type" : "centos6",
+        "ip" : "10.0.2.3"
+      }
+    },
+    {
+      "href" : "http://localhost:8080/api/hosts/host1",
+      "Hosts" : {
+        "cpu_count" : 1,
+        "total_mem" : 2055208,
+        "os_arch" : "x86_64",
+        "host_name" : "host04",
+        "os_type" : "centos6",
+        "ip" : "10.0.2.4"
+      }
+    },
+    {
+      "href" : "http://localhost:8080/api/hosts/host1",
+      "Hosts" : {
+        "cpu_count" : 1,
+        "total_mem" : 2055208,
+        "os_arch" : "x86_64",
+        "host_name" : "host05",
+        "os_type" : "centos6",
+        "ip" : "10.0.2.5"
+      }
+    },
+    {
+      "href" : "http://localhost:8080/api/hosts/host1",
+      "Hosts" : {
+        "cpu_count" : 1,
+        "total_mem" : 2055208,
+        "os_arch" : "x86_64",
+        "host_name" : "host06",
+        "os_type" : "centos6",
+        "ip" : "10.0.2.6"
+      }
+    },
+    {
+      "href" : "http://localhost:8080/api/hosts/host1",
+      "Hosts" : {
+        "cpu_count" : 1,
+        "total_mem" : 2055208,
+        "os_arch" : "x86_64",
+        "host_name" : "host07",
+        "os_type" : "centos6",
+        "ip" : "10.0.2.7"
+      }
+    },
+    {
+      "href" : "http://localhost:8080/api/hosts/host1",
+      "Hosts" : {
+        "cpu_count" : 1,
+        "total_mem" : 2055208,
+        "os_arch" : "x86_64",
+        "host_name" : "host08",
+        "os_type" : "centos6",
+        "ip" : "10.0.2.8"
+      }
+    },
+    {
+      "href" : "http://localhost:8080/api/hosts/host1",
+      "Hosts" : {
+        "cpu_count" : 1,
+        "total_mem" : 2055208,
+        "os_arch" : "x86_64",
+        "host_name" : "host09",
+        "os_type" : "centos6",
+        "ip" : "10.0.2.9"
+      }
+    },
+    {
+      "href" : "http://localhost:8080/api/hosts/host1",
+      "Hosts" : {
+        "cpu_count" : 1,
+        "total_mem" : 2055208,
+        "os_arch" : "x86_64",
+        "host_name" : "host10",
+        "os_type" : "centos6",
+        "ip" : "10.0.2.10"
+      }
+    },
+    {
+      "href" : "http://localhost:8080/api/hosts/host1",
+      "Hosts" : {
+        "cpu_count" : 1,
+        "total_mem" : 2055208,
+        "os_arch" : "x86_64",
+        "host_name" : "host11",
+        "os_type" : "centos6",
+        "ip" : "10.0.2.11"
+      }
+    }
+  ]
+}

Modified: incubator/ambari/branches/AMBARI-666/ambari-web/app/controllers/installer.js
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/AMBARI-666/ambari-web/app/controllers/installer.js?rev=1418895&r1=1418894&r2=1418895&view=diff
==============================================================================
--- incubator/ambari/branches/AMBARI-666/ambari-web/app/controllers/installer.js (original)
+++ incubator/ambari/branches/AMBARI-666/ambari-web/app/controllers/installer.js Sun Dec  9 11:53:15 2012
@@ -77,9 +77,20 @@ App.InstallerController = Em.Controller.
    * @param completed
    */
   currentStep: function () {
-    return App.get('router').getInstallerCurrentStep();
+    return App.get('router').getWizardCurrentStep('installer');
   }.property(),
 
+  /**
+   * Set current step to new value.
+   * Method moved from App.router.setInstallerCurrentStep
+   * @param currentStep
+   * @param completed
+   */
+  setCurrentStep: function (currentStep, completed) {
+    App.db.setWizardCurrentStep('installer', currentStep, completed);
+    this.set('currentStep', currentStep);
+  },
+
   clusters: null,
 
   isStep1: function () {

Modified: incubator/ambari/branches/AMBARI-666/ambari-web/app/controllers/main.js
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/AMBARI-666/ambari-web/app/controllers/main.js?rev=1418895&r1=1418894&r2=1418895&view=diff
==============================================================================
--- incubator/ambari/branches/AMBARI-666/ambari-web/app/controllers/main.js (original)
+++ incubator/ambari/branches/AMBARI-666/ambari-web/app/controllers/main.js Sun Dec  9 11:53:15 2012
@@ -21,11 +21,14 @@ require('models/background_operation');
 
 App.MainController = Em.Controller.extend({
   name: 'mainController',
-  backgroundOperations: null,
+  backgroundOperations: [],
+  backgroundOperationsCount : 0,
+  backgroundOperationsUrl : '',
   intervalId: false,
-  updateOperationsInterval: 8000,
+  updateOperationsInterval: 6000,
 
   startLoadOperationsPeriodically: function() {
+    this.loadBackgroundOperations();
     this.intervalId = setInterval(this.loadBackgroundOperations, this.get('updateOperationsInterval'));
   },
   stopLoadOperationsPeriodically:function () {
@@ -36,19 +39,68 @@ App.MainController = Em.Controller.exten
   },
   loadBackgroundOperations: function(){
     var self = App.router.get('mainController');
-    jQuery.getJSON('data/hosts/background_operations/bg_operations.json',
-      function (data) {
-        var backgroundOperations = self.get('backgroundOperations');
-        if(!backgroundOperations || self.get('backgroundOperationsCount') >= 6)
-          self.set('backgroundOperations', data);
-        else backgroundOperations.tasks.pushObjects(data['tasks'])
-      }
-    )
+
+    var url = self.get('backgroundOperationsUrl');
+    if(!url){
+      //cache url, not to execute <code>getClusterName</code> everytime
+      url = (App.testMode) ?
+        '/data/background_operations/list_on_start.json' :
+        '/api/clusters/' + App.router.getClusterName() + '/requests/?fields=tasks/*&tasks/Tasks/status!=COMPLETED';
+      self.set('backgroundOperationsUrl', url);
+    }
+
+    $.ajax({
+      type: "GET",
+      url: url,
+      dataType: 'json',
+      timeout: 5000,
+      success: function (data) {
+        self.updateBackgroundOperations(data);
+      },
+
+      error: function (request, ajaxOptions, error) {
+        //do something
+      },
+
+      statusCode: require('data/statusCodes')
+    });
   },
 
-  backgroundOperationsCount: function() {
-    return this.get('backgroundOperations.tasks.length');
-  }.property('backgroundOperations.tasks.length'),
+  /**
+   * Add new operations to <code>this.backgroundOperations</code> variable
+   * @param data json loaded from server
+   */
+  updateBackgroundOperations : function(data){
+    var runningTasks = [];
+    data.items.forEach(function (item) {
+      item.tasks.forEach(function (task) {
+        if (task.Tasks.status == 'QUEUED') {
+          runningTasks.push(task.Tasks);
+        }
+      });
+    });
+
+    var currentTasks = this.get('backgroundOperations');
+
+    runningTasks.forEach(function(item){
+      var task = currentTasks.findProperty('id', item.id);
+      if(task){
+        currentTasks[currentTasks.indexOf(task)] = item;
+      } else {
+        currentTasks.pushObject(item);
+      }
+    });
+
+    for(var i = currentTasks.length-1; i>=0; i--){
+      var isTaskFinished = !runningTasks.someProperty('id', currentTasks[i].id);
+      if(isTaskFinished){
+        currentTasks.removeAt(i);
+      }
+    }
+
+    this.set('backgroundOperationsCount', currentTasks.length);
+
+  },
 
   showBackgroundOperationsPopup: function(){
     App.ModalPopup.show({

Modified: incubator/ambari/branches/AMBARI-666/ambari-web/app/controllers/main/apps_controller.js
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/AMBARI-666/ambari-web/app/controllers/main/apps_controller.js?rev=1418895&r1=1418894&r2=1418895&view=diff
==============================================================================
--- incubator/ambari/branches/AMBARI-666/ambari-web/app/controllers/main/apps_controller.js (original)
+++ incubator/ambari/branches/AMBARI-666/ambari-web/app/controllers/main/apps_controller.js Sun Dec  9 11:53:15 2012
@@ -68,13 +68,16 @@ App.MainAppsController = Em.ArrayControl
     });
     return r;
   },
+  lastStarClicked: -1,
   /**
    * Click on star on table row
    * @return {Boolean} false for prevent default event handler
    */
-  starClick: function() {
-    event.srcElement.classList.toggle('stared');
-    var id = parseInt(event.srcElement.parentNode.childNodes[1].innerText);
+  starClick: function(event) {
+    event.target.classList.toggle('stared');
+    var cell = event.target.parentNode.parentNode;
+    var row = cell.parentNode;
+    var id = parseInt(jQuery(event.target).parent().children(1).text());
     if (!this.issetStaredRun(id)) {
       this.get('staredRuns').push(this.getRunById(id));
     }
@@ -85,13 +88,7 @@ App.MainAppsController = Em.ArrayControl
       }
     }
     this.set('staredRunsLength', this.get('staredRuns').length);
+    this.set('lastStarClicked', id);
     return false;
-  },
-  /**
-   * Flush all starred runs
-   */
-  clearStars: function() {
-    this.set('staredRuns', []);
-    this.set('staredRunsLength', 0);
   }
 })

Modified: incubator/ambari/branches/AMBARI-666/ambari-web/app/controllers/main/host.js
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/AMBARI-666/ambari-web/app/controllers/main/host.js?rev=1418895&r1=1418894&r2=1418895&view=diff
==============================================================================
--- incubator/ambari/branches/AMBARI-666/ambari-web/app/controllers/main/host.js (original)
+++ incubator/ambari/branches/AMBARI-666/ambari-web/app/controllers/main/host.js Sun Dec  9 11:53:15 2012
@@ -35,6 +35,27 @@ App.MainHostController = Em.ArrayControl
   rangeStart:0,
   allChecked:false,
   selectedHostsIds:[],
+  selectedRack:null,
+  assignHostsToRack:function () {
+    var selectedRack = this.get('selectedRack');
+    var sureMessage = this.t('hosts.assignToRack.sure');
+    var hostsIds = this.get('selectedHostsIds');
+
+    var hostString = hostsIds.length + " " + this.t(hostsIds.length > 1 ? "host.plural" : "host.singular");
+
+    if (selectedRack.constructor == 'App.Cluster' && hostsIds.length
+      && confirm(sureMessage.format(hostString, selectedRack.get('clusterName')))) {
+      this.get('content').forEach(function (host) {
+        if (host.get('isChecked')) {
+          host.set('cluster', selectedRack);
+          host.set('isChecked', false);
+        }
+      })
+      this.set('selectedHostsIds', []);
+    }
+
+  }.observes('selectedRack'),
+
   sortingAsc:true,
   isSort:false,
   sortClass:function () {
@@ -83,12 +104,14 @@ App.MainHostController = Em.ArrayControl
   onHostChecked:function (host) {
     var selected = this.get('selectedHostsIds');
     host.set('isChecked', !host.get('isChecked'));
-    if (host.get('isChecked')) selected.push(host.get('id'));
-    else {
+    if (host.get('isChecked')) {
+      selected.push(host.get('id'));
+    } else {
       var index = selected.indexOf(host.get('id'));
       if (index != -1) selected.splice(index, 1);
     }
     this.set('isDisabled', selected.length == 0);
+    this.propertyDidChange('selectedHostsIds');
   },
 
   changeSelectedHosts:function () {

Modified: incubator/ambari/branches/AMBARI-666/ambari-web/app/controllers/main/service/info/configs.js
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/AMBARI-666/ambari-web/app/controllers/main/service/info/configs.js?rev=1418895&r1=1418894&r2=1418895&view=diff
==============================================================================
--- incubator/ambari/branches/AMBARI-666/ambari-web/app/controllers/main/service/info/configs.js (original)
+++ incubator/ambari/branches/AMBARI-666/ambari-web/app/controllers/main/service/info/configs.js Sun Dec  9 11:53:15 2012
@@ -17,8 +17,149 @@
  */
 
 var App = require('app');
+require('controllers/wizard/slave_component_groups_controller');
 
 App.MainServiceInfoConfigsController = Em.Controller.extend({
   name: 'mainServiceInfoConfigsController',
-  content: 'Configs'
-})
\ No newline at end of file
+  stepConfigs: [], //contains all field properties that are viewed in this service
+  selectedService: null,
+  serviceConfigs: require('data/service_configs'),
+
+  isSubmitDisabled: function () {
+    return !this.stepConfigs.everyProperty('errorCount', 0);
+  }.property('stepConfigs.@each.errorCount'),
+
+  slaveComponentHosts : function(){
+    console.log('slaveComponentHosts');
+    console.log(App.db.getSlaveComponentHosts());
+    return App.db.getSlaveComponentHosts();
+  }.property('content'),
+
+  clearStep: function () {
+    this.get('stepConfigs').clear();
+  },
+
+  serviceConfigProperties: function() {
+    console.log('serviceConfigProperties');
+    console.log(App.db.getServiceConfigProperties());
+    return App.db.getServiceConfigProperties();
+  }.property('content'),
+
+  /**
+   * On load function
+   */
+  loadStep: function () {
+    console.log("TRACE: Loading configure for service");
+
+    this.clearStep();
+    this.renderServiceConfigs(this.serviceConfigs);
+
+    var storedServices = this.get('serviceConfigProperties');
+    if (storedServices) {
+      var configs = new Ember.Set();
+
+      // for all services`
+      this.get('stepConfigs').forEach(function (_content) {
+        //for all components
+        _content.get('configs').forEach(function (_config) {
+
+          var componentVal = storedServices.findProperty('name', _config.get('name'));
+          //if we have config for specified component
+          if(componentVal){
+
+            //set it
+            _config.set('value', componentVal.value)
+          }
+
+        }, this);
+      }, this);
+    }
+
+    console.log('---------------------------------------');
+    console.log(this.get('stepConfigs'));
+
+  },
+
+  /**
+   * Render configs for active services
+   * @param serviceConfigs
+   */
+  renderServiceConfigs: function (serviceConfigs) {
+    serviceConfigs.forEach(function (_serviceConfig) {
+      var serviceConfig = App.ServiceConfig.create({
+        serviceName: _serviceConfig.serviceName,
+        displayName: _serviceConfig.displayName,
+        configCategories: _serviceConfig.configCategories,
+        configs: []
+      });
+
+      if (this.get('content.serviceName') && this.get('content.serviceName').toUpperCase() === serviceConfig.serviceName) {
+        this.loadComponentConfigs(_serviceConfig, serviceConfig);
+
+        console.log('pushing ' + serviceConfig.serviceName);
+        this.get('stepConfigs').pushObject(serviceConfig);
+
+      } else {
+        console.log('skipping ' + serviceConfig.serviceName);
+      }
+    }, this);
+
+    this.set('selectedService', this.get('stepConfigs').objectAt(0));
+  },
+
+  /**
+   * Load child components to service config object
+   * @param _componentConfig
+   * @param componentConfig
+   */
+  loadComponentConfigs: function (_componentConfig, componentConfig) {
+    _componentConfig.configs.forEach(function (_serviceConfigProperty) {
+      var serviceConfigProperty = App.ServiceConfigProperty.create(_serviceConfigProperty);
+      serviceConfigProperty.serviceConfig = componentConfig;
+      serviceConfigProperty.initialValue();
+      componentConfig.configs.pushObject(serviceConfigProperty);
+      serviceConfigProperty.validate();
+    }, this);
+  },
+
+  /**
+   * Save config properties
+   */
+  saveServiceConfigProperties: function () {
+    var serviceConfigProperties = [];
+    this.get('stepConfigs').forEach(function (_content) {
+      _content.get('configs').forEach(function (_configProperties) {
+        var configProperty = {
+          name: _configProperties.get('name'),
+          value: _configProperties.get('value'),
+          service: _configProperties.get('serviceName')
+        };
+        serviceConfigProperties.push(configProperty);
+      }, this);
+
+    }, this);
+
+    App.db.setServiceConfigProperties(serviceConfigProperties);
+    alert('Data saved successfully');
+//    this.set('content.serviceConfigProperties', serviceConfigProperties);
+  }
+});
+
+App.MainServiceSlaveComponentGroupsController = App.SlaveComponentGroupsController.extend({
+  name: 'mainServiceSlaveComponentGroupsController',
+  contentBinding: 'App.router.mainServiceInfoConfigsController.slaveComponentHosts',
+  serviceBinding: 'App.router.mainServiceInfoConfigsController.selectedService',
+
+  selectedComponentName: function () {
+    switch (App.router.get('mainServiceInfoConfigsController.selectedService.serviceName')) {
+      case 'HDFS':
+        return 'DATANODE';
+      case 'MAPREDUCE':
+        return 'TASKTRACKER';
+      case 'HBASE':
+        return 'HBASE_REGIONSERVER';
+      default:
+        return null;
+    }
+  }.property('App.router.mainServiceInfoConfigsController.selectedService')
+});
\ No newline at end of file

Modified: incubator/ambari/branches/AMBARI-666/ambari-web/app/controllers/main/service/info/summary.js
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/AMBARI-666/ambari-web/app/controllers/main/service/info/summary.js?rev=1418895&r1=1418894&r2=1418895&view=diff
==============================================================================
--- incubator/ambari/branches/AMBARI-666/ambari-web/app/controllers/main/service/info/summary.js (original)
+++ incubator/ambari/branches/AMBARI-666/ambari-web/app/controllers/main/service/info/summary.js Sun Dec  9 11:53:15 2012
@@ -24,7 +24,7 @@ App.MainServiceInfoSummaryController = E
     var serviceId = this.get('content.serviceName');
     if (serviceId) {
       return this.get('allAlerts').filter(function (item) {
-        return item.get('serviceType').toLowerCase() == serviceId;
+        return item.get('serviceType') && item.get('serviceType').toLowerCase() == serviceId;
       });
     }
     return [];

Modified: incubator/ambari/branches/AMBARI-666/ambari-web/app/controllers/main/service/item.js
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/AMBARI-666/ambari-web/app/controllers/main/service/item.js?rev=1418895&r1=1418894&r2=1418895&view=diff
==============================================================================
--- incubator/ambari/branches/AMBARI-666/ambari-web/app/controllers/main/service/item.js (original)
+++ incubator/ambari/branches/AMBARI-666/ambari-web/app/controllers/main/service/item.js Sun Dec  9 11:53:15 2012
@@ -69,7 +69,45 @@ App.MainServiceItemController = Em.Contr
 
     return operation;
   },
+  /**
+   * Send specific command to server
+   * @param url
+   * @param data Object to send
+   */
+  sendCommandToServer : function(url, postData){
+    var url =  (App.testMode) ?
+      '/data/wizard/deploy/poll_1.json' : //content is the same as ours
+      '/api/clusters/' + App.router.getClusterName() + url; //'/services/' + this.get('content.serviceName').toUpperCase();
+
+    var method = App.testMode ? 'GET' : 'PUT';
+
+    $.ajax({
+      type: method,
+      url: url,
+      data: JSON.stringify(postData),
+      dataType: 'json',
+      timeout: 5000,
+      success: function (data) {
+        //do something
+      },
+
+      error: function (request, ajaxOptions, error) {
+        //do something
+      },
+
+      statusCode: require('data/statusCodes')
+    });
+  },
+
+  /**
+   * On click callback for <code>start service</code> button
+   * @param event
+   */
   startService: function (event) {
+    if($(event.target).hasClass('disabled')){
+      return;
+    }
+
     var self = this;
     App.ModalPopup.show({
       header: Em.I18n.t('services.service.confirmation.header'),
@@ -78,6 +116,13 @@ App.MainServiceItemController = Em.Contr
       secondary: 'No',
       onPrimary: function() {
         self.content.set('workStatus', true);
+
+        self.sendCommandToServer('/services/' + self.get('content.serviceName').toUpperCase(),{
+          ServiceInfo:{
+            state: 'STARTED'
+          }
+        });
+
         var newOperation = self.createBackgroundOperation('Service', 'Start');
         newOperation.detail = "Another detail info";
         self.addBackgroundOperation(newOperation);
@@ -88,7 +133,16 @@ App.MainServiceItemController = Em.Contr
       }
     });
   },
+
+  /**
+   * On click callback for <code>stop service</code> button
+   * @param event
+   */
   stopService: function (event) {
+    if($(event.target).hasClass('disabled')){
+      return;
+    }
+
     var self = this;
     App.ModalPopup.show({
       header: Em.I18n.t('services.service.confirmation.header'),
@@ -97,6 +151,13 @@ App.MainServiceItemController = Em.Contr
       secondary: 'No',
       onPrimary: function() {
         self.content.set('workStatus', false);
+
+        self.sendCommandToServer('/services/' + self.get('content.serviceName').toUpperCase(),{
+          ServiceInfo:{
+            state: 'INSTALLED'
+          }
+        });
+
         var newOperation = self.createBackgroundOperation('Service', 'Stop');
         newOperation.detail = "Another detail info";
         self.addBackgroundOperation(newOperation);

Modified: incubator/ambari/branches/AMBARI-666/ambari-web/app/controllers/wizard/step10_controller.js
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/AMBARI-666/ambari-web/app/controllers/wizard/step10_controller.js?rev=1418895&r1=1418894&r2=1418895&view=diff
==============================================================================
--- incubator/ambari/branches/AMBARI-666/ambari-web/app/controllers/wizard/step10_controller.js (original)
+++ incubator/ambari/branches/AMBARI-666/ambari-web/app/controllers/wizard/step10_controller.js Sun Dec  9 11:53:15 2012
@@ -141,33 +141,34 @@ App.WizardStep10Controller = Em.Controll
 
     console.log('STEP10 master components:  ' + JSON.stringify(components));
     components.forEach(function (_component) {
-      switch (_component.component) {
+      var component = Ember.Object.create(_component);
+      switch (component.component) {
         case 'NAMENODE':
-          this.loadNn(_component);
+          this.loadNn(component);
           break;
         case 'SECONDARY_NAMENODE':
-          this.loadSnn(_component);
+          this.loadSnn(component);
           break;
         case 'JOBTRACKER' :
-          this.loadJt(_component);
+          this.loadJt(component);
           break;
         case 'ZOOKEEPER_SERVER' :
-          this.loadZk(_component);
+          this.loadZk(component);
           break;
         case 'HBASE_MASTER':
-          this.loadHb(_component);
+          this.loadHb(component);
           break;
         case 'HIVE_SERVER':
-          this.loadHiveServer(_component);
+          this.loadHiveServer(component);
           break;
         case 'OOZIE_SERVER':
-          this.loadOozieServer(_component);
+          this.loadOozieServer(component);
           break;
         case 'GANGLIA_SERVER':
-          this.loadGanglia(_component)
+          this.loadGanglia(component)
           break;
         case 'NAGIOS_SERVER':
-          this.loadNagios(_component);
+          this.loadNagios(component);
           break;
       }
     }, this);

Modified: incubator/ambari/branches/AMBARI-666/ambari-web/app/controllers/wizard/step2_controller.js
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/AMBARI-666/ambari-web/app/controllers/wizard/step2_controller.js?rev=1418895&r1=1418894&r2=1418895&view=diff
==============================================================================
--- incubator/ambari/branches/AMBARI-666/ambari-web/app/controllers/wizard/step2_controller.js (original)
+++ incubator/ambari/branches/AMBARI-666/ambari-web/app/controllers/wizard/step2_controller.js Sun Dec  9 11:53:15 2012
@@ -92,7 +92,12 @@ App.WizardStep2Controller = Em.Controlle
   }.property('sshKey', 'manualInstall', 'hasSubmitted'),
 
   localRepoError: function () {
-    if (this.get('hasSubmitted') && this.get('localRepo') && this.get('localRepoPath').trim() === '') {
+    if (
+       // (typeof this.get('localRepoPath') === 'undefined') ||
+        !(/^([-a-z0-9._\/]|%[0-9a-f]{2})*$/i.test(this.get('localRepoPath')) ) ||
+        (this.get('hasSubmitted') && this.get('localRepo') && this.get('localRepoPath').trim() === '' )
+       )
+    {
       return Em.I18n.t('installer.step2.localRepo.error.required');
     }
     return null;

Modified: incubator/ambari/branches/AMBARI-666/ambari-web/app/controllers/wizard/step8_controller.js
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/AMBARI-666/ambari-web/app/controllers/wizard/step8_controller.js?rev=1418895&r1=1418894&r2=1418895&view=diff
==============================================================================
--- incubator/ambari/branches/AMBARI-666/ambari-web/app/controllers/wizard/step8_controller.js (original)
+++ incubator/ambari/branches/AMBARI-666/ambari-web/app/controllers/wizard/step8_controller.js Sun Dec  9 11:53:15 2012
@@ -451,6 +451,7 @@ App.WizardStep8Controller = Em.Controlle
       async: false,
       //accepts: 'text',
       dataType: 'text',
+      data: '{"Clusters": {"version" : "HDP-0.1"}}',
       timeout: 5000,
       success: function (data) {
         var jsonData = jQuery.parseJSON(data);
@@ -511,10 +512,7 @@ App.WizardStep8Controller = Em.Controlle
       var components = serviceComponents.filterProperty('service_name', _service);
       components.forEach(function (_component) {
         console.log("value of component is: " + _component.component_name);
-        // TODO: Skipping CLIENT components as we have issues on the server side for integration purposes
-        if (!_component.component_name.match(/CLIENT$/)) {
-          this.createComponent(_service, _component.component_name);
-        }
+        this.createComponent(_service, _component.component_name);
       }, this);
     }, this);
   },
@@ -582,6 +580,7 @@ App.WizardStep8Controller = Em.Controlle
 
     var masterHosts = this.get('content.masterComponentHosts');
     var slaveHosts = this.get('content.slaveComponentHosts');
+    var clients = this.get('content.clients');
     var allHosts = this.get('content.hostsInfo');
 
     masterHosts.forEach(function (_masterHost) {
@@ -601,8 +600,7 @@ App.WizardStep8Controller = Em.Controlle
           slaveObj.component = _client.component_name;
           _slaveHosts.hosts.forEach(function (_slaveHost) {
             slaveObj.hostName = _slaveHost.hostname;
-            // TODO: Skip creation of clients for integration purposes
-            // this.createHostComponent(slaveObj);
+            this.createHostComponent(slaveObj);
           }, this);
         }, this);
       }
@@ -650,10 +648,12 @@ App.WizardStep8Controller = Em.Controlle
       this.createConfigSite(this.createMrSiteObj('MAPREDUCE'));
     }
     if (selectedServices.someProperty('serviceName', 'HBASE')) {
-      this.createConfigSite(this.createHbaseSiteObj('HBASE'));
+      // TODO
+      // this.createConfigSite(this.createHbaseSiteObj('HBASE'));
     }
     if (selectedServices.someProperty('serviceName', 'HIVE')) {
-      this.createConfigSite(this.createHiveSiteObj('HIVE'));
+      // TODO
+      // this.createConfigSite(this.createHiveSiteObj('HIVE'));
     }
   },
 



Mime
View raw message