You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Nick Dimiduk (JIRA)" <ji...@apache.org> on 2013/08/20 23:41:53 UTC

[jira] [Created] (HBASE-9275) shell "list" includes "hbase:namespace"

Nick Dimiduk created HBASE-9275:
-----------------------------------

             Summary: shell "list" includes "hbase:namespace"
                 Key: HBASE-9275
                 URL: https://issues.apache.org/jira/browse/HBASE-9275
             Project: HBase
          Issue Type: Bug
          Components: shell
    Affects Versions: 0.95.2
            Reporter: Nick Dimiduk
            Priority: Minor


>From the shell "list" operation, we see the "user:namespace" table included in results. This is different from retrieving a tabling listing from the REST service, which omits that table.

The reason appears to be that hbase shell "list" command calls the deprecated {{HBaseAdmin#getTableNames(String)}}, which invokes {{HMaster#getTableNames}}. This implementation has different system table filtering logic from {{HMaster#getTableDescriptors}}. The latter is the call underlying the REST implementation.

{noformat}
hbase(main):004:0> list
TABLE                                                                                                                                                                                                     
hbase:namespace                                                                                                                                                                                           
1 row(s) in 0.0390 seconds

=> #<#<Class:0x16309ee1>:0x66f11de2>
{noformat}

{noformat}
$ curl http://localhost:8080/
$
{noformat}

--
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