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

Namenode should not be started if safemode threshold is out of boundary

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Minor
    • Resolution: Unresolved
    • 2.7.3, 3.1.1
    • None
    • namenode
    • #apache hadoop-3.1.1

    • Patch

    Description

      Mistakenly,  User has configured safemode threshold(dfs.namenode.safemode.threshold-pct) to 090 instead of 0.90. Due to this change,  UI has the incorrect summary and it never turns to be out of safemode until manual intervention. Because total block count will never match with an additional block count, which is to be reported.

       I.e

      Wrong setting: dfs.namenode.safemode.threshold-pct=090
      
      Summary:
      
      Safe mode is ON. The reported blocks 0 needs additional 360 blocks to reach the threshold 90.0000 of total blocks 4. The number of live datanodes 3 has reached the minimum number 0. Safe mode will be turned off automatically once the thresholds have been reached.
      
      10 files and directories, 4 blocks (4 replicated blocks, 0 erasure coded block groups) = 14 total filesystem object(s).
      
      

       

      Attachments

        1. HDFS-14164-003.patch
          5 kB
          Karthik Palanisamy
        2. HDFS-14164-002.patch
          5 kB
          Karthik Palanisamy
        3. HDFS-14164-001.patch
          3 kB
          Karthik Palanisamy

        Issue Links

          Activity

            People

              kpalanisamy Karthik Palanisamy
              kpalanisamy Karthik Palanisamy
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: