You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Andrew Kyle Purtell (Jira)" <ji...@apache.org> on 2022/07/01 21:29:00 UTC
[jira] [Closed] (HBASE-14438) admin.rb#alter should invoke HTableDescriptor#addCoprocessorWithSpec instead of HTableDescriptor#addCoprocessorWith
[ https://issues.apache.org/jira/browse/HBASE-14438?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Kyle Purtell closed HBASE-14438.
---------------------------------------
> admin.rb#alter should invoke HTableDescriptor#addCoprocessorWithSpec instead of HTableDescriptor#addCoprocessorWith
> -------------------------------------------------------------------------------------------------------------------
>
> Key: HBASE-14438
> URL: https://issues.apache.org/jira/browse/HBASE-14438
> Project: HBase
> Issue Type: Bug
> Components: shell
> Affects Versions: 1.2.1
> Reporter: Jianwei Cui
> Priority: Minor
> Attachments: HBASE-14438-trunk-v1.patch
>
>
> The help info of 'alter' in hbase shell includes the following usage:
> {code}
> You can add a table coprocessor by setting a table coprocessor attribute:
> hbase> alter 't1',
> 'coprocessor'=>'hdfs:///foo.jar|com.foo.FooRegionObserver|1001|arg1=1,arg2=2'
> {code}
> However, the admin.rb#alter method will invoke HTableDescriptor#addCoprocessorWith, in which the coprocessor will be incorrectly formatted as:
> {code}
> |hdfs:///foo.jar|com.foo.FooRegionObserver|1001|arg1=1,arg2=2|1073741823|
> {code}
> It seems the admin.rb#alter should use HTableDescriptor#addCoprocessorWithSpec instead.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)