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 CB77318C42 for ; Wed, 30 Sep 2015 04:59:06 +0000 (UTC) Received: (qmail 60404 invoked by uid 500); 30 Sep 2015 04:59:06 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 60358 invoked by uid 500); 30 Sep 2015 04:59:06 -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 60343 invoked by uid 99); 30 Sep 2015 04:59:06 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Sep 2015 04:59:06 +0000 Date: Wed, 30 Sep 2015 04:59:06 +0000 (UTC) From: "stack (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-14510) Can not set coprocessor from Shell after HBASE-14224 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-14510?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:all-tabpanel ] stack updated HBASE-14510: -------------------------- Fix Version/s: 0.98.15 > Can not set coprocessor from Shell after HBASE-14224 > ---------------------------------------------------- > > Key: HBASE-14510 > URL: https://issues.apache.org/jira/browse/HBASE-14510 > Project: HBase > Issue Type: Bug > Affects Versions: 2.0.0, 0.98.14, 1.3.0 > Reporter: Yerui Sun > Assignee: Yerui Sun > Fix For: 2.0.0, 1.2.0, 1.3.0, 0.98.15, 1.0.3, 1.1.3 > > Attachments: HBASE-14510.patch > > > I was able to set coprocessors for table by shell normally, but it didn't= worked now. > Here's the shell output (omit really jar path and coprocessor classname)= =EF=BC=9A > {code} > HBase Shell; enter 'help' for list of supported commands. > Type "exit" to leave the HBase Shell > Version 1.3.0-SNAPSHOT, 642273bc2a5a415eba6f1592a439a6b2b53a70a9, Tue Sep= 29 15:58:28 CST 2015 > hbase(main):001:0> describe 'test' > Table test is ENABLED > test > COLUMN FAMILIES DESCRIPTION > {NAME =3D> 'f', DATA_BLOCK_ENCODING =3D> 'NONE', BLOOMFILTER =3D> 'ROW', = REPLICATION_SCOPE =3D> '0', VERSIONS =3D> '1', COMPRESSION =3D> 'NONE', MIN= _VERSIONS =3D> '0', TTL =3D> 'FOREVER', KEEP_DELETED_CELLS =3D> 'FALSE', B > LOCKSIZE =3D> '65536', IN_MEMORY =3D> 'false', BLOCKCACHE =3D> 'true'} > 1 row(s) in 0.4370 seconds > hbase(main):002:0> alter 'test', 'coprocessor'=3D>'hdfs:///some.jar|com.s= omepackage.SomeObserver|1001' > Updating all regions with the new schema... > 1/1 regions updated. > Done. > 0 row(s) in 1.9760 seconds > hbase(main):003:0> describe 'test' > Table test is ENABLED > test, {TABLE_ATTRIBUTES =3D> {coprocessor$1 =3D> '|hdfs:///some.jar|com.s= omepackage.SomeObserver|1001|1073741823|'} > COLUMN FAMILIES DESCRIPTION > {NAME =3D> 'f', DATA_BLOCK_ENCODING =3D> 'NONE', BLOOMFILTER =3D> 'ROW', = REPLICATION_SCOPE =3D> '0', VERSIONS =3D> '1', COMPRESSION =3D> 'NONE', MIN= _VERSIONS =3D> '0', TTL =3D> 'FOREVER', KEEP_DELETED_CELLS =3D> 'FALSE', B > LOCKSIZE =3D> '65536', IN_MEMORY =3D> 'false', BLOCKCACHE =3D> 'true'} > 1 row(s) in 0.0180 seconds > {code} > I checked the recent commits and found HBASE-14224 is related to. It's an= important improvement, but made a mistake in alter() of admin.rb, line 587= . As the value is coprocess spec string but not only class name, here shoul= d use htd.setCoprocessorWithSpec instead of htd.setCoprocessor. -- This message was sent by Atlassian JIRA (v6.3.4#6332)