Support Questions
Find answers, ask questions, and share your expertise

kafka accessibility outside of ec2

kafka accessibility outside of ec2

Explorer

Hello,

I have read every piece of documentation on this topic, and can't seem to find the answer.

I have a kafka 0.10.2 cluster (currently 3 nodes, soon to be 40) installed via Ambari. It works when connecting via the local/private subnet (nifi -> kafka).

When I try and run a producer from our office (cluster is in EC2), it doesn't work, because the bootstrap server meta list returns back internal hostnames of the brokers.

From what I have read, it requires the setting 'advertised.listeners', when I add this setting like this:

```advertised.listeners="PLAINTEXT://host.name.here:port,PLAINTEXT://host2.name.here:port,PLAINTEXT://host3.name.here:port"```

Kafka brokers will not start now.

I simply need to be able to produce and consume from kafka from outside of EC2.

What am I overlooking?

Thank you!

4 REPLIES 4

Re: kafka accessibility outside of ec2

Mentor

@c sol

You will need the public dns for the EC2!

Re: kafka accessibility outside of ec2

Explorer

and put it in what setting? i put the public DNS in the advertised listeners settings, and it no worky.

Re: kafka accessibility outside of ec2

Mentor

@c sol

Update the /etc/hosts

Re: kafka accessibility outside of ec2

Explorer