Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-8015 Support for Namespaces
  3. HBASE-8410

Basic quota support for namespaces

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0
    • None
    • Reviewed
    • 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. 8410-master.9.patch
          55 kB
          Ted Yu
        2. HBASE-8410_trunk_14.patch
          132 kB
          Francis Christopher Liu
        3. HBASE-8410.docx
          202 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. HBASE-8410-master.patch
          76 kB
          Vandana Ayyalasomayajula

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            avandana Vandana Ayyalasomayajula
            toffer Francis Christopher Liu
            Votes:
            0 Vote for this issue
            Watchers:
            21 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment