You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "stack (JIRA)" <ji...@apache.org> on 2015/09/16 07:23:45 UTC
[jira] [Commented] (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:comment-tabpanel&focusedCommentId=14746895#comment-14746895 ]
stack commented on HBASE-14438:
-------------------------------
Looks good to me. Anyone who knows this better wish to comment?
> 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
(v6.3.4#6332)