You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Bharat Viswanadham (JIRA)" <ji...@apache.org> on 2016/07/14 18:17:21 UTC

[jira] [Comment Edited] (KAFKA-3948) Invalid broker port in Zookeeper when SSL is enabled

    [ https://issues.apache.org/jira/browse/KAFKA-3948?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15377904#comment-15377904 ] 

Bharat Viswanadham edited comment on KAFKA-3948 at 7/14/16 6:16 PM:
--------------------------------------------------------------------

Hi, 
The behavior you are observing is correct.
Host - Default host
Port - Default Port

The host and port are the for compatibility with old client.
The host and port are updated if we have listener with PLAINTEXT. As PLAINTEXT is supported as default.

In your first scenario you have both PLAINTEXT and SSL (listeners=SSL://:9093,PLAINTEXT://:9092
port=9093)
so, the host got updated to kafka1 (your kafka cluster host)
and port 9093 (PLAINTEXT port)

In the second scenario, you have only SSL (listeners=SSL://:9093)
then the host and port are set to default values 
for host it is null
port it is -1




was (Author: bharatviswa):
Hi, 
The behavior you are observing is correct.
Host - Default host
Port - Default Port

The host and port are the for compatibility with old client.
The host and port are updated if we have listener with PLAINTEXT. As PLAINTEXT is supported as default.

In your first scenario you have both PLAINTEXT and SSL (listeners=SSL://:9093,PLAINTEXT://:9092
port=9093)
so, the host got updated to kafka1 (your kafka cluster host)
and port 9093 (PLAINTEXT port)

In the second scenario, you have onlt SSL (listeners=SSL://:9093)
then the host and port are set to default values 
for host it is null
port it is -1



> Invalid broker port in Zookeeper when SSL is enabled
> ----------------------------------------------------
>
>                 Key: KAFKA-3948
>                 URL: https://issues.apache.org/jira/browse/KAFKA-3948
>             Project: Kafka
>          Issue Type: Bug
>          Components: network
>    Affects Versions: 0.9.0.1
>            Reporter: GĂ©rald Quintana
>            Assignee: Bharat Viswanadham
>
> With broker config
> {code}
> listeners=SSL://:9093,PLAINTEXT://:9092
> port=9093
> {code}
> gives in Zookeeper /brokers/ids/1
> {code}
> {"jmx_port":9999,"timestamp":"1468249905473","endpoints":["SSL://kafka1:9093","PLAINTEXT://kafka1:9092"],"host":"kafka1","version":2,"port":9092}
> {code}
> Notice that port 9092 not 9093
> Then, different scenario, with config:
> {code}
> listeners=SSL://:9093
> port=9093
> {code}
> gives in Zookeeper /brokers/ids/1
> {code}
> {"jmx_port":9999,"timestamp":"1468250372974","endpoints":["SSL://kafka1:9093"],"host":null,"version":2,"port":-1}
> {code}
> Now host is null and port is -1
> Setting advertised.port doesn't help



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)