[ 
https://issues.apache.org/jira/browse/HBASE-6692?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13444653#comment-13444653
 ] 

Aditya Kishore commented on HBASE-6692:
---------------------------------------

@Ted, thanks for having a look.

Yes, it works for ROOT and META both because the function I have used is 

{code}
  public static boolean isMetaTable(final byte [] tableName) {
    return Bytes.equals(tableName, HConstants.ROOT_TABLE_NAME) ||
      Bytes.equals(tableName, HConstants.META_TABLE_NAME);
  }
{code}
                
> [shell] Cannot describe '.META.' or '-ROOT-' tables
> ---------------------------------------------------
>
>                 Key: HBASE-6692
>                 URL: https://issues.apache.org/jira/browse/HBASE-6692
>             Project: HBase
>          Issue Type: Bug
>          Components: shell
>    Affects Versions: 0.96.0, 0.94.1
>            Reporter: Aditya Kishore
>            Assignee: Aditya Kishore
>             Fix For: 0.96.0
>
>         Attachments: HBASE-6692_trunk.patch
>
>
> This got introduced as a side effect of HBASE-3313. Now it is not possible to 
> describe '.META.' or '\-ROOT\-' tables from HBase shell.
> {noformat}
> hbase(main):002:0> describe '-ROOT-'
> DESCRIPTION                                                                   
>                                                                             
> ENABLED
> ERROR: java.lang.IllegalArgumentException: Illegal first character <45> at 0. 
> User-space table names can only start with 'word characters': i.e. 
> [a-zA-Z_0-9]: -ROOT-
> Here is some help for this command:
> Describe the named table. For example:
>   hbase> describe 't1'
> {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

Reply via email to