[ 
https://issues.apache.org/jira/browse/HBASE-12433?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14214314#comment-14214314
 ] 

Li Jiajia commented on HBASE-12433:
-----------------------------------

hi, [~jamestaylor], I use your command to modify the priority of an existing 
coprocessor, but after this command, a new coprocessor added, it that right 
used?

hbase(main):001:0> create 't6','f1'

hbase(main):002:0> describe 't6'
DESCRIPTION                                                                     
                                                         ENABLED
 't6', {NAME => 'f1', DATA_BLOCK_ENCODING => 'NONE', BLOOMFILTER => 'ROW', 
REPLICATION_SCOPE => '0', VERSIONS => '1', COMPRESSION => 'NO true
 NE', MIN_VERSIONS => '0', TTL => 'FOREVER', KEEP_DELETED_CELLS => 'false', 
BLOCKSIZE => '65536', IN_MEMORY => 'false', BLOCKCACHE => 't
 rue'}

hbase(main):001:0> alter 't6', METHOD => 
'table_att','coprocessor'=>'|org.apache.hadoop.hbase.client.coprocessor.TestCoprocessor2|1001|'
2014-11-17 14:01:37,170 WARN  [main] util.NativeCodeLoader: Unable to load 
native-hadoop library for your platform... using builtin-java classes where 
applicable
Updating all regions with the new schema...
0/1 regions updated.
1/1 regions updated.
Done.
0 row(s) in 3.0290 seconds
 
hbase(main):002:0> describe 't6'
DESCRIPTION                                                                     
                                                         ENABLED
 't6', {TABLE_ATTRIBUTES => {coprocessor$1 => 
'|org.apache.hadoop.hbase.client.coprocessor.TestCoprocessor2|1001|'}, {NAME => 
'f1', DATA true
 _BLOCK_ENCODING => 'NONE', BLOOMFILTER => 'ROW', REPLICATION_SCOPE => '0', 
VERSIONS => '1', COMPRESSION => 'NONE', MIN_VERSIONS => '0',
  TTL => 'FOREVER', KEEP_DELETED_CELLS => 'false', BLOCKSIZE => '65536', 
IN_MEMORY => 'false', BLOCKCACHE => 'true'}
1 row(s) in 0.0290 seconds

hbase(main):003:0> alter 't6', METHOD => 
'table_att','coprocessor$1'=>'|org.apache.hadoop.hbase.client.coprocessor.TestCoprocessor2|1002|'
Updating all regions with the new schema...
0/1 regions updated.
1/1 regions updated.
Done.
0 row(s) in 2.1110 seconds

hbase(main):004:0> describe 't6'
DESCRIPTION                                                                     
                                                         ENABLED
 't6', {TABLE_ATTRIBUTES => {coprocessor$1 => 
'|org.apache.hadoop.hbase.client.coprocessor.TestCoprocessor2|1001|', 
coprocessor$1$2 => ' true
 |org.apache.hadoop.hbase.client.coprocessor.TestCoprocessor2|1002|'}, {NAME => 
'f1', DATA_BLOCK_ENCODING => 'NONE', BLOOMFILTER => 'ROW
 ', REPLICATION_SCOPE => '0', VERSIONS => '1', COMPRESSION => 'NONE', 
MIN_VERSIONS => '0', TTL => 'FOREVER', KEEP_DELETED_CELLS => 'fals
 e', BLOCKSIZE => '65536', IN_MEMORY => 'false', BLOCKCACHE => 'true'}
1 row(s) in 0.0240 seconds

> Coprocessors not dynamically reordered when reset priority
> ----------------------------------------------------------
>
>                 Key: HBASE-12433
>                 URL: https://issues.apache.org/jira/browse/HBASE-12433
>             Project: HBase
>          Issue Type: Bug
>          Components: Coprocessors
>    Affects Versions: 0.98.7
>            Reporter: James Taylor
>
> When modifying the coprocessor priority through the HBase shell, the order of 
> the firing of the coprocessors wasn't changing. It probably would have with a 
> cluster bounce, but if we can make it dynamic easily, that would be 
> preferable.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to