ITPub博客

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

hbase单表加ObServer

原创 Hadoop 作者:破棉袄 时间:2014-12-05 11:02:12 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博客 ” ,链接:https://blog.itpub.net/29754888/viewspace-1357311/ ,如需转载,请注明出处,否则将追究法律责任。

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

注册时间:2014-07-16

  • 博文量
    180
  • 访问量
    1158203