hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Y. SREENIVASULU REDDY (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-11613) "get_counter" shell command is not displaying the result for counter columns.
Date Tue, 19 Aug 2014 09:13:19 GMT

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

Y. SREENIVASULU REDDY commented on HBASE-11613:

 I verified the patch for issue HBASE-10728 in 0.98.x version it is working fine
Resolve issue setting to duplicate.

> "get_counter" shell command is not displaying the result for counter columns.
> -----------------------------------------------------------------------------
>                 Key: HBASE-11613
>                 URL: https://issues.apache.org/jira/browse/HBASE-11613
>             Project: HBase
>          Issue Type: Bug
>          Components: shell
>    Affects Versions: 0.98.3
>            Reporter: Y. SREENIVASULU REDDY
>            Priority: Minor
> perform the following opertions in HBase shell prompt.
> 1. create a table with one column family.
> 2. insert some amount of data into the table.
> 3. then perform increment operation on any column qualifier.
> eg: incr 't', 'r1', 'f:c1'
> 4. then queried the get counter query,
> it is throwing nocounter found message to the user.
> {code}
> eg:
>  hbase(main):010:0> get_counter 't', 'r1', 'f', 'c1'
>  No counter found at specified coordinates
> {code}
> =====================================================
> and wrong message is throwing to user, while executing the get_counter query.
> {code}
> hbase(main):009:0> get_counter 't', 'r1', 'f'
> ERROR: wrong number of arguments (3 for 4)
> Here is some help for this command:
> Return a counter cell value at specified table/row/column coordinates.
> A cell cell should be managed with atomic increment function oh HBase
> and the data should be binary encoded. Example:
>   hbase> get_counter 'ns1:t1', 'r1', 'c1'
>   hbase> get_counter 't1', 'r1', 'c1'
> The same commands also can be run on a table reference. Suppose you had a reference
> t to table 't1', the corresponding command would be:
>   hbase> t.get_counter 'r1', 'c1'
> {code}
> {code}
> problem:
>    In example they given 3 arguments but asking 4 arguments
>    If run with 3 arguments it will throw error.
>    if run with 4 arguments "No counter found at specified coordinates" message is throwing
even though counter is specified.
> {code}

This message was sent by Atlassian JIRA

View raw message