hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Néstor Boscán <nesto...@gmail.com>
Subject Re: Invalid Comparater or Expected 4 or 6 but got: N using filter with Java Thrift API
Date Thu, 27 Nov 2014 13:19:37 GMT
The error was that in 'value' I have to specify the comparator "binary:",
"binaryprefix:", etc. I was confusing comparator with the compare operator.

Regards,

Néstor

On Wed, Nov 26, 2014 at 6:42 AM, Néstor Boscán <nestorjb@gmail.com> wrote:

> Hi
>
> I've tried to apply the filters using the Java Thrift API but I get in the
> Thrift server log screen:
>
> SingleColumnValueFilter('familycolumn', 'column', =, 'value') =>
> IllegalArgumentException: Invalid comparator
> SingleColumnValueFilter('familycolumn', 'column', EQUAL, 'value') =>
> IllegalArgumentException: Invalid comparator
> SingleColumnValueFilter('familycolumn', 'column', 'EQUAL', 'value') =>
> IllegalArgumentException: Invalid comparator
> SingleColumnValueFilter('familycolumn', 'column',
> CompareFilter::CompareOp.valueOf('EQUAL'), 'value') =>
> IllegalArgumentException: Expected 4 or 6 but got: 3
> SingleColumnValueFilter(Bytes.toBytes('familycolumn'),
> Bytes.toBytes('column'), CompareFilter::CompareOp.valueOf('EQUAL'),
> Bytes.toBytes('value')) => IllegalArgumentException: Expected 4 or 6 but
> got: 1
>
> I couldn't find on the Internet an example of a SingleColumnValueFilter
> with the Thrift Java API.
>
> Regards,
>
> Néstor
>

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