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',
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
Attachments
Issue Links
- breaks
-
HBASE-13394 Failed to recreate a table when quota is enabled
- Closed
- is related to
-
HBASE-10994 HBase Multi-Tenancy
- Closed
- relates to
-
HBASE-13593 Quota support for namespace should take snapshot restore and clone into account
- Closed
-
HBASE-13357 If maxTables/maxRegions exceeds quota in a namespace, throw QuotaExceededException
- Closed
-
HBASE-14259 Backport Namespace quota support to 98 branch
- Closed