[
https://issues.apache.org/jira/browse/HBASE-8410?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13744374#comment-13744374
]
Ted Yu commented on HBASE-8410:
-------------------------------
{code}
+ return zkNamespaceManager;
+ } else {
+ throw new IOException("ZKNamespaceManager found to be null.");
{code}
nit: 'else' keyword is not needed.
In NamespaceController:
{code}
+ } else if (e instanceof RegionServerCoprocessorEnvironment) {
+ RegionServerCoprocessorEnvironment rsEnv =
(RegionServerCoprocessorEnvironment) e;
+ zk = rsEnv.getRegionServerServices().getZooKeeper();
+ zkManager = new ZKNamespaceManager(zk);
+ zkManager.start();
+ } else if (e instanceof RegionCoprocessorEnvironment) {
+ // if running at region
+ RegionCoprocessorEnvironment regionEnv = (RegionCoprocessorEnvironment)
e;
+ zk = regionEnv.getRegionServerServices().getZooKeeper();
+ zkManager = new ZKNamespaceManager(zk);
{code}
If I read the above correctly, there would be n+1 ZKNamespaceManager's running
in region server where n is the number of online regions for that server ?
> Basic quota support for namespaces
> ----------------------------------
>
> Key: HBASE-8410
> URL: https://issues.apache.org/jira/browse/HBASE-8410
> Project: HBase
> Issue Type: Sub-task
> Reporter: Francis Liu
> Assignee: Vandana Ayyalasomayajula
> Attachments: HBASE_8410_1_trunk.patch, HBASE_8410.patch,
> HBASE-8410_trunk_2.patch
>
>
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira