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

Ability to do savenamespace without being in safemode

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • None
    • None
    • namenode

    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

              dhruba Dhruba Borthakur
              dhruba Dhruba Borthakur
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated: