ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yus...@apache.org
Subject ambari git commit: AMBARI-16018. Namenode RPC widget on Ambari Dashboard shows n/a. (alexantonenko via yusaku)
Date Fri, 22 Apr 2016 00:21:43 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.2.2 33ae7d84c -> 13d69a89a


AMBARI-16018. Namenode RPC widget on Ambari Dashboard shows n/a. (alexantonenko via yusaku)


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

Branch: refs/heads/branch-2.2.2
Commit: 13d69a89ad8d36628ebe1dfeacc2c6980f8426b7
Parents: 33ae7d8
Author: Yusaku Sako <yusaku@hortonworks.com>
Authored: Thu Apr 21 17:20:54 2016 -0700
Committer: Yusaku Sako <yusaku@hortonworks.com>
Committed: Thu Apr 21 17:21:37 2016 -0700

----------------------------------------------------------------------
 .../data/dashboard/HDP2/master_components.json  |  6 +++--
 .../data/dashboard/services_multi_hosts.json    | 26 +++++++++++---------
 .../assets/data/services/metrics/hdfs/rpc.json  |  6 +++--
 .../data/widget_layouts/HDFS_SUMMARY.json       |  2 +-
 .../app/controllers/global/update_controller.js |  2 +-
 .../app/mappers/service_metrics_mapper.js       |  2 +-
 ambari-web/app/utils/ajax/ajax.js               |  2 +-
 7 files changed, 26 insertions(+), 20 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/13d69a89/ambari-web/app/assets/data/dashboard/HDP2/master_components.json
