Prechádzať zdrojové kódy

AMBARI-13494. Ambari generate invalid configuration after namenode move with HA enabled (Josh Elser via rzang)

Richard Zang 9 rokov pred
rodič
commit
0a1bb1136f

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

@@ -679,9 +679,9 @@ App.ReassignMasterWizardStep4Controller = App.HighAvailabilityProgressPageContro
       configs['hbase-site']['hbase.rootdir'] = configs['hbase-site']['hbase.rootdir'].replace(/\/\/[^\/]*/, '//' + targetHostName + ':8020');
     }
     if (!App.get('isHaEnabled') && App.Service.find('ACCUMULO').get('isLoaded')) {
+      // Update the Namenode's hostname in instance.volumes
       configs['accumulo-site']['instance.volumes'] = configs['accumulo-site']['instance.volumes'].replace(/\/\/[^\/]*/, '//' + targetHostName + ':8020');
-    }
-    if (App.Service.find('ACCUMULO').get('isLoaded')) {
+      // Add a replacement entry from the old hostname to the new hostname
       var target = 'hdfs://' + this.get('content.reassignHosts.target') + ':8020' + '/apps/accumulo/data';
       var source = 'hdfs://' + this.get('content.reassignHosts.source') + ':8020' + '/apps/accumulo/data';
       if (configs['accumulo-site']) {