Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-4554

Allow set/unset coprocessor table attributes from shell.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.92.0, 0.94.0
    • Coprocessors
    • None
    • Reviewed

    Description

      Table/region level coprocessor – RegionObserver – can be configured by setting a HTD's attribute which matches Coprocessor$*.

      Current shell – alter – cannot support to set/unset a table's arbitrary attribute. We need it in order to configure region level coprocessors to a table.

      Proposed new shell:

      hbase shell > alter 't1', METHOD => 'table_att', COPROCESSOR$1 => 'hdfs://cp/foo.jar|org.apache.hadoop.hbase.sample|1|'
      
      hbase shell > describe 't1'
       {NAME => 't1', COPROCESSOR$1 => 'hdfs://cp/foo.jar|org.apache.hadoop.hbase.sample|1|', MAX_FILESIZE => '134217728', ...}
      
      hbase shell > alter 't1', METHOD => 'table_att_unset', COPROCESSOR$1
      
      hbase shell > describe 't1'
       {NAME => 't1', MAX_FILESIZE => '134217728', ...}
      

      Attachments

        Issue Links

          Activity

            People

              mingjielai Mingjie Lai
              mingjielai Mingjie Lai
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: