HBase
  1. HBase
  2. HBASE-734

scan '.META.', {LIMIT => 10} crashes

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 0.2.0
    • Fix Version/s: 0.2.0
    • Component/s: util
    • Labels:
      None

      Description

      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>

        Activity

        Hide
        stack added a comment -

        Izaak is the man for this one

        Show
        stack added a comment - Izaak is the man for this one
        Hide
        Izaak Rubin added a comment - - edited

        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.

        Show
        Izaak Rubin added a comment - - edited 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.
        Hide
        stack added a comment -

        Committed. Thanks for the patch Izaak.

        Show
        stack added a comment - Committed. Thanks for the patch Izaak.

          People

          • Assignee:
            Izaak Rubin
            Reporter:
            Sebastien Rainville
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development