You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Tak-Lon (Stephen) Wu (Jira)" <ji...@apache.org> on 2021/12/01 07:04:00 UTC

[jira] [Commented] (HBASE-26524) Support remove coprocessor by class name via alter table command

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

Tak-Lon (Stephen) Wu commented on HBASE-26524:
----------------------------------------------

we will need a follow up task for adding a new change in the section of https://hbase.apache.org/book.html#_using_hbase_shell

> Support remove coprocessor by class name via alter table command
> ----------------------------------------------------------------
>
>                 Key: HBASE-26524
>                 URL: https://issues.apache.org/jira/browse/HBASE-26524
>             Project: HBase
>          Issue Type: Improvement
>          Components: Coprocessors, shell
>    Affects Versions: 2.5.0, 3.0.0-alpha-2
>            Reporter: Tak-Lon (Stephen) Wu
>            Assignee: Tak-Lon (Stephen) Wu
>            Priority: Major
>
> With the shell, when operator wants to remove a table coprocessor, the flow is to
> 1. first use {{decs}} find the the mapping of coprocessor$# e.g. coprocessor$1, where # is the ordered number when the coprocessor was internally added to the table attribute 
> 2. issue {{table_att_unset}} with the target `coprocessor$#` that maps to a value that include the unique class name.
> This task is to simplify the flow if the operator know exactly the class name of the added coprocessor, and create a new sub-method to {{alter}}, such that operator can do it only with the class name. 
> NOTE that this logic has been added behind the scenes at [TableDescriptorBuilder#removeCoprocessor|https://github.com/apache/hbase/blob/358c4dc9022c507ee0159c1d4916aba41d42cde8/hbase-client/src/main/java/org/apache/hadoop/hbase/client/TableDescriptorBuilder.java#L1537-L1565] for removing `ConstraintProcessor` , and we are just exposing this logic with a new method to {{alter}} command. 



--
This message was sent by Atlassian Jira
(v8.20.1#820001)