kafka console producer for file message
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

