Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed
    • Release Note:
      Hide
      Namespace auditor provides basic quota support for namespaces in terms of number of tables and number of regions. In order to use namespace quotas, quota support must be enabled by setting
      "hbase.quota.enabled" property to true in hbase-site.xml file.

      The users can add quota information to namespace, while creating new namespaces or by altering existing ones.

      Examples:
      1. create_namespace 'ns1', {'hbase.namespace.quota.maxregions'=>'10'}
      2. create_namespace 'ns2', {'hbase.namespace.quota.maxtables'=>'2','hbase.namespace.quota.maxregions'=>'5'}
      3. alter_namespace 'ns3', {METHOD => 'set', 'hbase.namespace.quota.maxtables'=>'5','hbase.namespace.quota.maxregions'=>'25'}

      The quotas can be modified/added to namespace at any point of time. To remove quotas, the following command can be used:

      alter_namespace 'ns3', {METHOD => 'unset', NAME => 'hbase.namespace.quota.maxtables'}
      alter_namespace 'ns3', {METHOD => 'unset', NAME => 'hbase.namespace.quota.maxregions'}
      Show
      Namespace auditor provides basic quota support for namespaces in terms of number of tables and number of regions. In order to use namespace quotas, quota support must be enabled by setting "hbase.quota.enabled" property to true in hbase-site.xml file. The users can add quota information to namespace, while creating new namespaces or by altering existing ones. Examples: 1. create_namespace 'ns1', {'hbase.namespace.quota.maxregions'=>'10'} 2. create_namespace 'ns2', {'hbase.namespace.quota.maxtables'=>'2','hbase.namespace.quota.maxregions'=>'5'} 3. alter_namespace 'ns3', {METHOD => 'set', 'hbase.namespace.quota.maxtables'=>'5','hbase.namespace.quota.maxregions'=>'25'} The quotas can be modified/added to namespace at any point of time. To remove quotas, the following command can be used: alter_namespace 'ns3', {METHOD => 'unset', NAME => 'hbase.namespace.quota.maxtables'} alter_namespace 'ns3', {METHOD => 'unset', NAME => 'hbase.namespace.quota.maxregions'}

      Description

      This task involves creating an observer which provides basic quota support to namespaces in terms of (1) number of tables and (2) number of regions. The quota support can be enabled by setting:

      <property>
      <name>hbase.coprocessor.region.classes</name>
      <value>org.apache.hadoop.hbase.namespace.NamespaceController</value>
      </property>
      <property>
      <name>hbase.coprocessor.master.classes</name>
      <value>org.apache.hadoop.hbase.namespace.NamespaceController</value>
      </property>

      in the hbase-site.xml.

      To add quotas to namespace, while creating namespace properties need to be added.

      Examples:
      1. namespace_create 'ns1',

      {'hbase.namespace.quota.maxregion'=>'10'}

      2. 1. namespace_create 'ns2',

      {'hbase.namespace.quota.maxtables'=>'2'}

      ,

      {'hbase.namespace.quota.maxregion'=>'5'}

      The quotas can be modified/added to namespace at any point of time.

        Attachments

        1. HBASE-8410_trunk_14.patch
          132 kB
          Francis Liu
        2. HBASE-8410.docx
          202 kB
          Vandana Ayyalasomayajula
        3. HBASE-8410-master.patch
          76 kB
          Vandana Ayyalasomayajula
        4. HBASE-8410-master.1.patch
          58 kB
          Vandana Ayyalasomayajula
        5. HBASE-8410-master.4.patch
          59 kB
          Vandana Ayyalasomayajula
        6. HBASE-8410-master.5.patch
          60 kB
          Vandana Ayyalasomayajula
        7. HBASE-8410-master.6.patch
          60 kB
          Vandana Ayyalasomayajula
        8. HBASE-8410-master.7.patch
          61 kB
          Vandana Ayyalasomayajula
        9. HBASE-8410-master.9.patch
          55 kB
          Vandana Ayyalasomayajula
        10. 8410-master.9.patch
          55 kB
          Ted Yu

          Issue Links

            Activity

              People

              • Assignee:
                avandana Vandana Ayyalasomayajula
                Reporter:
                toffer Francis Liu
              • Votes:
                0 Vote for this issue
                Watchers:
                20 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: