[ 
https://issues.apache.org/jira/browse/EAGLE-360?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16084546#comment-16084546
 ] 

DanielZhou commented on EAGLE-360:
----------------------------------

Hi, [~jhsenjaliya],
This was for an internal test. I tested in local env but it didn't work.

I think we don't need to merge this code as Logstash kafka plugin already added 
support for Kerberos SASL (requires plugin version 5.1.0 or later). 
https://www.elastic.co/guide/en/logstash/current/plugins-outputs-kafka.html

Regards,
Da

> Kafka Java Producer with kerberos
> ---------------------------------
>
>                 Key: EAGLE-360
>                 URL: https://issues.apache.org/jira/browse/EAGLE-360
>             Project: Eagle
>          Issue Type: Improvement
>    Affects Versions: v0.3.0
>            Reporter: Hao Chen
>            Assignee: DanielZhou
>             Fix For: v0.6.0
>
>
> *log4j.properties*
> {code}
> log4j.appender.KAFKA_HDFS_AUDIT.SecurityProtocol=PLAINTEXTSASL
> log4j.appender.KAFKA_HDFS_AUDIT.SecurityKrb5Conf=/etc/krb5.conf
> log4j.appender.KAFKA_HDFS_AUDIT.SecurityAuthLoginConfig=/etc/kafka/kafka_jaas.conf
> log4j.appender.KAFKA_HDFS_AUDIT.SecurityAuthUseSubjectCredsOnly=false
> log4j.appender.KAFKA_HDFS_AUDIT.SecurityKrb5Debug=true
> {code}
> *kafka_jaas.conf*
> {code}
> KafkaClient {
>     com.sun.security.auth.module.Krb5LoginModule required
>     doNotPrompt=true
>     useTicketCache=true
>     principal="ctad...@eagle.incubator.apache.org"
>     useKeyTab=true
>     serviceName="kafka"
>     keyTab="/etc/security/keytabs/ctadmin.keytab"
>     client=true;
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to