<?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: NiFi unable to connect to kafka in kerberized cluster in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-unable-to-connect-to-kafka-in-kerberized-cluster/m-p/202016#M59588</link>
    <description>&lt;P&gt;Hi @wynner, it was indeed an issue with the incorrect KDC server specified in the jaas.conf file. changing that fixed the error. thanks for looking into this&lt;/P&gt;</description>
    <pubDate>Wed, 19 Apr 2017 08:27:20 GMT</pubDate>
    <dc:creator>harishkumar_swa</dc:creator>
    <dc:date>2017-04-19T08:27:20Z</dc:date>
    <item>
      <title>NiFi unable to connect to kafka in kerberized cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-unable-to-connect-to-kafka-in-kerberized-cluster/m-p/202012#M59584</link>
      <description>&lt;P&gt;Hello all, we are having issues connecting from NiFi (1.1) to Kafka (0.9) server using ConsumeKafka processor on kerberos enabled cluster. We were able to execute the same process in one environment (dev), but getting below error in test environment.&lt;/P&gt;&lt;P&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"&lt;/P&gt;&lt;P&gt;we have updated the bootstrap.conf file to use the correct jaas.conf file&lt;/P&gt;&lt;PRE&gt;java.arg.15=-Djava.security.auth.login.config=/data/configuration_resources/jaas.conf&lt;/PRE&gt;&lt;P&gt;updated jaas.conf file to use correct principal and keytab:&lt;/P&gt;&lt;PRE&gt;KafkaClient {
com.sun.security.auth.module.Krb5LoginModule required
useKeyTab=true
keyTab="/data/configuration_resources/kafka.keytab"
principal="kafka/kafka1.hostname.com@EXAMPLE.COM";
};&lt;/PRE&gt;&lt;P&gt;and updated client.properties file&lt;/P&gt;&lt;PRE&gt;security.protocol=SASL_PLAINTEXT
sasl.kerberos.service.name=kafka&lt;/PRE&gt;&lt;P&gt;added krb5.conf info in the nifi.properties file&lt;/P&gt;&lt;PRE&gt;nifi.kerberos.krb5.file=/data/configuration_resources/krb5.conf&lt;/PRE&gt;&lt;P&gt;what are the other files/configurations that we have to check to resolve this issue?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 04:41:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-unable-to-connect-to-kafka-in-kerberized-cluster/m-p/202012#M59584</guid>
      <dc:creator>harishkumar_swa</dc:creator>
      <dc:date>2017-04-18T04:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi unable to connect to kafka in kerberized cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-unable-to-connect-to-kafka-in-kerberized-cluster/m-p/202013#M59585</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/17099/harishkumarswayampakula.html" nodeid="17099"&gt;@Harish S&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If you run the klist command as the user running NiFi, what do you see?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 19:24:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-unable-to-connect-to-kafka-in-kerberized-cluster/m-p/202013#M59585</guid>
      <dc:creator>Wynner</dc:creator>
      <dc:date>2017-04-18T19:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi unable to connect to kafka in kerberized cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-unable-to-connect-to-kafka-in-kerberized-cluster/m-p/202014#M59586</link>
      <description>&lt;P&gt;@wynner we use three different users. one user (ser_nifi) to start/run the nifi service, "nifi" user to connect to hdfs and "kafka" user to connect to kafka. we were able to do kinit using "kafka" user without an issue. &lt;/P&gt;&lt;P&gt;in this same env, we were able to connect to hbase on the same server and write data into a table. only kafka connector is throwing this error. &lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 19:57:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-unable-to-connect-to-kafka-in-kerberized-cluster/m-p/202014#M59586</guid>
      <dc:creator>harishkumar_swa</dc:creator>
      <dc:date>2017-04-18T19:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi unable to connect to kafka in kerberized cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-unable-to-connect-to-kafka-in-kerberized-cluster/m-p/202015#M59587</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/17099/harishkumarswayampakula.html" nodeid="17099"&gt;@Harish S&lt;/A&gt;&lt;P&gt;Add the line "useTicketCache=true" to the jaas.conf file.&lt;/P&gt;&lt;P&gt;What are the differences between the dev and test environments?  Are you using the same KDC server?  Same kafka brokers?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 20:45:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-unable-to-connect-to-kafka-in-kerberized-cluster/m-p/202015#M59587</guid>
      <dc:creator>Wynner</dc:creator>
      <dc:date>2017-04-18T20:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi unable to connect to kafka in kerberized cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-unable-to-connect-to-kafka-in-kerberized-cluster/m-p/202016#M59588</link>
      <description>&lt;P&gt;Hi @wynner, it was indeed an issue with the incorrect KDC server specified in the jaas.conf file. changing that fixed the error. thanks for looking into this&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 08:27:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-unable-to-connect-to-kafka-in-kerberized-cluster/m-p/202016#M59588</guid>
      <dc:creator>harishkumar_swa</dc:creator>
      <dc:date>2017-04-19T08:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi unable to connect to kafka in kerberized cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-unable-to-connect-to-kafka-in-kerberized-cluster/m-p/202017#M59589</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/17099/harishkumarswayampakula.html" nodeid="17099"&gt;@Harish S&lt;/A&gt;&lt;P&gt;I am glad you were able to correct the issue by configuring the correct KDC server in the jaas.conf file.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2017 20:44:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-unable-to-connect-to-kafka-in-kerberized-cluster/m-p/202017#M59589</guid>
      <dc:creator>Wynner</dc:creator>
      <dc:date>2017-04-20T20:44:33Z</dc:date>
    </item>
  </channel>
</rss>

