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

RBF: Fix synchronization of router quota and nameservice quota

    XMLWordPrintableJSON

Details

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

    Description

      Check Router Quota and ns Quota:

      $ hdfs dfsrouteradmin -ls /ns10t
      Mount Table Entries:
      Source                    Destinations              Owner                     Group                     Mode                      Quota/Usage              
      /ns10t                    ns10->/ns10t              hadp                      hadp                      rwxr-xr-x                 [NsQuota: 150/319, SsQuota: -/-]
      /ns10t/ns1mountpoint      ns1->/a/tt                hadp                      hadp                      rwxr-xr-x                 [NsQuota: -/-, SsQuota: -/-]
      $ hdfs dfs -count -q hdfs://ns10/ns10t
               150            -155            none             inf            3          302                  0 hdfs://ns10/ns10t
      

      Update Router Quota:

      $ hdfs dfsrouteradmin -setQuota /ns10t -nsQuota 400
      Successfully set quota for mount point /ns10t
      

      Check Router Quota and ns Quota:

      $ hdfs dfsrouteradmin -ls /ns10t
      Mount Table Entries:
      Source                    Destinations              Owner                     Group                     Mode                      Quota/Usage              
      /ns10t                    ns10->/ns10t              hadp                      hadp                      rwxr-xr-x                 [NsQuota: 400/319, SsQuota: -/-]
      /ns10t/ns1mountpoint      ns1->/a/tt                hadp                      hadp                      rwxr-xr-x                 [NsQuota: -/-, SsQuota: -/-]
      
      $ hdfs dfs -count -q hdfs://ns10/ns10t
               150            -155            none             inf            3          302                  0 hdfs://ns10/ns10t
      

      Now Router Quota has updated successfully, but ns Quota not.

       

      Attachments

        1. HDFS-13346.001.patch
          2 kB
          liuhongtong
        2. HDFS-13346.002.patch
          2 kB
          liuhongtong
        3. HDFS-13346.003.patch
          7 kB
          liuhongtong
        4. HDFS-13346.004.patch
          6 kB
          Yiqun Lin
        5. HDFS-13346.005.patch
          9 kB
          Yiqun Lin
        6. HDFS-13346.006.patch
          8 kB
          Yiqun Lin
        7. HDFS-13346-branch-2.001.patch
          8 kB
          Yiqun Lin

        Issue Links

          Activity

            People

              linyiqun Yiqun Lin
              liuhongtong liuhongtong
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: