Re: Scanning .META. with start/stop row

2011-07-18 Thread Stack
That would be better yes Good stuff On Jul 18, 2011, at 9:42, Todd Lipcon wrote: > Yea, it used to throw some IllegalArgumentException. Now, I guess it just > gives the wrong result. > > Should shell compensate or should we fix the underlying issue? It seems we > could probably tweak the com

Re: Scanning .META. with start/stop row

2011-07-18 Thread Todd Lipcon
Yea, it used to throw some IllegalArgumentException. Now, I guess it just gives the wrong result. Should shell compensate or should we fix the underlying issue? It seems we could probably tweak the comparator to deal with the case when one of the comparison operands has no commas. -Todd On Mon,

Re: Scanning .META. with start/stop row

2011-07-18 Thread Stack
Ugh. I should have remembered this. Shell should probably compensate when the target of scan is one of the catalog tables. Good on you Todd, St.Ack On Sun, Jul 17, 2011 at 11:22 PM, Lars George wrote: > Wow, awesome Todd: > > hbase(main):004:0> scan '.META.', {STARTROW => 'testtable2', LIMIT =

Re: Scanning .META. with start/stop row

2011-07-17 Thread Lars George
Wow, awesome Todd: hbase(main):004:0> scan '.META.', {STARTROW => 'testtable2', LIMIT => 1} ROW COLUMN+CELL 2011-07-17T23:20:45.480-0700: 58.760: [GC 58.760: [ParNew: 19136K

Re: Scanning .META. with start/stop row

2011-07-17 Thread Todd Lipcon
Try with STARTROW => "testtable2,,"? I seem to remember some weirdness about the start/stop row having to have the meta "format" with commas, etc -Todd On Fri, Jul 15, 2011 at 2:01 PM, Stack wrote: > On Fri, Jul 15, 2011 at 11:40 AM, Lars George > wrote: > > Using the start row, it prints the

Re: Scanning .META. with start/stop row

2011-07-15 Thread Stack
On Fri, Jul 15, 2011 at 11:40 AM, Lars George wrote: > Using the start row, it prints the entire META. Starting with the STARTROW. > Setting a stop row it does > not print a single row: Yeah. I see that too in 0.90.3. St.Ack > > hbase(main):003:0> scan '.META.', { STARTROW => 'testtable2', S

Re: Scanning .META. with start/stop row

2011-07-15 Thread Lars George
Using the start row, it prints the entire META. Setting a stop row it does not print a single row: hbase(main):003:0> scan '.META.', { STARTROW => 'testtable2', STOPROW => 'testtable3' } ROW COLUMN+CELL 0 row(s) in 0.0220 seconds I have a testtable2 in this case.

Re: Scanning .META. with start/stop row

2011-07-15 Thread Stack
Passing 'STARTROW' in 0.90.3 seems to work. What you see Lars? St.Ack On Fri, Jul 15, 2011 at 11:31 AM, Lars George wrote: > Hi, > > I am on 0.90.1 (CDH3u0) but noticed that on trunk as well: doing scan of > .META. using a start and stop row does not work. The start row does nothing, > i.e. all

Scanning .META. with start/stop row

2011-07-15 Thread Lars George
Hi, I am on 0.90.1 (CDH3u0) but noticed that on trunk as well: doing scan of .META. using a start and stop row does not work. The start row does nothing, i.e. all is shown, and setting the stop row is the opposite, i.e. nothing is shown. Is that borked? Lars