<?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: how to configure Kafka so it's listening on two networks in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-configure-Kafka-so-it-s-listening-on-two-networks/m-p/199265#M76656</link>
    <description>&lt;P&gt;The solution to this was to create a config group for each broker and add a host-specific `advertised.listeners` property in the Custom kafka-broker section.&lt;/P&gt;&lt;P&gt;This has been beautifully documented in this YouTube video: &lt;A href="https://www.youtube.com/watch?v=bRKw5y_tx5E"&gt;https://www.youtube.com/watch?v=bRKw5y_tx5E&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 03 May 2018 14:06:43 GMT</pubDate>
    <dc:creator>alexw</dc:creator>
    <dc:date>2018-05-03T14:06:43Z</dc:date>
    <item>
      <title>how to configure Kafka so it's listening on two networks</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-configure-Kafka-so-it-s-listening-on-two-networks/m-p/199263#M76654</link>
      <description>&lt;P&gt;I have an HDP cluster that's running two networks: a 10.x network for external traffic and a 192.x network for internal traffic. Kafka is listening on the the 192.x network, and I have a client application running that needs to write to Kafka that's running on the 10.x network. I need Kafka to listen on both networks.&lt;/P&gt;&lt;P&gt;The `listeners` property is currently set to `PLAINTEXT://localhost:6667`. I stumbled across a blog that says we can replace localhost with an actual IP address, e.g. `PLAINTEXT://10.x.x.x:6667,PLAINTEXT://192.x.x.x:6667`. If I set this property in Ambari, this property gets pushed to all the brokers. Obviously, the IP addresses will differ from host to host.&lt;/P&gt;&lt;P&gt;Is there a way for Ambari to have host-specific properties? Or is there another way to configure Kafka, via Ambari, where it's listening on multiple NICs?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Mar 2018 21:20:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-configure-Kafka-so-it-s-listening-on-two-networks/m-p/199263#M76654</guid>
      <dc:creator>alexw</dc:creator>
      <dc:date>2018-03-29T21:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to configure Kafka so it's listening on two networks</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-configure-Kafka-so-it-s-listening-on-two-networks/m-p/199264#M76655</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/11271/alex1.html"&gt;Alex Woolford&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Look at: &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://cwiki.apache.org/confluence/display/KAFKA/KIP-103%3A+Separation+of+Internal+and+External+traffic" target="_blank"&gt;https://cwiki.apache.org/confluence/display/KAFKA/KIP-103%3A+Separation+of+Internal+and+External+traffic&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://issues.apache.org/jira/browse/KAFKA-4565" target="_blank"&gt;https://issues.apache.org/jira/browse/KAFKA-4565&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;If helpful, please vote and accept best answer.&lt;/P&gt;</description>
      <pubDate>Sat, 31 Mar 2018 01:24:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-configure-Kafka-so-it-s-listening-on-two-networks/m-p/199264#M76655</guid>
      <dc:creator>cstanca</dc:creator>
      <dc:date>2018-03-31T01:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: how to configure Kafka so it's listening on two networks</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-configure-Kafka-so-it-s-listening-on-two-networks/m-p/199265#M76656</link>
      <description>&lt;P&gt;The solution to this was to create a config group for each broker and add a host-specific `advertised.listeners` property in the Custom kafka-broker section.&lt;/P&gt;&lt;P&gt;This has been beautifully documented in this YouTube video: &lt;A href="https://www.youtube.com/watch?v=bRKw5y_tx5E"&gt;https://www.youtube.com/watch?v=bRKw5y_tx5E&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2018 14:06:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-configure-Kafka-so-it-s-listening-on-two-networks/m-p/199265#M76656</guid>
      <dc:creator>alexw</dc:creator>
      <dc:date>2018-05-03T14:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: how to configure Kafka so it's listening on two networks</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-configure-Kafka-so-it-s-listening-on-two-networks/m-p/269462#M76657</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Instead of creating separate CGROUP for each Broker node in Kafka cluster, we can use kafka env to make it working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;To configure Kafka to advertise FQDN and listening on all the IP addresses, add the following text to the bottom of the &lt;STRONG&gt;kafka-env-template.&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;# Configure Kafka to advertise IP addresses instead of FQDN&lt;BR /&gt;HOST_FQDN=$(hostname -f)&lt;BR /&gt;echo advertised.listeners=$HOST_FQDN&lt;BR /&gt;sed -i.bak -e '/advertised/{/advertised@/!d;}' /usr/hdp/current/kafka-broker/conf/server.properties&lt;BR /&gt;echo "advertised.listeners=SASL_PLAINTEXT:://$HOST_FQDN:6667" &amp;gt;&amp;gt; /usr/hdp/current/kafka-broker/conf/server.properties&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;To configure Kafka to listen on all network interfaces, change the value in the &lt;STRONG&gt;listeners&lt;/STRONG&gt; field to SASL_PLAINTEXT:PLAINTEXT://0.0.0.0:6667&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Reference from : &lt;A href="https://docs.microsoft.com/en-us/azure/hdinsight/kafka/apache-kafka-connect-vpn-gateway" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/azure/hdinsight/kafka/apache-kafka-connect-vpn-gateway&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Saravana&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2019 18:19:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-configure-Kafka-so-it-s-listening-on-two-networks/m-p/269462#M76657</guid>
      <dc:creator>saravanakumar_n</dc:creator>
      <dc:date>2019-08-30T18:19:41Z</dc:date>
    </item>
  </channel>
</rss>

