(And same result with Apache HBase 1.1.5, the latest in the 1.1 line. Sorry for the double email, dev@.)
On Wed, Aug 24, 2016 at 10:42 PM, Dima Spivak <[email protected]> wrote: > Hey who.cat, > > I can't seem to reproduce this against master: > > [root@node-1 ~]# hbase shell > 2016-08-24 22:35:54,154 WARN [main] util.NativeCodeLoader: Unable to load > native-hadoop library for your platform... using builtin-java classes where > applicable > SLF4J: Class path contains multiple SLF4J bindings. > SLF4J: Found binding in [jar:file:/hbase/lib/slf4j- > log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class] > SLF4J: Found binding in [jar:file:/hadoop/share/hadoop/common/lib/slf4j- > log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class] > SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an > explanation. > SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory] > HBase Shell > Use "help" to get list of supported commands. > Use "exit" to quit this interactive shell. > Version 2.0.0-SNAPSHOT, rf174fec391f604f56c12cbc3ad6062d7fe640866, Mon > Aug 22 22:25:19 UTC 2016 > Took 0.0200 seconds > > > hbase(main):001:0> create_namespace 'ns1', {'hbase.namespace.quota. > maxtables'=>'2'} > Took 1.0000 seconds > > > > hbase(main):002:0> describe_namespace 'ns1' > DESCRIPTION > > > {NAME => 'ns1', hbase.namespace.quota.maxtables => '2'} > > > Took 0.0050 seconds > > > > hbase(main):003:0> create 'ns1:table1', 'cf1' > Created table ns1:table1 > Took 1.2990 seconds > > > hbase(main):004:0> create 'ns1:table2', 'cf1' > Created table ns1:table2 > Took 1.2170 seconds > > > hbase(main):005:0> create 'ns1:table3', 'cf1' > > ERROR: The table ns1:table3 cannot be created as it would exceed maximum > number of tables allowed in the namespace. The total number of tables > permitted is 2 > > The HBase version you cite is not an Apache HBase release, but a > vendor-specific one (specifically, it looks like you're running the HBase > shipped as part of HDP 2.4), so you might have better luck going through > the their support channels. > > On Tue, Aug 23, 2016 at 11:38 PM, W.H <[email protected]> wrote: > >> hi guys >> I am testing the hbase namespace quota at the maxTables and >> maxRegions.Followed the guide i add the option "hbase.quota.enabled" with >> value "true" in the hbase-site.xml .And then created the namespace : >> hbase(main):003:0> describe_namespace 'ns1' >> DESCRIPTION >> {NAME => 'ns1', maxregions => '2', maxtables => '1'} >> >> In the table definition a limited the maxtables as 1 ,but i created 5 >> tables under the namespace "ns1".It seems the quota did't take effect . >> The hbase cluster was restarted after hbase-site.xml modified.And my >> hbase version is 1.1.2.2.4. >> Any ideas ?Thanks . >> >> >> >> Best wishes. >> who.cat > > > > > -- > -Dima > -- -Dima
