Return-Path: X-Original-To: apmail-hbase-dev-archive@www.apache.org Delivered-To: apmail-hbase-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 68A75105B1 for ; Mon, 16 Feb 2015 16:28:59 +0000 (UTC) Received: (qmail 89843 invoked by uid 500); 16 Feb 2015 16:28:58 -0000 Delivered-To: apmail-hbase-dev-archive@hbase.apache.org Received: (qmail 89759 invoked by uid 500); 16 Feb 2015 16:28:58 -0000 Mailing-List: contact dev-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list dev@hbase.apache.org Received: (qmail 89747 invoked by uid 99); 16 Feb 2015 16:28:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Feb 2015 16:28:58 +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 yuzhihong@gmail.com designates 209.85.213.44 as permitted sender) Received: from [209.85.213.44] (HELO mail-yh0-f44.google.com) (209.85.213.44) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Feb 2015 16:28:52 +0000 Received: by mail-yh0-f44.google.com with SMTP id f73so14433270yha.3 for ; Mon, 16 Feb 2015 08:27:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=5HKk+VqMrpyNNCllY2povZgBu0FQjk1UEAHq5qX1/8g=; b=H/ySLswjFVE/Ss90lHavrbh1KsMF+Y82v2oxgg9JH20ucBUGbJQKXq4XnK1w9RwLPS Lzmh+XFAEY7MW+Y8Kb0JrwADXpXi/nf+7PSe6ZjUiZNxPghzBy+UKZOAGBQ/66A3b5u7 1KBQCrbj7mOVyqARl/UVz2jqCbiB3OJOYqFLOoY4IgHn5WjwwVDwdVz/aMseEJ77Fkvs 4CBWaJ8S0XdSgOVxutL+VFsh/31p1gotieBwVE6DvqRRV8pMWDHDpKvgJpX2huk6SNjZ 7AEB+1ynGH4Gc1eJLfcBSafO8F6SPGe3kBqipUcv3RfgGI6B7arSRk/uJ0rMJuC7nHTB by1Q== MIME-Version: 1.0 X-Received: by 10.236.47.131 with SMTP id t3mr99639yhb.97.1424104067209; Mon, 16 Feb 2015 08:27:47 -0800 (PST) Received: by 10.170.111.72 with HTTP; Mon, 16 Feb 2015 08:27:47 -0800 (PST) In-Reply-To: References: Date: Mon, 16 Feb 2015 08:27:47 -0800 Message-ID: Subject: Re: Problem Migrating a CustomFilter to Hbase 0.98 From: Ted Yu To: "dev@hbase.apache.org" Content-Type: multipart/alternative; boundary=001a11c218400c9fec050f371155 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c218400c9fec050f371155 Content-Type: text/plain; charset=UTF-8 Mind pastebin'ing relevant potion of your MyCustomFilter ? Thanks On Sun, Feb 15, 2015 at 9:37 PM, Grant Pan wrote: > I have a a filter, "MyCustomFilter" that is similar to the > SingleColumnValueFilter in the sense that I have the toByteArray(), > parseFrom(), and convert() function usage in the same way and also extends > FilterBase. > > The filter was originally for an old version of Hbase that used the write > and readFields methods. Despite having the same methods and putting console > output in the parseFrom, toByteArray, and convert functions... running my > code that sets the specific filter, I can see the toByteArray and convert > functions being called 9 times based on the logs. > > Then I get the following errors: > java.util.concurrent.TimeoutException > at java.util.concurrent.FutureTask.get(FutureTask.java:201) > at > Mon Feb 16 05:12:16 UTC 2015, null, java.net.SocketTimeoutException: > callTimeout > > *Caused by: org.apache.hadoop.hbase.exceptions.DeserializationException: > parseFrom called on base Filter, but should be called on derived type* > at org.apache.hadoop.hbase.filter.Filter.parseFrom(Filter.java:267) > ... 12 more > > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > Method) > at > > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) > > I recall that if you see the error in bold, it means your CustomFilter > class does not have a parseFrom method, which I see that no console output > has been written at all that is within my parseFrom function. What is the > problem? > --001a11c218400c9fec050f371155--