hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karthik Manimaran <karthikmanima...@gmail.com>
Subject Re: Custom Comparator issue
Date Thu, 05 Nov 2009 22:52:25 GMT
Filter is on both server and client side. I re-compiled Hbase and after 
restart the looping ceased.

However, am faced with a new problem.

I have an integer member in custom comparator class that am initialising 
in a constructor . From the debug info in the logs, I see that the value 
of this integer is always 0 instead having the value I used in the 
constructor. Any ideas why this might be happening?


stack wrote:
> Filter is on both server and client-side?  Can you add lot output to figure
> why its looping?
> Thanks,
> St.Ack
> On Tue, Nov 3, 2009 at 6:17 PM, Karthik Manimaran <
> karthikmanimaran@gmail.com> wrote:
>> Hi,
>> I wrote a Custom Comparator that implements WritableByteArrayComparable and
>> used it in SingleColumnValueFilter as follows:
>> new SingleColumnValueFilter(family,
>> column,CompareFilter.CompareOp.EQUAL,customComparator);
>> The code seems to be stuck in an endless loop calling the write method over
>> and over. Any idea why this could be happening?
>> The same behavior occurs when I copy the exact code of SubstringComparator
>> and use it with a different name. Am using Hbase version 0.20.1. I also
>> noticed that the SubstringComparator works fine when used as is.
>> Thanks,
>> Karthik Manimaran.

View raw message