hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-7306) [shell] Count shell command to return ruby bindable value.
Date Tue, 11 Dec 2012 00:13:23 GMT

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

Hudson commented on HBASE-7306:
-------------------------------

Integrated in HBase-TRUNK-on-Hadoop-2.0.0 #291 (See [https://builds.apache.org/job/HBase-TRUNK-on-Hadoop-2.0.0/291/])
    HBASE-7306 [shell] Count shell command to return ruby bindable value (Revision 1419654)

     Result = FAILURE
jmhsieh : 
Files : 
* /hbase/trunk/hbase-server/src/main/ruby/shell/commands/count.rb

                
> [shell] Count shell command to return ruby bindable value.
> ----------------------------------------------------------
>
>                 Key: HBASE-7306
>                 URL: https://issues.apache.org/jira/browse/HBASE-7306
>             Project: HBase
>          Issue Type: Sub-task
>          Components: Client, shell
>    Affects Versions: 0.96.0
>            Reporter: Jonathan Hsieh
>            Assignee: Jonathan Hsieh
>             Fix For: 0.96.0
>
>         Attachments: hbase-7306.patch
>
>
> Currently if you have a table foo with 5 rows in it, you can run this command:
> {code}
> hbase(main):001:0> x = count 'foo'
> 3100 row(s) in 0.7030 seconds
> hbase(main):001:0> x
> nil
> {code}
> Ideally, the 'x' variable should be 5. so something like this coudl be done:
> {code}
> Kernel.exit 127 if x != 5
> {code}
> This is useful for having scripts that can check a condition and act.

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

Mime
View raw message