You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Nihal Jain (JIRA)" <ji...@apache.org> on 2018/04/04 06:42:00 UTC

[jira] [Commented] (HBASE-19800) hbase shell api 'list' or program api prefix has regex problem

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

Nihal Jain commented on HBASE-19800:
------------------------------------

Actually shell/API is returning all the tablenames which belong to any namespace starting with 'd'. As the default namespace for hbase is "default", you are getting all the tables in that namespace.

Try running:
{code:java}
list "default:d.*"
{code}
It will only return tables starting with character 'd' in default namespace "default".

> hbase shell api 'list' or program api prefix has regex problem
> --------------------------------------------------------------
>
>                 Key: HBASE-19800
>                 URL: https://issues.apache.org/jira/browse/HBASE-19800
>             Project: HBase
>          Issue Type: Bug
>          Components: API, shell
>    Affects Versions: 1.2.1
>         Environment: hadoop 2.7.3 
> hbase 1.2.1
>            Reporter: zzzhy
>            Priority: Major
>         Attachments: image-2018-01-16-12-08-20-327.png, image-2018-01-16-12-13-25-723.png
>
>
> while using list command in hbase shell, most of all works well except which one contains 'd' char, as well as hbase program api prefix regex.
> eg.  list 'd.\*' wont work, but '^d\[\da-f\]\{31\}' works well. and 'd.\*' performs just listing all of the tables.
> !image-2018-01-16-12-13-25-723.png!
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)