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 D8B2310CD8 for ; Tue, 22 Oct 2013 18:04:19 +0000 (UTC) Received: (qmail 14141 invoked by uid 500); 22 Oct 2013 18:02:19 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 14089 invoked by uid 500); 22 Oct 2013 18:02:18 -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 14077 invoked by uid 99); 22 Oct 2013 18:02:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Oct 2013 18:02:16 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of yongyong313@gmail.com designates 209.85.160.47 as permitted sender) Received: from [209.85.160.47] (HELO mail-pb0-f47.google.com) (209.85.160.47) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Oct 2013 18:02:11 +0000 Received: by mail-pb0-f47.google.com with SMTP id rq2so853947pbb.20 for ; Tue, 22 Oct 2013 11:01:51 -0700 (PDT) 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=DeJpRi1WgPQPSeEKUtP9gs1lh1Ynk6odwv35o0BOV6A=; b=wOtK6mJ+9MIaFVOd2v60I6VDuIsbhhfPa7rysLRlZeIse6asJg9zefQE1wb4E0uNbt ldfaQcgSu7WVu8O98+RVwQan9NABWOvDn6/yZqB0PUGvvFjhmfEY4qP83Sb9GBafzfkD qt/t2b6dMuOwxWvJ+N/2O8TwzgXHYdwzKbjfrG2PNue5MdUD/f9+Q02YTHYM4GXXquw3 68Y+P3lYmwtZQJor08JQH7LN9nxrruaqr6HSPnr+Tg+nCoDLN86NBDZQoKSbpOT2P49G vJcFAfohoLErd5JX1LxZ7m4qzwaiJUZIFKCtGXwI0/4KQLdYfR4COs5aA5BiazWujG6e 4K/Q== MIME-Version: 1.0 X-Received: by 10.66.142.132 with SMTP id rw4mr25012981pab.6.1382464911340; Tue, 22 Oct 2013 11:01:51 -0700 (PDT) Received: by 10.66.135.44 with HTTP; Tue, 22 Oct 2013 11:01:51 -0700 (PDT) In-Reply-To: References: Date: Tue, 22 Oct 2013 20:01:51 +0200 Message-ID: Subject: Re: How to create HTableInterface in coprocessor? From: yonghu To: user@hbase.apache.org Content-Type: multipart/alternative; boundary=001a11343f94f47d5d04e95831f9 X-Virus-Checked: Checked by ClamAV on apache.org --001a11343f94f47d5d04e95831f9 Content-Type: text/plain; charset=ISO-8859-1 Gray, Finally, I saw the error messages. ERROR: org.apache.hadoop.hbase.client.RetriesExhaustedWithDetailsException: Failed 1 action: org.apache.hadoop.hbase.DoNotRetryIOException: Coprocessor: 'org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost$RegionEnvironment@303a60' threw: 'java.lang.UnsupportedOperationException: Immutable Configuration' and has been removed from the active coprocessor set. I will try different approach as Ted mentioned. On Tue, Oct 22, 2013 at 7:49 PM, yonghu wrote: > Gray > > Thanks for your response. I tried your approach. But it did not work. The > HBase just stalled, no messages, nothing happened. By the way, my hbase > version is 0.94.12. > > > > On Tue, Oct 22, 2013 at 7:34 PM, Gary Helmling wrote: > >> Within a coprocessor, you can just use the CoprocessorEnvironment instance >> passed to start() method or any of the pre/post hooks, and call >> CoprocessorEnvironment.getTable(byte[] tablename). >> >> >> On Tue, Oct 22, 2013 at 9:41 AM, Ted Yu wrote: >> >> > Take a look at http://hbase.apache.org/book.html#client.connections , >> > especially 9.3.1.1. >> > >> > >> > On Tue, Oct 22, 2013 at 9:37 AM, yonghu wrote: >> > >> > > Hello, >> > > >> > > In the oldest verison of HBase , I can get the HTableInterface by >> > > HTablePool.getTable() method. However, in the latest Hbase >> > version0.94.12, >> > > HTablePool is deprecated. So, I tried to use HConnectionManager to >> create >> > > HTableInterface, but it does not work. Can anyone tell me how to >> create >> > > HTableInterface in new HBase version? By the way, there is no error >> > message >> > > when I run coprocessor. >> > > >> > > regards! >> > > >> > > Yong >> > > >> > >> > > --001a11343f94f47d5d04e95831f9--