Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-13891 HDFS RBF stabilization phase I
  3. HDFS-14150

RBF: Quotas of the sub-cluster should be removed when removing the mount point

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.0, HDFS-13891
    • Component/s: None
    • Labels:
    • Hadoop Flags:
      Reviewed

      Description

      From HDFS-14143

      $ hdfs dfsrouteradmin -add /ns1_data ns1 /data
      $ hdfs dfsrouteradmin -setQuota /ns1_data -nsQuota 10 -ssQuota 10
      $ hdfs dfsrouteradmin -ls /ns1_data
      Source                    Destinations              Owner                     Group                     Mode                      Quota/Usage
      /ns1_data                ns1->/data                 tasanuma                users                      rwxr-xr-x                 [NsQuota: 10/1, SsQuota: 10 B/0 B]
      
      $ hdfs dfsrouteradmin -rm /ns1_data
      $ hdfs dfsrouteradmin -add /ns1_data ns1 /data
      $ hdfs dfsrouteradmin -ls /ns1_data
      Source                    Destinations              Owner                     Group                     Mode                      Quota/Usage
      /ns1_data                ns1->/data                 tasanuma                users                      rwxr-xr-x                 [NsQuota: -/-, SsQuota: -/-]
      
      $ hadoop fs -put file1 /ns1_data/file1
      put: The DiskSpace quota of /data is exceeded: quota = 10 B = 10 B but diskspace consumed = 402653184 B = 384 MB
      

      This is because the quotas of the subclusters still remain after "hdfs dfsrouteradmin -rm". And "hdfs dfsrouteradmin -add" doesn't reflect the existing quotas.

        Attachments

        1. HDFS-14150.1.patch
          6 kB
          Takanobu Asanuma
        2. HDFS-14150.2.patch
          7 kB
          Takanobu Asanuma
        3. HDFS-14150-HDFS-13891.2.patch
          7 kB
          Takanobu Asanuma
        4. HDFS-14150-HDFS-13891.3.patch
          8 kB
          Takanobu Asanuma

          Activity

            People

            • Assignee:
              tasanuma Takanobu Asanuma
              Reporter:
              tasanuma Takanobu Asanuma
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: