Index: bin/HBase.rb =================================================================== --- bin/HBase.rb (revision 675357) +++ bin/HBase.rb (working copy) @@ -209,6 +209,8 @@ end if columns.class == String columns = [columns] + elsif columns.class != Array + raise ArgumentError.new("Must supply columns") end cs = columns.to_java(java.lang.String) limit = -1 Index: bin/hirb.rb =================================================================== --- bin/hirb.rb (revision 675357) +++ bin/hirb.rb (working copy) @@ -167,15 +167,21 @@ hbase> put 't1', 'r1', 'c1', ts1 scan Scan a table; pass table name and optionally an array of column - names and a dictionary of scanner specification that may include - one or more of following: LIMIT, STARTROW, STOPROW, or TIMESTAMP. - To scan all members of a column family, leave the qualifier empty - as in 'col_family:'. Examples: + names OR an array of column names and a dictionary of scanner + specifications. If you wish to include scanner specifications, + you must also include an array of columns. Scanner specifications + may include one or more of following: LIMIT, STARTROW, STOPROW, or + TIMESTAMP. To scan all members of a column family, leave the + qualifier empty as in 'col_family:'. Examples: + Correct: hbase> scan '.META.' hbase> scan '.META.', ['info:regioninfo'] hbase> scan 't1', ['c1', 'c2'], {LIMIT => 10, STARTROW => 'xyz'} + Incorrect: + hbase> scan 't1', {STARTROW => 'xyz'} + version Output this HBase version GENERAL NOTES: