Uncomment the line
#advertised.listeners with your address & port

Create a fresh topic and retry your test. Let us know what happens.

KR,


On 29 Jun 2017 2:06 pm, "Anton Mushin" <anton_mus...@epam.com> wrote:

> Thanks for your reply.
>
> My server.properties:
>
> broker.id=0
> #delete.topic.enable=true
> #advertised.listeners=PLAINTEXT://your.host.name:9092
> num.network.threads=3
> num.io.threads=8
> socket.send.buffer.bytes=102400
> socket.receive.buffer.bytes=102400
> socket.request.max.bytes=104857600
> log.dirs=/tmp/kafka-logs
> num.partitions=1
> num.recovery.threads.per.data.dir=1
> log.retention.hours=168
> log.segment.bytes=1073741824
> log.retention.check.interval.ms=300000
> zookeeper.connect=localhost:2181
> zookeeper.connection.timeout.ms=6000
>
>  Best,
>  Anton
>
> -----Original Message-----
> From: M. Manna [mailto:manme...@gmail.com]
> Sent: Thursday, June 29, 2017 4:52 PM
> To: users@kafka.apache.org
> Subject: Re: don't read message in consumer
>
> Please share your server configuration. How are you advertising the
> listeners?
>
> On 29 Jun 2017 13:44, "Anton Mushin" <anton_mus...@epam.com> wrote:
>
> > Hi everyone,
> > I use on kafka_2.11-0.10.1.1, and I'm trying check it work.  I have
> > Zookeeper and Kafka on one host.
> > I'm calling console producer: "kafka-console-producer.sh --broker-list
> > 10.0.0.19:9092 --topic test"
> > I expect message in consumer. Consumer is calling as:
> > "kafka-console-consumer.sh --zookeeper localhost:2181 --topic test
> > --from-beginning"
> > But I don't get messages in consumer, and don't catch any exceptions.
> > If I will call console producer as : "kafka-console-producer.sh
> > --broker-list localhost:9092 --topic test" - I'm getting messages in
> > consumer.
> >
> > Problem is what external users can connect only to 10.0.0.19:9092, but
> > their messages don't processing.
> >
> > Could you help me this, please?
> >
> > Best,
> > Anton
> >
> >
>

Reply via email to