Happy to help, Namita.

Regards,

Jim Ziesig

On Fri, Sep 30, 2022 at 7:51 AM Namita Jaokar <jaokarnami...@gmail.com>
wrote:

> Hi James,
>
> Thanks alot James for the solution provided. The below configurations did
> work when producer and consumer applications were checked with the
> scenarios mentioned.
>
>
> Thanks & Regards,
> Namita Jaokar
>
> On Tue, Sep 27, 2022 at 7:35 PM James Ziesig
> <james.zie...@broadcom.com.invalid> wrote:
>
> > Hi Namita,
> >
> > This is likely a listener configuration issue.  The bootstrap
> > server setting only gets you so far, your client must be able to contact
> > the server via a listener address.  I have seen this occur on a few
> systems
> > where a hostname could not be identified by Kafka, so the server
> advertises
> > a listener on only localhost:9092.  Since your producer is not on the
> same
> > system, it will not connect.
> >
> > You can try updating the listeners and advertised.listeners properties in
> > your server configuration file to use the actual hostname (assuming the
> > producer can reach the server via the hostname).
> >
> > Example (assumes plaintext communication, replace PLAINTEXT if needed):
> > listeners=PLAINTEXT://myserver.acme.com:9092
> > advertised.listeners=PLAINTEXT://myserver.acme.com:9092
> >
> > I hope this helps,
> >
> > Jim Ziesig
> >
> > On Tue, Sep 27, 2022 at 3:25 AM Namita Jaokar <jaokarnami...@gmail.com>
> > wrote:
> >
> >> Hi All,
> >>
> >> I am currently exploring a scenario where my producer and consumer are
> at
> >> different networks and systems.
> >>
> >> Below is my scenario:
> >>
> >> My kafka producer is on a client network on a system that does not have
> >> Apache kafka installed.
> >> My Kafka consumer is on my network and my system.
> >> I have the zookeeper and kafka server setup at the consumer system.
> >> I want the producer to send data to the consumer which is on my
> network. I
> >> have tried this case in my spring boot application.
> >> It gives me an error stating [Producer clientId=producer-1] Connection
> to
> >> node -1 (localhost/127.0.0.1:9092) could not be established. Broker may
> >> not
> >> be available.
> >>
> >> How will I let my producer and consumer communicate in this case?
> >> What configurations are required to establish the connection between the
> >> two.
> >> Please advise.
> >>
> >> Thanks & Regards,
> >> Namita Jaokar
> >>
> >
> > This electronic communication and the information and any files
> > transmitted with it, or attached to it, are confidential and are intended
> > solely for the use of the individual or entity to whom it is addressed
> and
> > may contain information that is confidential, legally privileged,
> protected
> > by privacy laws, or otherwise restricted from disclosure to anyone else.
> If
> > you are not the intended recipient or the person responsible for
> delivering
> > the e-mail to the intended recipient, you are hereby notified that any
> use,
> > copying, distributing, dissemination, forwarding, printing, or copying of
> > this e-mail is strictly prohibited. If you received this e-mail in error,
> > please return the e-mail to the sender, delete it from your computer, and
> > destroy any printed copy of it.
>

-- 
This electronic communication and the information and any files transmitted 
with it, or attached to it, are confidential and are intended solely for 
the use of the individual or entity to whom it is addressed and may contain 
information that is confidential, legally privileged, protected by privacy 
laws, or otherwise restricted from disclosure to anyone else. If you are 
not the intended recipient or the person responsible for delivering the 
e-mail to the intended recipient, you are hereby notified that any use, 
copying, distributing, dissemination, forwarding, printing, or copying of 
this e-mail is strictly prohibited. If you received this e-mail in error, 
please return the e-mail to the sender, delete it from your computer, and 
destroy any printed copy of it.

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to