You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Sebastien Rainville (JIRA)" <ji...@apache.org> on 2008/07/09 22:53:31 UTC

[jira] Created: (HBASE-734) scan '.META.', {LIMIT => 10} crashes

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
            Priority: Minor


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.


[jira] Updated: (HBASE-734) scan '.META.', {LIMIT => 10} crashes

Posted by "Izaak Rubin (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-734?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Izaak Rubin updated HBASE-734:
------------------------------

    Attachment: hbase-734.patch

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.


[jira] Assigned: (HBASE-734) scan '.META.', {LIMIT => 10} crashes

Posted by "stack (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-734?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

stack reassigned HBASE-734:
---------------------------

    Assignee: Izaak Rubin

Izaak is the man for this one

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


[jira] Issue Comment Edited: (HBASE-734) scan '.META.', {LIMIT => 10} crashes

Posted by "Izaak Rubin (JIRA)" <ji...@apache.org>.
    [ 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.


[jira] Resolved: (HBASE-734) scan '.META.', {LIMIT => 10} crashes

Posted by "stack (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-734?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

stack resolved HBASE-734.
-------------------------

       Resolution: Fixed
    Fix Version/s: 0.2.0

Committed.  Thanks for the patch Izaak.

> 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
>             Fix For: 0.2.0
>
>         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.