That's an odd thing to do 🙂 If you need to use another port for some reason, it would be better to change the ports on all hosts consistently, using the "TCP Port" or the "TLS/SSL Port" properties in Cloudera Manager, whether are you connecting without TLS or with it, respectively.
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 Kafka > Instances > Click on the broker your want the change the port for > Configuration > Continue Editing Role Instance.
Then enter the following in the "Kafka Broker Advanced Configuration Snippet (Safety Valve) for kafka.properties" property:
port=9096
listeners=PLAINTEXT://:9096
The PLAINTEXT value will depend on your cluster config:
- PLAINTEXT: No Kerberos, No TLS
- SSL: No Kerberos, Using TLS
- SASL_PLAINTEXT: Using Kerberos, No TLS
- SASL_SSL: Using Kerberos, Using TLS
After that restart the Broker instance that was reconfigured.
--
Was your question answered? Please take some time to click on "Accept as Solution" below this post.
If you find a reply useful, say thanks by clicking on the thumbs up button.