Member since
10-04-2023
2
Posts
0
Kudos Received
0
Solutions
10-04-2023
12:18 PM
Thanks @cjervis . Mentioned console producer command from link is working for me however the syntax or command not working when I am passing message from file. I am able to produce message from console itself but not from file and seeking help for that
... View more
10-04-2023
05:16 AM
kafka version cdh 6.3.4 console producer for single message from command line works fine but issue with below command console producer command : 1. kafka-console-producer --broker-list <bokerhost:port> --topic <my-topic> --producer.config source-broker-1.properties < sampleMsg.txt 2. cat sampleMsg.txt | kafka-console-producer --broker-list <bokerhost:port> --topic <my-topic> --producer.config source-broker-1.properties 3. echo sampleMsg.txt | kafka-console-producer --broker-list <bokerhost:port> --topic <my-topic> --producer.config source-broker-1.properties my property file looks like: security.protocol=SASL_SSL sasl.kerberos.service.name=kafka ssl.truststore.location=/cloudera/security/jks/jks file and set jaas.conf correctly
... View more
Labels:
- Labels:
-
Apache Kafka