<?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: Configure Kafka  port per hostname in Cloudera in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Configure-Kafka-port-per-hostname-in-Cloudera/m-p/335538#M231969</link>
    <description>&lt;P&gt;That's an odd thing to do &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; If you need to use another port for some reason, it would be better to change the ports on all hosts consistently, using the "&lt;STRONG&gt;TCP Port&lt;/STRONG&gt;" or the "&lt;STRONG&gt;TLS/SSL Port&lt;/STRONG&gt;" properties in Cloudera Manager, whether are you connecting without TLS or with it, respectively.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is possible to configure ports on a host-by-host basis, but it makes it harder to maintain and client configuration becomes a little more cumbersome. To change the port for a particular host, go to &lt;STRONG&gt;Kafka &amp;gt; Instances &amp;gt; Click on the broker your want the change the port for &amp;gt; Configuration &amp;gt; Continue Editing Role Instance&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then enter the following in the "&lt;STRONG&gt;Kafka Broker Advanced Configuration Snippet (Safety Valve) for kafka.properties&lt;/STRONG&gt;" property:&lt;/P&gt;&lt;PRE&gt;port=9096&lt;BR /&gt;listeners=PLAINTEXT://:9096&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The &lt;FONT face="courier new,courier,monospace"&gt;PLAINTEXT&lt;/FONT&gt;&amp;nbsp;value will depend on your cluster config:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT face="courier new,courier,monospace"&gt;PLAINTEXT&lt;/FONT&gt;: No Kerberos, No TLS&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="courier new,courier,monospace"&gt;SSL&lt;/FONT&gt;: No Kerberos, Using TLS&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="courier new,courier,monospace"&gt;SASL_PLAINTEXT&lt;/FONT&gt;: Using Kerberos, No TLS&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="courier new,courier,monospace"&gt;SASL_SSL&lt;/FONT&gt;: Using Kerberos, Using TLS&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;After that restart the Broker instance that was reconfigured.&lt;/P&gt;</description>
    <pubDate>Thu, 03 Feb 2022 02:35:00 GMT</pubDate>
    <dc:creator>araujo</dc:creator>
    <dc:date>2022-02-03T02:35:00Z</dc:date>
    <item>
      <title>Configure Kafka  port per hostname in Cloudera</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Configure-Kafka-port-per-hostname-in-Cloudera/m-p/335291#M231939</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We need advise about advanced Kafka configuration in Cloudera&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;We are using cloudera env installed on 6 servers per following distribution&lt;/U&gt;:&lt;/P&gt;&lt;P&gt;Namenode1-2&lt;/P&gt;&lt;P&gt;Datanode1-3&lt;/P&gt;&lt;P&gt;Application node&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;kafka service is installed on data nodes 1-3&amp;nbsp;&lt;/STRONG&gt;and we would like to know:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;How can we configure Kafka port per hostname and not per service?&lt;/STRONG&gt;&lt;BR /&gt;we would like to have following outcome for example:&lt;BR /&gt;datanode1 - remain with kafka default port 9092&lt;BR /&gt;datanode2 - will be configured with new port #&lt;BR /&gt;datanode3 -&amp;nbsp;will be configured with new port #&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Noam&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 14:45:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Configure-Kafka-port-per-hostname-in-Cloudera/m-p/335291#M231939</guid>
      <dc:creator>noamsh_88</dc:creator>
      <dc:date>2022-09-16T14:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: Configure Kafka  port per hostname in Cloudera</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Configure-Kafka-port-per-hostname-in-Cloudera/m-p/335538#M231969</link>
      <description>&lt;P&gt;That's an odd thing to do &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; If you need to use another port for some reason, it would be better to change the ports on all hosts consistently, using the "&lt;STRONG&gt;TCP Port&lt;/STRONG&gt;" or the "&lt;STRONG&gt;TLS/SSL Port&lt;/STRONG&gt;" properties in Cloudera Manager, whether are you connecting without TLS or with it, respectively.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is possible to configure ports on a host-by-host basis, but it makes it harder to maintain and client configuration becomes a little more cumbersome. To change the port for a particular host, go to &lt;STRONG&gt;Kafka &amp;gt; Instances &amp;gt; Click on the broker your want the change the port for &amp;gt; Configuration &amp;gt; Continue Editing Role Instance&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then enter the following in the "&lt;STRONG&gt;Kafka Broker Advanced Configuration Snippet (Safety Valve) for kafka.properties&lt;/STRONG&gt;" property:&lt;/P&gt;&lt;PRE&gt;port=9096&lt;BR /&gt;listeners=PLAINTEXT://:9096&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The &lt;FONT face="courier new,courier,monospace"&gt;PLAINTEXT&lt;/FONT&gt;&amp;nbsp;value will depend on your cluster config:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT face="courier new,courier,monospace"&gt;PLAINTEXT&lt;/FONT&gt;: No Kerberos, No TLS&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="courier new,courier,monospace"&gt;SSL&lt;/FONT&gt;: No Kerberos, Using TLS&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="courier new,courier,monospace"&gt;SASL_PLAINTEXT&lt;/FONT&gt;: Using Kerberos, No TLS&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="courier new,courier,monospace"&gt;SASL_SSL&lt;/FONT&gt;: Using Kerberos, Using TLS&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;After that restart the Broker instance that was reconfigured.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Feb 2022 02:35:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Configure-Kafka-port-per-hostname-in-Cloudera/m-p/335538#M231969</guid>
      <dc:creator>araujo</dc:creator>
      <dc:date>2022-02-03T02:35:00Z</dc:date>
    </item>
  </channel>
</rss>

