<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Getting error in PublishKafka Processor NIFI in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-error-in-PublishKafka-Processor-NIFI/m-p/229890#M79601</link>
    <description>&lt;P&gt;Resolved issue by copying 'nifi.service.keytab' in different location and giving 644 access to this keytab file.&lt;/P&gt;</description>
    <pubDate>Tue, 24 Jul 2018 13:55:35 GMT</pubDate>
    <dc:creator>bkandalkar</dc:creator>
    <dc:date>2018-07-24T13:55:35Z</dc:date>
    <item>
      <title>Getting error in PublishKafka Processor NIFI</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-error-in-PublishKafka-Processor-NIFI/m-p/229889#M79600</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;Our cluster is secured by Kerberos and Ranger. In&lt;STRONG&gt; PublishKafka&lt;/STRONG&gt; processor properties we are using security protocol as &lt;STRONG&gt;SASL_PLAINTEXT.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;We are getting following error in nifi-app.log when we run PublishKafka processor:&lt;/P&gt;&lt;PRE&gt;Caused by: org.apache.kafka.common.KafkaException: javax.security.auth.login.LoginException: Could not login: the client is being asked for a password, but the Kafka client code does not currently support obtaining a password from the user. Make sure -Djava.security.auth.login.config property passed to JVM and the client is configured to use a ticket cache (using the JAAS configuration setting 'useTicketCache=true)'. Make sure you are using FQDN of the Kafka broker you are trying to connect to. not available to garner  authentication information from the user
        at org.apache.kafka.common.network.SaslChannelBuilder.configure(SaslChannelBuilder.java:74)
        at org.apache.kafka.common.network.ChannelBuilders.create(ChannelBuilders.java:60)
        at org.apache.kafka.clients.ClientUtils.createChannelBuilder(ClientUtils.java:79)
        at org.apache.kafka.clients.producer.KafkaProducer.&amp;lt;init&amp;gt;(KafkaProducer.java:271)
        ... 16 common frames omitted
Caused by: javax.security.auth.login.LoginException: Could not login: the client is being asked for a password, but the Kafka client code does not currently support obtaining a password from the user. Make sure -Djava.security.auth.login.config property passed to JVM and the client is configured to use a ticket cache (using the JAAS configuration setting 'useTicketCache=true)'. Make sure you are using FQDN of the Kafka broker you are trying to connect to. not available to garner  authentication information from the user
        at com.sun.security.auth.module.Krb5LoginModule.promptForPass(Krb5LoginModule.java:940)
        at com.sun.security.auth.module.Krb5LoginModule.attemptAuthentication(Krb5LoginModule.java:760)
        at com.sun.security.auth.module.Krb5LoginModule.login(Krb5LoginModule.java:617)
        at sun.reflect.GeneratedMethodAccessor552.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at javax.security.auth.login.LoginContext.invoke(LoginContext.java:755)
        at javax.security.auth.login.LoginContext.access$000(LoginContext.java:195)
        at javax.security.auth.login.LoginContext$4.run(LoginContext.java:682)
        at javax.security.auth.login.LoginContext$4.run(LoginContext.java:680)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
        at javax.security.auth.login.LoginContext.login(LoginContext.java:587)
        at org.apache.kafka.common.security.kerberos.Login.login(Login.java:298)
        at org.apache.kafka.common.security.kerberos.Login.&amp;lt;init&amp;gt;(Login.java:104)
        at org.apache.kafka.common.security.kerberos.LoginManager.&amp;lt;init&amp;gt;(LoginManager.java:44)
        at org.apache.kafka.common.security.kerberos.LoginManager.acquireLoginManager(LoginManager.java:85)
        at org.apache.kafka.common.network.SaslChannelBuilder.configure(SaslChannelBuilder.java:55)

&lt;/PRE&gt;&lt;P&gt;Given are the content of jass config:&lt;/P&gt;&lt;PRE&gt;Client {
  com.sun.security.auth.module.Krb5LoginModule required
  useKeyTab=true
  keyTab="/etc/security/keytabs/nifi.service.keytab"
  useTicketCache=true
  principal="nifi/usdf.test.com@CORP.TEST.INT";
};
KafkaClient {
   com.sun.security.auth.module.Krb5LoginModule required
   renewTicket=true
   serviceName="kafka"
   useKeyTab=true
   useTicketCache=true
   keyTab="/etc/security/keytabs/nifi.service.keytab"
   principal="nifi/usdf.test.com@CORP.TEST.INT";
};
&lt;/PRE&gt;&lt;P&gt;How to resolve it? Please suggest.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 20:45:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-error-in-PublishKafka-Processor-NIFI/m-p/229889#M79600</guid>
      <dc:creator>bkandalkar</dc:creator>
      <dc:date>2018-06-15T20:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error in PublishKafka Processor NIFI</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-error-in-PublishKafka-Processor-NIFI/m-p/229890#M79601</link>
      <description>&lt;P&gt;Resolved issue by copying 'nifi.service.keytab' in different location and giving 644 access to this keytab file.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jul 2018 13:55:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-error-in-PublishKafka-Processor-NIFI/m-p/229890#M79601</guid>
      <dc:creator>bkandalkar</dc:creator>
      <dc:date>2018-07-24T13:55:35Z</dc:date>
    </item>
  </channel>
</rss>

