kerberos环境下flume写hbase

直接看官网

http://flume.apache.org/releases/content/1.9.0/FlumeUserGuide.html#hbasesinks

a1.channels = c1
a1.sinks = k1
a1.sinks.k1.type = hbase
a1.sinks.k1.table = foo_table
a1.sinks.k1.columnFamily = bar_cf
a1.sinks.k1.serializer = org.apache.flume.sink.hbase.RegexHbaseEventSerializer
a1.sinks.k1.channel = c1
a1.sinks.k1.kerberosKeytab=/etc/security/keytabs/hbase.service.keytab
a1.sinks.k1.kerberosPrincipal=hbase/node1@BIGDATA.COM

或者在本地kinit -kt
/etc/security/keytabs/hbase.service.keytab hbase/node1@BIGDATA.COM




flume-ng  agent -n a1  -c ../conf  -f test01.conf   -Dflume.root.logger=DEBUG,console
原文地址:https://www.cnblogs.com/felixzh/p/10562821.html