opentsdb过kerberos认证

    opentsdb是依赖hbase做数据落地的,当集群添加认证组件后就需要对opentsdb添加通过集群认证的模块。

1.在opentsdb.conf文件中添加如下配置:

hbase.security.auth.enable = true

hbase.security.authentication = kerberos

hbase.sasl.clientconfig = Client

# @TEST.CN是域名

hbase.kerberos.regionserver.principal = hbase/[email protected]

2.创建jaas.conf文件,并添加如下配置:

Client {

com.sun.security.auth.module.Krb5LoginModule required  

storeKey=true  

useKeyTab=true  

useTicketCache=false  

keyTab="/opt/opentsdb/opentsdb.keytab"  

principal="[email protected]";

};

3.编辑tsdb脚本在如下行中添加配置指定jaas文件:

JVMARGS=${JVMARGS-'-enableassertions -enablesystemassertions -Djava.security.auth.login.config=/opt/opentsdb/jaas.conf'}

你可能感兴趣的:(opentsdb过kerberos认证)