You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by jo...@apache.org on 2014/08/20 17:30:35 UTC
[34/50] [abbrv] git commit: AMBARI-6929. HDFS heatmap should be
hidden in standalone storm deployment. (jaimin)
AMBARI-6929. HDFS heatmap should be hidden in standalone storm deployment. (jaimin)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/356e17af
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/356e17af
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/356e17af
Branch: refs/heads/branch-alerts-dev
Commit: 356e17af4d47f37185cd91e024333194fa5714ee
Parents: b39b998
Author: Jaimin Jetly <ja...@hortonworks.com>
Authored: Tue Aug 19 18:04:57 2014 -0700
Committer: Jaimin Jetly <ja...@hortonworks.com>
Committed: Tue Aug 19 18:05:09 2014 -0700
----------------------------------------------------------------------
.../app/controllers/main/charts/heatmap.js | 25 ++++++++++++--------
1 file changed, 15 insertions(+), 10 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/356e17af/ambari-web/app/controllers/main/charts/heatmap.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/main/charts/heatmap.js b/ambari-web/app/controllers/main/charts/heatmap.js
index 49c6e25..8010ead 100644
--- a/ambari-web/app/controllers/main/charts/heatmap.js
+++ b/ambari-web/app/controllers/main/charts/heatmap.js
@@ -43,19 +43,24 @@ App.MainChartsHeatmapController = Em.Controller.extend({
App.MainChartHeatmapCpuWaitIOMetric.create()
/*, App.MainChartHeatmapProcessRunMetric.create()*/
]
- }),
- Em.Object.create({
- label: Em.I18n.t('charts.heatmap.category.hdfs'),
- category: 'hdfs',
- items: [
- App.MainChartHeatmapDFSBytesReadMetric.create(),
- App.MainChartHeatmapDFSBytesWrittenMetric.create(),
- App.MainChartHeatmapDFSGCTimeMillisMetric.create(),
- App.MainChartHeatmapDFSMemHeapUsedMetric.create()
- ]
})
];
+ if (App.HDFSService.find().get('length')) {
+ metrics.push(
+ Em.Object.create({
+ label: Em.I18n.t('charts.heatmap.category.hdfs'),
+ category: 'hdfs',
+ items: [
+ App.MainChartHeatmapDFSBytesReadMetric.create(),
+ App.MainChartHeatmapDFSBytesWrittenMetric.create(),
+ App.MainChartHeatmapDFSGCTimeMillisMetric.create(),
+ App.MainChartHeatmapDFSMemHeapUsedMetric.create()
+ ]
+ })
+ );
+ }
+
if (App.MapReduceService.find().get('length')) {
metrics.push(
Em.Object.create({