Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-13553 RBF: Support global quota
  3. HDFS-13307

RBF: Improve the use of setQuota command

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 2.10.0, 3.2.0
    • None
    • None
    • Reviewed

    Description

      If hdfs dfsrouteradmin -setQuota only set one of -nsQuota and -ssQuota, the another one will be cleared.
      The following is the step:
      1. set /test1 -nsQuota 400 -ssQuota 200
      hdfs dfsrouteradmin -setQuota /test1 -nsQuota 400 -ssQuota 200
      Successfully set quota for mount point /test1

      2. after a moment, list /test1, everything is ok.
      hdfs dfsrouteradmin -ls /test1
      Source Destinations Owner Group Mode Quota/Usage
      /test1 ns1->/test1 hadp hadp rwxr-xr-x [NsQuota: 400/0, SsQuota: 200 B/0 B]

      3. only set /test1 -nsQuota 600
      hdfs dfsrouteradmin -setQuota /test1 -nsQuota 600
      Successfully set quota for mount point /test1

      4. after a moment, list /test1, now ssQuota has been cleared.
      hdfs dfsrouteradmin -ls /test1
      Source Destinations Owner Group Mode Quota/Usage
      /test1 ns1->/test1 hadp hadp rwxr-xr-x [NsQuota: 600/0, SsQuota: -/-]

      HDFS-13307.001.patch

      Attachments

        1. HDFS-13307.004.patch
          4 kB
          liuhongtong
        2. HDFS-13307.003.patch
          4 kB
          liuhongtong
        3. HDFS-13307.002.patch
          4 kB
          liuhongtong
        4. HDFS-13307.001.patch
          0.8 kB
          liuhongtong

        Issue Links

          Activity

            People

              liuhongtong liuhongtong
              liuhongtong liuhongtong
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: