hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dima Spivak <dspi...@cloudera.com>
Subject Re: namespace quota not take effect
Date Thu, 25 Aug 2016 05:42:05 GMT
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
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in
SLF4J: Found binding in
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an
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',
Took 1.0000 seconds

hbase(main):002:0> describe_namespace 'ns1'

{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 <who.cat@qq.com> 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'
>   {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
>   Any ideas ?Thanks .
>  Best wishes.
>  who.cat


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message