第1步
将json-lib-zillion-1.*.jar和zillion-util-1.*.jar,fastjson-1.2.47.jar,放到/var/lib/hbase/hbase-1.2.6/lib/
第2步(已废弃)
sudo vi /var/hbase/coprocessor.ini
zookeeper_connectionAddress=zookeeper1:2181,zookeeper2:2181,zookeeper3:2181
zookeeper_sessionTimeout=300000
第3步
sudo vi /var/hbase/conf/hbase-site.xml
添加
hbase.coprocessor.master.classes
com.zillion.util.coprocessor.MasterObserver
hbase.coprocessor.region.classes
com.zillion.util.coprocessor.RegionObserver
如果集群使用kerberos,还需要配置
zillion.jaas.conf
/var/hbase/conf/zk-jaas.conf
zillion.krb5.conf
/etc/krb5.conf
keytab.file
/var/security/keytab/kerberos.keytab
kerberos.principal
hadoop/_HOST@HADOOP.COM