I am using kafka-console-producer.sh like this:
kafka-console-producer.sh
kafka-console-producer.sh --bootstrap-server $BTSTRP --topic test --producer.config client.properties