Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

How to remotely produce and consume from the local machine to the kafka broker which is present in the cloud?

How to remotely produce and consume from the local machine to the kafka broker which is present in the cloud?

 
1 REPLY 1
Highlighted

Re: How to remotely produce and consume from the local machine to the kafka broker which is present in the cloud?

Hi @Kiran Hebbar,

In the below commands, replace the value localhost with ip/hostname of your kafka broker which is in cloud.

kafka/bin/kafka-console-producer.sh \
    --broker-list localhost:9092 \
    --topic my-topic
kafka/bin/kafka-console-consumer.sh \
    --bootstrap-server localhost:9092 \
    --topic my-topic \
    --from-beginning

Thanks,

Aditya

Don't have an account?
Coming from Hortonworks? Activate your account here