Browse Source

AMBARI-3507. "Assign Slaves" step. Error with installed NodeManagers. (onechiporenko)

Oleg Nechiporenko 11 years ago
parent
commit
5366b1d70b
1 changed files with 10 additions and 2 deletions
  1. 10 2
      ambari-web/app/controllers/main/service/add_controller.js

+ 10 - 2
ambari-web/app/controllers/main/service/add_controller.js

@@ -201,11 +201,19 @@ App.AddServiceController = App.WizardController.extend({
     {
       name: 'TASKTRACKER',
       service: 'MAPREDUCE'
-    },{
+    },
+    {
       name: 'HBASE_REGIONSERVER',
       service: 'HBASE'
     }];
 
+    if (App.get('isHadoop2Stack')) {
+      components.push({
+        name: 'NODEMANAGER',
+        service: 'YARN'
+      });
+    }
+
     var result = [];
     var services = App.Service.find();
     var selectedServices = this.get('content.services').filterProperty('isSelected', true).mapProperty('serviceName');
@@ -260,7 +268,7 @@ App.AddServiceController = App.WizardController.extend({
       componentName: 'CLIENT',
       displayName: 'client',
       hosts: hosts
-    })
+    });
 
     return result;
   },