Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-15126

Move NameNode wizard in HA environment fails to update configs correctly when namenode is not running on default port

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.1.2
    • 2.5.0
    • ambari-web
    • Important

    Description

      Condition:
      1. hdfs deploy ha
      2. "dfs.namenode.http-address" is not set to the default port 50070

      Result:
      1. Ambari will always substitute configures relative to "nn2"
      2. The active "Move Namenode" failed and make configure inconsistent, the cluster crashes

      Code location:

      ambari-web/app/controllers/main/service/reassign/step4_controller.js
      if (App.get('isHaEnabled')) {
            var nameServices = configs['hdfs-site']['dfs.nameservices'];
            var suffix = (configs['hdfs-site']['dfs.namenode.http-address.' + nameServices + '.nn1'] === sourceHostName + ':50070') ? '.nn1' : '.nn2';
            configs['hdfs-site']['dfs.namenode.http-address.' + nameServices + suffix] = targetHostName + ':50070';
            ...
          }
      

      Attachments

        1. AMBARI-15126.patch
          2 kB
          Richard Zang

        Issue Links

          Activity

            People

              rzang Richard Zang
              secfree deprecated-se
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 1h
                  1h
                  Remaining:
                  Remaining Estimate - 1h
                  1h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified