Logstash无法根据给定的配置创建Kafka生产者

时间:2019-09-12 10:58:45

标签: apache-kafka logstash

我正在尝试将事件从Logstash发送到Kafka。 Logstash和Kafka均为最新版本。

执行包含Kafka输出插件配置的logstash配置文件时,它将引发以下错误:

Unable to create Kafka producer from given configuration {:kafka_error_message=>org.apache.kafka.common.KafkaException: Failed to  construct kafka producer, 
:cause=>org.apache.kafka.common.KafkaException: org.apache.kafka.common.KafkaException: org.apache.kafka.common.KafkaException: Failed to load SSL keystore D:\secretstore\xxx.jks of type JKS

这是配置:

output {

   kafka   
     { 

       bootstrap_servers => "localhost:9092"
       topic_id => "wwww"
       security_protocol => "SSL"
       ssl_key_password => "aaaa"
       ssl_keystore_location => "D:\secretstore\xxx.jks"
       ssl_keystore_password => "bbbb"
       ssl_truststore_location => "D:\secretstore\yyy.jks"
           ssl_truststore_password => "cccc"

  }

}

仍然将密钥库文件放置在指定路径下,但出现上述错误。但是,如果删除SSL配置,logstash将成功启动。有没有人遇到过此类问题,如果可以,请帮助我

0 个答案:

没有答案