Return-Path: Delivered-To: apmail-hadoop-hbase-dev-archive@minotaur.apache.org Received: (qmail 31533 invoked from network); 1 Apr 2009 22:58:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Apr 2009 22:58:44 -0000 Received: (qmail 58463 invoked by uid 500); 1 Apr 2009 22:58:43 -0000 Delivered-To: apmail-hadoop-hbase-dev-archive@hadoop.apache.org Received: (qmail 58437 invoked by uid 500); 1 Apr 2009 22:58:43 -0000 Mailing-List: contact hbase-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hbase-dev@hadoop.apache.org Delivered-To: mailing list hbase-dev@hadoop.apache.org Received: (qmail 58427 invoked by uid 99); 1 Apr 2009 22:58:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Apr 2009 22:58:43 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Apr 2009 22:58:34 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4DEBE234C48D for ; Wed, 1 Apr 2009 15:58:13 -0700 (PDT) Message-ID: <429378711.1238626693317.JavaMail.jira@brutus> Date: Wed, 1 Apr 2009 15:58:13 -0700 (PDT) From: "Ken Weiner (JIRA)" To: hbase-dev@hadoop.apache.org Subject: [jira] Updated: (HBASE-1303) Secondary index configuration prevents HBase from starting In-Reply-To: <1422827074.1238549990647.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HBASE-1303?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ken Weiner updated HBASE-1303: ------------------------------ Attachment: HBASE-1303_0.19.1.patch Please review my attached patch. > Secondary index configuration prevents HBase from starting > ---------------------------------------------------------- > > Key: HBASE-1303 > URL: https://issues.apache.org/jira/browse/HBASE-1303 > Project: Hadoop HBase > Issue Type: Bug > Components: regionserver > Affects Versions: 0.19.1 > Reporter: Ken Weiner > Attachments: HBASE-1303_0.19.1.patch > > > HBase does not start up when configured to use the IndexedRegionServer with the following properties in hbase-site.xml > {code:xml} > > hbase.regionserver.class > org.apache.hadoop.hbase.ipc.IndexedRegionInterface > Indexing is enabled for this hbase server. > > > hbase.regionserver.impl > org.apache.hadoop.hbase.regionserver.tableindexed.IndexedRegionServer > Indexing is enabled for this hbase server. > > {code} > This results in the following exception in the log: > {noformat} > 2009-03-31 12:33:35,993 INFO org.apache.hadoop.ipc.HBaseServer: IPC Server handler 8 on 45026, call getProtocolVersion(org.apache.hadoop.hbase.ipc.IndexedRegionInterface, 16) from 127.0.0.1:60854: error: java.io.IOException: Unknown protocol to name node: org.apache.hadoop.hbase.ipc.IndexedRegionInterface > java.io.IOException: Unknown protocol to name node: org.apache.hadoop.hbase.ipc.IndexedRegionInterface > at org.apache.hadoop.hbase.regionserver.HRegionServer.getProtocolVersion(HRegionServer.java:2146) > at org.apache.hadoop.hbase.regionserver.transactional.TransactionalRegionServer.getProtocolVersion(TransactionalRegionServer.java:92) > at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at org.apache.hadoop.hbase.ipc.HBaseRPC$Server.call(HBaseRPC.java:632) > at org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:912) > 2009-03-31 12:33:35,994 WARN org.apache.hadoop.hbase.master.BaseScanner: Scan ROOT region > java.io.IOException: java.io.IOException: Unknown protocol to name node: org.apache.hadoop.hbase.ipc.IndexedRegionInterface > at org.apache.hadoop.hbase.regionserver.HRegionServer.getProtocolVersion(HRegionServer.java:2146) > at org.apache.hadoop.hbase.regionserver.transactional.TransactionalRegionServer.getProtocolVersion(TransactionalRegionServer.java:92) > at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at org.apache.hadoop.hbase.ipc.HBaseRPC$Server.call(HBaseRPC.java:632) > at org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:912) > {noformat} > There is also a mailing list post on this problem: > http://markmail.org/message/6pugle5uegiijjbc?q=Secondary+Indexes+problem > I think the solution is to implement {{public long getProtocolVersion(final String protocol, final long clientVersion)}} in {{org.apache.hadoop.hbase.regionserver.tableindexed.IndexedRegionServer}} as follows: > {code:java} > @Override > public long getProtocolVersion(final String protocol, final long clientVersion) > throws IOException { > if (protocol.equals(IndexedRegionInterface.class.getName())) { > return HBaseRPCProtocolVersion.versionID; > } > return super.getProtocolVersion(protocol, clientVersion); > } > {code} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.