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)

Reply via email to