----------------------------------------------------------------------
diff --git a/ambari-web/app/assets/data/dashboard/HDP2/master_components.json b/ambari-web/app/assets/data/dashboard/HDP2/master_components.json
index e3bd190..e47bcc7 100644
--- a/ambari-web/app/assets/data/dashboard/HDP2/master_components.json
+++ b/ambari-web/app/assets/data/dashboard/HDP2/master_components.json
@@ -1,5 +1,5 @@
 {
-  "href" : "http://192.168.56.101:8080/api/v1/clusters/perf/components/?ServiceComponentInfo/category=MASTER&fields=ServiceComponentInfo/MasterActiveTime,host_components/metrics/jvm/memHeapUsedM,host_components/metrics/jvm/memHeapCommittedM,host_components/metrics/mapred/jobtracker/trackers_decommissioned,host_components/metrics/cpu/cpu_wio,host_components/metrics/rpc/RpcQueueTime_avg_time,host_components/metrics/dfs/FSNamesystem/HAState,host_components/metrics/dfs/FSNamesystem/CapacityUsed,host_components/metrics/dfs/FSNamesystem/CapacityTotal,host_components/metrics/dfs/FSNamesystem/CapacityRemaining,host_components/metrics/dfs/FSNamesystem/BlocksTotal,host_components/metrics/dfs/FSNamesystem/CorruptBlocks,host_components/metrics/dfs/FSNamesystem/MissingBlocks,host_components/metrics/dfs/FSNamesystem/UnderReplicatedBlocks,host_components/metrics/dfs/namenode/Version,host_components/metrics/dfs/namenode/LiveNodes,host_components/metrics/dfs/namenode/DeadNodes,host_components/metric
 s/dfs/namenode/DecomNodes,host_components/metrics/dfs/namenode/TotalFiles,host_components/metrics/dfs/namenode/UpgradeFinalized,host_components/metrics/dfs/namenode/Safemode,host_components/metrics/runtime/StartTime,host_components/metrics/flume/flume,host_components/metrics/yarn/Queue,host_components/metrics/hbase/master/IsActiveMaster,host_components/HostRoles/state",
+  "href" : "http://192.168.56.101:8080/api/v1/clusters/perf/components/?ServiceComponentInfo/category=MASTER&fields=ServiceComponentInfo/MasterActiveTime,host_components/metrics/jvm/memHeapUsedM,host_components/metrics/jvm/memHeapCommittedM,host_components/metrics/mapred/jobtracker/trackers_decommissioned,host_components/metrics/cpu/cpu_wio,host_components/metrics/rpc/client/RpcQueueTime_avg_time,host_components/metrics/dfs/FSNamesystem/HAState,host_components/metrics/dfs/FSNamesystem/CapacityUsed,host_components/metrics/dfs/FSNamesystem/CapacityTotal,host_components/metrics/dfs/FSNamesystem/CapacityRemaining,host_components/metrics/dfs/FSNamesystem/BlocksTotal,host_components/metrics/dfs/FSNamesystem/CorruptBlocks,host_components/metrics/dfs/FSNamesystem/MissingBlocks,host_components/metrics/dfs/FSNamesystem/UnderReplicatedBlocks,host_components/metrics/dfs/namenode/Version,host_components/metrics/dfs/namenode/LiveNodes,host_components/metrics/dfs/namenode/DeadNodes,host_components
 /metrics/dfs/namenode/DecomNodes,host_components/metrics/dfs/namenode/TotalFiles,host_components/metrics/dfs/namenode/UpgradeFinalized,host_components/metrics/dfs/namenode/Safemode,host_components/metrics/runtime/StartTime,host_components/metrics/flume/flume,host_components/metrics/yarn/Queue,host_components/metrics/hbase/master/IsActiveMaster,host_components/HostRoles/state",
   "items" : [
     {
       "ServiceComponentInfo" : {
@@ -164,7 +164,9 @@
               "memHeapUsedM" : 106.43069
             },
             "rpc" : {
-              "RpcQueueTime_avg_time" : 0.0
+              "client": {
+                "RpcQueueTime_avg_time" : 0.0
+              }
             },
             "runtime" : {
               "StartTime" : 1383649085429

http://git-wip-us.apache.org/repos/asf/ambari/blob/13d69a89/ambari-web/app/assets/data/dashboard/services_multi_hosts.json
----------------------------------------------------------------------
diff --git a/ambari-web/app/assets/data/dashboard/services_multi_hosts.json b/ambari-web/app/assets/data/dashboard/services_multi_hosts.json
index 824a806..0e05499 100644
--- a/ambari-web/app/assets/data/dashboard/services_multi_hosts.json
+++ b/ambari-web/app/assets/data/dashboard/services_multi_hosts.json
@@ -342,18 +342,20 @@
                   "proc_run" : 2.86944444444
                 },
                 "rpc" : {
-                  "rpcAuthorizationSuccesses" : 0.0861111111111,
-                  "SentBytes" : 106.391481481,
-                  "rpcAuthorizationFailures" : 0.0,
-                  "ReceivedBytes" : 229.217407407,
-                  "NumOpenConnections" : 0.0,
-                  "callQueueLen" : 0.0,
-                  "rpcAuthenticationSuccesses" : 0.0,
-                  "RpcQueueTime_num_ops" : 0.748703703704,
-                  "RpcProcessingTime_num_ops" : 0.748703703704,
-                  "RpcProcessingTime_avg_time" : 0.110499338624,
-                  "rpcAuthenticationFailures" : 0.0,
-                  "RpcQueueTime_avg_time" : 0.323186728395
+                  "client": {
+                    "rpcAuthorizationSuccesses" : 0.0861111111111,
+                    "SentBytes" : 106.391481481,
+                    "rpcAuthorizationFailures" : 0.0,
+                    "ReceivedBytes" : 229.217407407,
+                    "NumOpenConnections" : 0.0,
+                    "callQueueLen" : 0.0,
+                    "rpcAuthenticationSuccesses" : 0.0,
+                    "RpcQueueTime_num_ops" : 0.748703703704,
+                    "RpcProcessingTime_num_ops" : 0.748703703704,
+                    "RpcProcessingTime_avg_time" : 0.110499338624,
+                    "rpcAuthenticationFailures" : 0.0,
+                    "RpcQueueTime_avg_time" : 0.323186728395
+                  }
                 },
                 "ugi" : {
                   "loginFailure_num_ops" : 0.0,

http://git-wip-us.apache.org/repos/asf/ambari/blob/13d69a89/ambari-web/app/assets/data/services/metrics/hdfs/rpc.json
----------------------------------------------------------------------
diff --git a/ambari-web/app/assets/data/services/metrics/hdfs/rpc.json b/ambari-web/app/assets/data/services/metrics/hdfs/rpc.json
index f0e1827..0b3d3b4 100644
--- a/ambari-web/app/assets/data/services/metrics/hdfs/rpc.json
+++ b/ambari-web/app/assets/data/services/metrics/hdfs/rpc.json
@@ -1,5 +1,5 @@
 {
-  "href" : "http://ambari/clusters/SrimanthAmbari/hosts/hostname/host_components/NAMENODE?fields=metrics/rpc/RpcQueueTime_avg_time[1351117114,1351120714,60]",
+  "href" : "http://ambari/clusters/SrimanthAmbari/hosts/hostname/host_components/NAMENODE?fields=metrics/rpc/client/RpcQueueTime_avg_time[1351117114,1351120714,60]",
   "HostRoles" : {
     "cluster_name" : "SrimanthAmbari",
     "component_name" : "NAMENODE",
@@ -10,7 +10,9 @@
   },
   "metrics" : {
     "rpc" : {
-      "RpcQueueTime_avg_time" : "[[0.055987654321,1351117440],[0.013271604938,1351117800],[0.0046296296296,1351118160],[0.018518518519,1351118520],[0.01712962963,1351118880],[0.0,1351119240],[0.0,1351119600],[0.0,1351119960],[0.0,1351120320],[0.0095679012346,1351120680],[0.018672839506,1351121040]]"
+      "client": {
+        "RpcQueueTime_avg_time" : "[[0.055987654321,1351117440],[0.013271604938,1351117800],[0.0046296296296,1351118160],[0.018518518519,1351118520],[0.01712962963,1351118880],[0.0,1351119240],[0.0,1351119600],[0.0,1351119960],[0.0,1351120320],[0.0095679012346,1351120680],[0.018672839506,1351121040]]"
+      }
     }
   }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/ambari/blob/13d69a89/ambari-web/app/assets/data/widget_layouts/HDFS_SUMMARY.json
----------------------------------------------------------------------
diff --git a/ambari-web/app/assets/data/widget_layouts/HDFS_SUMMARY.json b/ambari-web/app/assets/data/widget_layouts/HDFS_SUMMARY.json
index e55d104..c76737f 100644
--- a/ambari-web/app/assets/data/widget_layouts/HDFS_SUMMARY.json
+++ b/ambari-web/app/assets/data/widget_layouts/HDFS_SUMMARY.json
@@ -79,7 +79,7 @@
           {
             "WidgetInfo" : {
               "id" : 8,
-              "metrics" : "[{\"name\":\"Hadoop:service\\u003dNameNode,name\\u003dRpcActivity.RpcQueueTimeAvgTime\",\"metric_path\":\"metrics/rpc/RpcQueueTime_avg_time\",\"service_name\":\"HDFS\",\"component_name\":\"NAMENODE\",\"host_component_criteria\":\"host_components/metrics/dfs/FSNamesystem/HAState\\u003dactive\"}]",
+              "metrics" : "[{\"name\":\"Hadoop:service\\u003dNameNode,name\\u003dRpcActivity.RpcQueueTimeAvgTime\",\"metric_path\":\"metrics/rpc/client/RpcQueueTime_avg_time\",\"service_name\":\"HDFS\",\"component_name\":\"NAMENODE\",\"host_component_criteria\":\"host_components/metrics/dfs/FSNamesystem/HAState\\u003dactive\"}]",
               "author" : "ambari",
               "description" : null,
               "scope" : "CLUSTER",

http://git-wip-us.apache.org/repos/asf/ambari/blob/13d69a89/ambari-web/app/controllers/global/update_controller.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/global/update_controller.js b/ambari-web/app/controllers/global/update_controller.js
index e192512..8e9ce53 100644
--- a/ambari-web/app/controllers/global/update_controller.js
+++ b/ambari-web/app/controllers/global/update_controller.js
@@ -48,7 +48,7 @@ App.UpdateController = Em.Controller.extend({
     'host_components/metrics/jvm/memHeapCommittedM',
     'host_components/metrics/mapred/jobtracker/trackers_decommissioned',
     'host_components/metrics/cpu/cpu_wio',
-    'host_components/metrics/rpc/RpcQueueTime_avg_time',
+    'host_components/metrics/rpc/client/RpcQueueTime_avg_time',
     'host_components/metrics/dfs/FSNamesystem/*',
     'host_components/metrics/dfs/namenode/Version',
     'host_components/metrics/dfs/namenode/LiveNodes',

http://git-wip-us.apache.org/repos/asf/ambari/blob/13d69a89/ambari-web/app/mappers/service_metrics_mapper.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/mappers/service_metrics_mapper.js b/ambari-web/app/mappers/service_metrics_mapper.js
index dfca59e..179489b 100644
--- a/ambari-web/app/mappers/service_metrics_mapper.js
+++ b/ambari-web/app/mappers/service_metrics_mapper.js
@@ -65,7 +65,7 @@ App.serviceMetricsMapper = App.QuickDataMapper.create({
     upgrade_status: 'nameNodeComponent.host_components[0].metrics.dfs.namenode.UpgradeFinalized',
     safe_mode_status: 'nameNodeComponent.host_components[0].metrics.dfs.namenode.Safemode',
     name_node_cpu: 'nameNodeComponent.host_components[0].metrics.cpu.cpu_wio',
-    name_node_rpc: 'nameNodeComponent.host_components[0].metrics.rpc.RpcQueueTime_avg_time',
+    name_node_rpc: 'nameNodeComponent.host_components[0].metrics.rpc.client.RpcQueueTime_avg_time',
     data_nodes_started: 'data_nodes_started',
     data_nodes_installed: 'data_nodes_installed',
     data_nodes_total: 'data_nodes_total',

http://git-wip-us.apache.org/repos/asf/ambari/blob/13d69a89/ambari-web/app/utils/ajax/ajax.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/utils/ajax/ajax.js b/ambari-web/app/utils/ajax/ajax.js
index 5902050..d2174a1 100644
--- a/ambari-web/app/utils/ajax/ajax.js
+++ b/ambari-web/app/utils/ajax/ajax.js
@@ -1110,7 +1110,7 @@ var urls = {
     'testInProduction': true
   },
   'service.metrics.hdfs.rpc': {
-    'real': '/clusters/{clusterName}/hosts/{nameNodeName}/host_components/NAMENODE?fields=metrics/rpc/RpcQueueTime_avg_time[{fromSeconds},{toSeconds},{stepSeconds}]',
+    'real': '/clusters/{clusterName}/hosts/{nameNodeName}/host_components/NAMENODE?fields=metrics/rpc/client/RpcQueueTime_avg_time[{fromSeconds},{toSeconds},{stepSeconds}]',
     'mock': '/data/services/metrics/hdfs/rpc.json',
     'testInProduction': true
   },


Mime
View raw message