ITPub博客

首页 > 大数据 > > hbase单表加ObServer

hbase单表加ObServer

作者:浪花小雨滴 时间:2020-05-18 16:03:49 0 删除 编辑
继承BaseRegionObserver类 

打成jar包 上传到hdfs

进入hbase shell  将表disable

 执行 alter 'sdzn_public', METHOD => 'table_att','coprocessor'=>'hdfs://192.168.0.237:9000/hbase/observer/regionObserver.jar|cn.sdzn.web.hbaeObServer.solrindexcoprocessorobserver|1001|'

将表enable

OK

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/29754888/viewspace-1357311/,如需转载,请注明出处,否则将追究法律责任。


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/31537575/viewspace-3167724/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2018-05-16

  • 博文量
    4259
  • 访问量
    39850