Return-Path: X-Original-To: apmail-hbase-user-archive@www.apache.org Delivered-To: apmail-hbase-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 53DEE10B51 for ; Thu, 27 Nov 2014 13:22:41 +0000 (UTC) Received: (qmail 27740 invoked by uid 500); 27 Nov 2014 13:22:38 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 27663 invoked by uid 500); 27 Nov 2014 13:22:38 -0000 Mailing-List: contact user-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hbase.apache.org Delivered-To: mailing list user@hbase.apache.org Received: (qmail 27651 invoked by uid 99); 27 Nov 2014 13:22:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Nov 2014 13:22:38 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of nestorjb@gmail.com designates 209.85.218.46 as permitted sender) Received: from [209.85.218.46] (HELO mail-oi0-f46.google.com) (209.85.218.46) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Nov 2014 13:22:33 +0000 Received: by mail-oi0-f46.google.com with SMTP id h136so3452031oig.19 for ; Thu, 27 Nov 2014 05:19:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=qy5CeCDDwqUapHOoobIcuQphXxfr5GQg+1AWLNv1nso=; b=aA9Ks48CMtBzYygECX55NSLa87qHuLRs7MRwfQp0yOWxQtYJYEMJE729OUbFVrxMkh Dc8vdngcuFWRlBDl/Rt7ZAlgc94By/w38n0iZ290qz2/KYY2b3K/5rV1dXANC49lGxx1 KlOEwkHSIeacNq+IQ3Nb9hIVgHGmPzi6HHF+F9PhC0sqmvLBsNZSl59PxrmBt1y4XbIG kBY4tiicOe8L8SpjkBk9w3eVTx5GW59WfqSzwivI/AYX8ZuBXA6/HiiZgG1s+0XhRaVf UuqKS3CGqLdDsw/edgEdn8uQ7f+Um5zH/YziCu4H/O+blwGsc5lLLC4NxYRpvrTu40Ml D3kg== X-Received: by 10.202.175.146 with SMTP id y140mr21644372oie.79.1417094397165; Thu, 27 Nov 2014 05:19:57 -0800 (PST) MIME-Version: 1.0 Received: by 10.76.69.199 with HTTP; Thu, 27 Nov 2014 05:19:37 -0800 (PST) In-Reply-To: References: From: =?UTF-8?B?TsOpc3RvciBCb3Njw6Fu?= Date: Thu, 27 Nov 2014 08:49:37 -0430 Message-ID: Subject: Re: Invalid Comparater or Expected 4 or 6 but got: N using filter with Java Thrift API To: "user@hbase.apache.org" Content-Type: multipart/alternative; boundary=001a113ce9e8280a350508d7002f X-Virus-Checked: Checked by ClamAV on apache.org --001a113ce9e8280a350508d7002f Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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=C3=A9stor On Wed, Nov 26, 2014 at 6:42 AM, N=C3=A9stor Bosc=C3=A1n wrote: > Hi > > I've tried to apply the filters using the Java Thrift API but I get in th= e > Thrift server log screen: > > SingleColumnValueFilter('familycolumn', 'column', =3D, 'value') =3D> > IllegalArgumentException: Invalid comparator > SingleColumnValueFilter('familycolumn', 'column', EQUAL, 'value') =3D> > IllegalArgumentException: Invalid comparator > SingleColumnValueFilter('familycolumn', 'column', 'EQUAL', 'value') =3D> > IllegalArgumentException: Invalid comparator > SingleColumnValueFilter('familycolumn', 'column', > CompareFilter::CompareOp.valueOf('EQUAL'), 'value') =3D> > IllegalArgumentException: Expected 4 or 6 but got: 3 > SingleColumnValueFilter(Bytes.toBytes('familycolumn'), > Bytes.toBytes('column'), CompareFilter::CompareOp.valueOf('EQUAL'), > Bytes.toBytes('value')) =3D> IllegalArgumentException: Expected 4 or 6 bu= t > got: 1 > > I couldn't find on the Internet an example of a SingleColumnValueFilter > with the Thrift Java API. > > Regards, > > N=C3=A9stor > --001a113ce9e8280a350508d7002f--