You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "cuijianwei (JIRA)" <ji...@apache.org> on 2015/09/15 13:10:46 UTC
[jira] [Created] (HBASE-14438) admin.rb#alter should invoke
HTableDescriptor#addCoprocessorWithSpec instead of
HTableDescriptor#addCoprocessorWith
cuijianwei created HBASE-14438:
----------------------------------
Summary: 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: cuijianwei
Priority: Minor
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)