hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yerui Sun (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HBASE-14510) Can not set coprocessor from Shell after HBASE-14224
Date Tue, 29 Sep 2015 09:03:04 GMT
Yerui Sun created HBASE-14510:
---------------------------------

             Summary: Can not set coprocessor from Shell after HBASE-14224
                 Key: HBASE-14510
                 URL: https://issues.apache.org/jira/browse/HBASE-14510
             Project: HBase
          Issue Type: Bug
    Affects Versions: 0.98.14, 2.0.0, 1.3.0
            Reporter: Yerui Sun


I was able to set coprocessors for table by shell normally, but it didn't worked now.
Here's the shell output (omit really jar path and coprocessor classname):
{code}
HBase Shell; enter 'help<RETURN>' for list of supported commands.
Type "exit<RETURN>" to leave the HBase Shell
Version 1.3.0-SNAPSHOT, 642273bc2a5a415eba6f1592a439a6b2b53a70a9, Tue Sep 29 15:58:28 CST
2015

hbase(main):001:0> describe 'test'
Table test is ENABLED
test
COLUMN FAMILIES DESCRIPTION
{NAME => 'f', DATA_BLOCK_ENCODING => 'NONE', BLOOMFILTER => 'ROW', REPLICATION_SCOPE
=> '0', VERSIONS => '1', COMPRESSION => 'NONE', MIN_VERSIONS => '0', TTL =>
'FOREVER', KEEP_DELETED_CELLS => 'FALSE', B
LOCKSIZE => '65536', IN_MEMORY => 'false', BLOCKCACHE => 'true'}
1 row(s) in 0.4370 seconds

hbase(main):002:0> alter 'test', 'coprocessor'=>'hdfs:///some.jar|com.somepackage.SomeObserver|1001'
Updating all regions with the new schema...
1/1 regions updated.
Done.
0 row(s) in 1.9760 seconds

hbase(main):003:0> describe 'test'
Table test is ENABLED
test, {TABLE_ATTRIBUTES => {coprocessor$1 => '|hdfs:///some.jar|com.somepackage.SomeObserver|1001|1073741823|'}
COLUMN FAMILIES DESCRIPTION
{NAME => 'f', DATA_BLOCK_ENCODING => 'NONE', BLOOMFILTER => 'ROW', REPLICATION_SCOPE
=> '0', VERSIONS => '1', COMPRESSION => 'NONE', MIN_VERSIONS => '0', TTL =>
'FOREVER', KEEP_DELETED_CELLS => 'FALSE', B
LOCKSIZE => '65536', IN_MEMORY => 'false', BLOCKCACHE => 'true'}
1 row(s) in 0.0180 seconds
{code}

I checked the recent commits and found HBASE-14224 is related to. It's an important improvement,
but made a mistake in alter() of admin.rb, line 587. As the value is coprocess spec string
but not only class name, here should use htd.setCoprocessorWithSpec instead of htd.setCoprocessor.



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

Mime
View raw message