Skip to content

Instantly share code, notes, and snippets.

@knotman90
Forked from sankars/coprocessor.rb
Created March 7, 2016 15:43
Show Gist options
  • Save knotman90/3e442df880058bf45934 to your computer and use it in GitHub Desktop.
Save knotman90/3e442df880058bf45934 to your computer and use it in GitHub Desktop.
Hbase shell commands to load/unload coprocessors
## To load
disable 'Table'
alter 'Table', METHOD => 'table_att', 'COPROCESSOR' => '/path/to/coprocessors.jar|com.org.xxxx.Coprocessorclass|3|'
enable 'Table'
## To check coprocessor is loaded
describe 'Table'
## To check the coprocessor status
status 'detailed'
## To unload the coprocessor
alter 'table', METHOD => 'table_att_unset',NAME => 'coprocessor$1'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment