Explorar o código

AMBARI-3290. YARN appsFailed data does not belong in Finished Applications graph. (srimanth)

Srimanth Gunturi %!s(int64=12) %!d(string=hai) anos
pai
achega
0b7bf81c3f

+ 2 - 2
ambari-web/app/views/main/dashboard/service/yarn.js

@@ -50,8 +50,8 @@ App.MainDashboardServiceYARNView = App.MainDashboardServiceView.extend({
   }.property(),
 
   hasManyYarnClients: function () {
-    return (this.get('service.yarnClientNodes') > 1);
-  }.property('service.yarnClientNodes'),
+    return (this.get('service.yarnClientNodes.length') > 1);
+  }.property('service.yarnClientNodes.length'),
 
   nodeUptime: function () {
     var uptime = this.get('service').get('resourceManagerStartTime');

+ 3 - 3
ambari-web/app/views/main/service/info/metrics/yarn/apps_finished_states.js

@@ -44,9 +44,9 @@ App.ChartServiceMetricsYARN_ApplicationFinishedStates = App.ChartLinearTimeView.
           case "AppsCompleted":
             displayName = Em.I18n.t('services.service.info.metrics.yarn.apps.states.completed');
             break;
-          case "AppsFailed":
-            displayName = Em.I18n.t('services.service.info.metrics.yarn.apps.states.failed');
-            break;
+//          case "AppsFailed":
+//            displayName = Em.I18n.t('services.service.info.metrics.yarn.apps.states.failed');
+//            break;
           case "AppsKilled":
             displayName = Em.I18n.t('services.service.info.metrics.yarn.apps.states.killed');
             break;