Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-1508

Ability to do savenamespace without being in safemode

    Details

    • Type: Improvement
    • Status: Patch Available
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: namenode
    • Labels:

      Description

      In the current code, the administrator can run savenamespace only after putting the namenode in safemode. This means that applications that are writing to HDFS encounters errors because the NN is in safemode. We would like to allow saveNamespace even when the namenode is not in safemode.

      The savenamespace command already acquires the FSNamesystem writelock. There is no need to require that the namenode is in safemode too.

        Attachments

        1. savenamespaceWithoutSafemode5.txt
          18 kB
          dhruba borthakur
        2. savenamespaceWithoutSafemode4.txt
          18 kB
          dhruba borthakur
        3. savenamespaceWithoutSafemode3.txt
          18 kB
          dhruba borthakur
        4. savenamespaceWithoutSafemode2.txt
          15 kB
          dhruba borthakur
        5. savenamespaceWithoutSafemode.txt
          2 kB
          dhruba borthakur

          Issue Links

            Activity

              People

              • Assignee:
                dhruba dhruba borthakur
                Reporter:
                dhruba dhruba borthakur
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated: