Hello - i've enabled SSL for Kafka, and Kafka is starting up fine with SSL
enable.

However, when i run the Kafka console producer, it is give me error as
shown below ->



   1. Command :
   2.
   3. /usr/hdp/2.5.3.0-37/kafka/bin/kafka-console-producer.sh --broker-list
   nwk2-bdp-kafka-05.gdcs-qa.apple.com:6667,nwk2-bdp-kafka-04.gdcs-qa.apple.
   com:6667,nwk2-bdp-kafka-06.gdcs-qa.apple.com:6667 --topic sslTopic --
   producer.config /tmp/ssl-kafka/client-ssl.properties
   4.
   5. Message Typed on console :
   6.  hi
   7.
   8. On Typing message on the Console Producer, i get the following error :
   9.
   10. [2017-07-24 19:10:22,940] WARN Bootstrap broker nwk2-bdp-kafka-
   06.gdcs-qa.apple.com:6667 disconnected (org.apache.kafka.clients.
   NetworkClient)
   11. [2017-07-24 19:10:23,106] WARN Bootstrap broker nwk2-bdp-kafka-
   05.gdcs-qa.apple.com:6667 disconnected (org.apache.kafka.clients.
   NetworkClient)


Attached is the client-ssl.properties file, used to start the Console
produce
security.protocol=SSL
ssl.truststore.location=/tmp/ssl-kafka/client.truststore.jks
ssl.truststore.password=changeit
ssl.keystore.location=/tmp/ssl-kafka/client.keystore.jks
ssl.keystore.password=changeit
ssl.key.password=changeit
ssl.enabled.protocols=TLSv1.2,TLSv1.1,TLSv1
ssl.keystore.type=JKS
ssl.truststore.type=JKS

Reply via email to