继承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/
,如需转载,请注明出处,否则将追究法律责任。