Browse Source

AMBARI-11690. Move Namenode hung at Configure Component step (onechiporenko)

Oleg Nechiporenko 10 years ago
parent
commit
09f6e93f59

+ 3 - 0
ambari-web/app/controllers/main/service/reassign/step4_controller.js

@@ -506,6 +506,9 @@ App.ReassignMasterWizardStep4Controller = App.HighAvailabilityProgressPageContro
         if (App.Service.find().someProperty('serviceName', 'HBASE')) {
           urlParams.push('(type=hbase-site&tag=' + data.Clusters.desired_configs['hbase-site'].tag + ')');
         }
+        if (App.Service.find().someProperty('serviceName', 'ACCUMULO')) {
+          urlParams.push('(type=accumulo-site&tag=' + data.Clusters.desired_configs['accumulo-site'].tag + ')');
+        }
         break;
       case 'SECONDARY_NAMENODE':
         urlParams.push('(type=hdfs-site&tag=' + data.Clusters.desired_configs['hdfs-site'].tag + ')');

+ 16 - 1
ambari-web/test/controllers/main/service/reassign/step4_controller_test.js

@@ -511,7 +511,8 @@ describe('App.ReassignMasterWizardStep4Controller', function () {
           'yarn-site': {tag: 5},
           'oozie-site': {tag: 6},
           'webhcat-site': {tag: 7},
-          'yarn-env': {tag: 8}
+          'yarn-env': {tag: 8},
+          'accumulo-site': {tag: 9}
         }
       }
     };
@@ -544,6 +545,20 @@ describe('App.ReassignMasterWizardStep4Controller', function () {
         "(type=hbase-site&tag=3)"
       ]);
     });
+
+    it('get config of NAMENODE when ACCUMULO installed', function () {
+      services = [
+        {
+          serviceName: 'ACCUMULO'
+        }
+      ];
+      expect(controller.getConfigUrlParams('NAMENODE', data)).to.eql([
+        "(type=hdfs-site&tag=1)",
+        "(type=core-site&tag=2)",
+        "(type=accumulo-site&tag=9)"
+      ]);
+    });
+
   });
 
   describe('#onLoadConfigsTags()', function () {