hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stack <st...@duboce.net>
Subject Re: Custom Comparator issue
Date Fri, 06 Nov 2009 00:19:36 GMT
On Thu, Nov 5, 2009 at 2:52 PM, Karthik Manimaran <
karthikmanimaran@gmail.com> wrote:

> Filter is on both server and client side. I re-compiled Hbase and after
> restart the looping ceased.
>
> Why did you think you had to recompile?



> 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?
>
>
Have you added your integer member to the serialization (See Writables
readFields and write methods)?

St.Ack




> Thanks,
> Karthik.
>
> 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.
>>>
>>>
>>>
>>
>>
>>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message