hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-14510) Can not set coprocessor from Shell after HBASE-14224
Date Wed, 30 Sep 2015 01:57:04 GMT

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

Hudson commented on HBASE-14510:
--------------------------------

FAILURE: Integrated in HBase-1.2 #209 (See [https://builds.apache.org/job/HBase-1.2/209/])
HBASE-14510 Fix coprocessor handling of duplicate classes (Yerui Sun) (stack: rev d4ad553f0b5e1107ed15e0b2ea7b352521e47287)
* hbase-shell/src/main/ruby/hbase/admin.rb
* hbase-client/src/main/java/org/apache/hadoop/hbase/HTableDescriptor.java


> 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: 2.0.0, 0.98.14, 1.3.0
>            Reporter: Yerui Sun
>            Assignee: Yerui Sun
>             Fix For: 2.0.0, 1.2.0, 1.3.0, 1.0.3, 1.1.3
>
>         Attachments: HBASE-14510.patch
>
>
> 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