Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 840DF9234 for ; Wed, 9 Nov 2011 00:42:14 +0000 (UTC) Received: (qmail 86492 invoked by uid 500); 9 Nov 2011 00:42:14 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 86459 invoked by uid 500); 9 Nov 2011 00:42:14 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 86451 invoked by uid 99); 9 Nov 2011 00:42:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Nov 2011 00:42:14 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Nov 2011 00:42:13 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id CBC103E3A5 for ; Wed, 9 Nov 2011 00:41:52 +0000 (UTC) Date: Wed, 9 Nov 2011 00:41:52 +0000 (UTC) From: "jiraposter@reviews.apache.org (Commented) (JIRA)" To: issues@hbase.apache.org Message-ID: <303161565.12687.1320799312835.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <241393562.9441.1318014509739.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HBASE-4554) Allow set/unset coprocessor table attributes from shell. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-4554?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13146691#comment-13146691 ] jiraposter@reviews.apache.org commented on HBASE-4554: ------------------------------------------------------ ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/2350/#review3121 ----------------------------------------------------------- Thanks for the improved syntax. src/main/java/org/apache/hadoop/hbase/HConstants.java We still assume numerals to follow dollar sign. Why is this change needed ? - Ted On 2011-11-08 23:00:41, Mingjie Lai wrote: bq. bq. ----------------------------------------------------------- bq. This is an automatically generated e-mail. To reply, visit: bq. https://reviews.apache.org/r/2350/ bq. ----------------------------------------------------------- bq. bq. (Updated 2011-11-08 23:00:41) bq. bq. bq. Review request for hbase and Gary Helmling. bq. bq. bq. Summary bq. ------- bq. bq. Features: bq. - Support adding table level coprocessors -- regionobserver and endpoint -- from shell. bq. - Support removing table attributes from shell. bq. bq. Introduced shell comands: bq. bq. hbase> alter 't1', METHOD => 'table_att', \ bq. 'coprocessor'=>'|org.apache.hadoop.hbase.coprocessor.SimpleRegionObserver||' bq. bq. coprocessor$1 => 'hdfs:///foo.jar|com.sample.foo|1' will be added to htd. So that cp framework can load the cp later on. bq. bq. hbase> alter 't1', METHOD => 'table_att_unset', NAME => 'MAX_FILESIZE' bq. hbase> alter 't1', METHOD => 'table_att_unset', NAME => 'coprocessor$1' bq. bq. bq. This addresses bug HBASE-4554. bq. https://issues.apache.org/jira/browse/HBASE-4554 bq. bq. bq. Diffs bq. ----- bq. bq. src/main/java/org/apache/hadoop/hbase/HConstants.java 76278a2 bq. src/main/ruby/hbase/admin.rb 61e04d8 bq. src/main/ruby/shell/commands/alter.rb ee3668d bq. src/test/ruby/hbase/admin_test.rb df88100 bq. bq. Diff: https://reviews.apache.org/r/2350/diff bq. bq. bq. Testing bq. ------- bq. bq. Test passed after applied HBase-4555 patch locally. bq. bq. bq. Thanks, bq. bq. Mingjie bq. bq. > Allow set/unset coprocessor table attributes from shell. > -------------------------------------------------------- > > Key: HBASE-4554 > URL: https://issues.apache.org/jira/browse/HBASE-4554 > Project: HBase > Issue Type: Improvement > Components: coprocessors > Reporter: Mingjie Lai > Assignee: Mingjie Lai > Fix For: 0.92.0 > > > Table/region level coprocessor -- RegionObserver -- can be configured by setting a HTD's attribute which matches Coprocessor$*. > Current shell -- alter -- cannot support to set/unset a table's arbitrary attribute. We need it in order to configure region level coprocessors to a table. > Proposed new shell: > {code} > hbase shell > alter 't1', METHOD => 'table_att', COPROCESSOR$1 => 'hdfs://cp/foo.jar|org.apache.hadoop.hbase.sample|1|' > hbase shell > describe 't1' > {NAME => 't1', COPROCESSOR$1 => 'hdfs://cp/foo.jar|org.apache.hadoop.hbase.sample|1|', MAX_FILESIZE => '134217728', ...} > hbase shell > alter 't1', METHOD => 'table_att_unset', COPROCESSOR$1 > hbase shell > describe 't1' > {NAME => 't1', MAX_FILESIZE => '134217728', ...} > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira