协处理器配置.txt 989 B

123456789101112131415161718192021222324252627282930313233343536
  1. 第1步
  2. 将json-lib-zillion-1.*.jar和zillion-util-1.*.jar,fastjson-1.2.47.jar,放到/var/lib/hbase/hbase-1.2.6/lib/
  3. 第2步(已废弃)
  4. sudo vi /var/hbase/coprocessor.ini
  5. zookeeper_connectionAddress=zookeeper1:2181,zookeeper2:2181,zookeeper3:2181
  6. zookeeper_sessionTimeout=300000
  7. 第3步
  8. sudo vi /var/hbase/conf/hbase-site.xml
  9. 添加
  10. <property>
  11. <name>hbase.coprocessor.master.classes</name>
  12. <value>com.zillion.util.coprocessor.MasterObserver</value>
  13. </property>
  14. <property>
  15. <name>hbase.coprocessor.region.classes</name>
  16. <value>com.zillion.util.coprocessor.RegionObserver</value>
  17. </property>
  18. 如果集群使用kerberos,还需要配置
  19. <property>
  20. <name>zillion.jaas.conf</name>
  21. <value>/var/hbase/conf/zk-jaas.conf</value>
  22. </property>
  23. <property>
  24. <name>zillion.krb5.conf</name>
  25. <value>/etc/krb5.conf</value>
  26. </property>
  27. <property>
  28. <name>keytab.file</name>
  29. <value>/var/security/keytab/kerberos.keytab</value>
  30. </property>
  31. <property>
  32. <name>kerberos.principal</name>
  33. <value>hadoop/_HOST@HADOOP.COM</value>
  34. </property>