[ 
https://issues.apache.org/jira/browse/AMBARI-20290?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yao Lei updated AMBARI-20290:
-----------------------------
    Description: 
 STR:
1.Open Services /HDDFS /Heatmaps
2.Click the  Select Metric...  dropdown box and select any metric like HDFS 
Bytes Written
3.Move the mouse cursor to rectangle area blow the existed rack(default is 
/defaut-rack).You will see a popup layer.
But you can't see the metric value in this popup layer

I think the author was intended to show the metric value in the popup layer.
We just modify a little to  make it and will enrich the display of the selected 
metric.

  was:
  drawWidget: function () {
    if (this.get('isLoaded')) {
      var hostToValueMap = this.calculateValues();
      var hostNames = [];
      if (this.get('racks').everyProperty('isLoaded', true)) {
        this.get('racks').forEach(function (rack) {
          hostNames = hostNames.concat(rack.hosts.mapProperty('hostName'));
        });
      }

      var metricObject = App.MainChartHeatmapMetric.create({
        name: this.get('content.displayName'),
        units: this.get('content.properties.display_unit'),
        maximumValue: this.get('controller.inputMaximum'),
        hostNames: hostNames,
        hostToValueMap: hostToValueMap
      });

      this.set('controller.selectedMetric', metricObject);
      App.loadTimer.finish('Heatmaps Page');
      App.loadTimer.finish('Service Heatmaps Page');
    }
  }.observes('[email protected]'),



as loaded like top:
 this.get('content.displayName') is always null


> HDFS Heatmaps can't show the metric value of the selected metric
> ----------------------------------------------------------------
>
>                 Key: AMBARI-20290
>                 URL: https://issues.apache.org/jira/browse/AMBARI-20290
>             Project: Ambari
>          Issue Type: Bug
>    Affects Versions: trunk, 2.4.0, 2.5.0
>            Reporter: zhangxiaolu
>             Fix For: trunk
>
>         Attachments: AMBARI-20290.patch, screenshot-1.png, screenshot-2.png, 
> screenshot-3.png
>
>
>  STR:
> 1.Open Services /HDDFS /Heatmaps
> 2.Click the  Select Metric...  dropdown box and select any metric like HDFS 
> Bytes Written
> 3.Move the mouse cursor to rectangle area blow the existed rack(default is 
> /defaut-rack).You will see a popup layer.
> But you can't see the metric value in this popup layer
> I think the author was intended to show the metric value in the popup layer.
> We just modify a little to  make it and will enrich the display of the 
> selected metric.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to