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

irubin edited comment on HBASE-734 at 7/9/08 3:07 PM:
-----------------------------------------------------------

The problem was in the documentation of the scan command, not the actual 
command itself.  Scan must take in the name of the table, and may optionally 
take an array of columns *or* an array of columns and scanner specifications.  
Scan will not accept only a table name and scanner specifications.  The 
attached patch makes this more clear in the documentation, and gives the user a 
warning if they use scan with only a table name and scanner specifications.

The tests in bin/HBase.rb and bin/Formatter.rb all passed.

      was (Author: irubin):
    The problem was in the documentation of the scan command, not the actual 
command itself.  Scan must take in the name of the table, and may optionally 
take an array of columns *or* an array of columns and scanner specifications.  
Scan will not accept only a table name and scanner specifications.  The 
attached patch makes this more clear in the documentation, and gives the user a 
warning if they use scan with only a table name and scanner specifications.
  
> scan '.META.', {LIMIT => 10} crashes
> ------------------------------------
>
>                 Key: HBASE-734
>                 URL: https://issues.apache.org/jira/browse/HBASE-734
>             Project: Hadoop HBase
>          Issue Type: Bug
>          Components: util
>    Affects Versions: 0.2.0
>            Reporter: Sebastien Rainville
>            Assignee: Izaak Rubin
>            Priority: Minor
>         Attachments: hbase-734.patch
>
>
> this command in the jruby doesn't work: scan '.META.', {LIMIT => 10}
> got this:
> hbase(main):007:0> scan '.META.', {LIMIT => 10}
> 08/07/09 16:49:08 DEBUG client.HConnectionManager$TableServers: Cache hit in 
> table locations for row <> and tableName .META.: location server 
> 127.0.0.1:51708, location region name .META.,,1
> NoMethodError: undefined method `to_java' for {"LIMIT"=>10}:Hash
>       from 
> /home/sebastien/projets/java/hbase-trunk/bin/../bin/HBase.rb:225:in `scan'
>       from /home/sebastien/projets/java/hbase-trunk/bin/../bin/hirb.rb:265:in 
> `scan'
>       from (hbase):8:in `binding'
> hbase(main):008:0> 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to