123456789101112131415161718192021222324252627282930313233343536 |
- 第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
- 添加
- <property>
- <name>hbase.coprocessor.master.classes</name>
- <value>com.zillion.util.coprocessor.MasterObserver</value>
- </property>
- <property>
- <name>hbase.coprocessor.region.classes</name>
- <value>com.zillion.util.coprocessor.RegionObserver</value>
- </property>
- 如果集群使用kerberos,还需要配置
- <property>
- <name>zillion.jaas.conf</name>
- <value>/var/hbase/conf/zk-jaas.conf</value>
- </property>
- <property>
- <name>zillion.krb5.conf</name>
- <value>/etc/krb5.conf</value>
- </property>
- <property>
- <name>keytab.file</name>
- <value>/var/security/keytab/kerberos.keytab</value>
- </property>
- <property>
- <name>kerberos.principal</name>
- <value>hadoop/_HOST@HADOOP.COM</value>
- </property>
|