소스 검색

AMBARI-3500. Reassign Master Wizard: move SNameNode in 2.x stack (non-secure). (akovalenko)

Aleksandr Kovalenko 11 년 전
부모
커밋
82823e6e20
1개의 변경된 파일7개의 추가작업 그리고 2개의 파일을 삭제
  1. 7 2
      ambari-web/app/controllers/main/service/reassign/step4_controller.js

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

@@ -239,8 +239,13 @@ App.ReassignMasterWizardStep4Controller = App.HighAvailabilityProgressPageContro
         }
         break;
       case 'SECONDARY_NAMENODE':
-        componentDir = configs['core-site']['fs.checkpoint.dir'];
-        configs['hdfs-site']['dfs.secondary.http.address'] = targetHostName + ':50090';
+        if (isHadoop2Stack) {
+          componentDir = configs['hdfs-site']['dfs.namenode.checkpoint.dir'];
+          configs['hdfs-site']['dfs.namenode.secondary.http-address'] = targetHostName + ':50090';
+        } else {
+          componentDir = configs['core-site']['fs.checkpoint.dir'];
+          configs['hdfs-site']['dfs.secondary.http.address'] = targetHostName + ':50090';
+        }
         break;
       case 'JOBTRACKER':
         componentDir = configs['mapred-site']['mapred.local.dir'];