sortega edited a comment on issue #24968: Add some clarifications to kafka 
usage with SSL
URL: https://github.com/apache/spark/pull/24968#issuecomment-505921643
 
 
   It might have to do with the specific way in which I'm passing the 
arguments. This is my code:
   
   ```
   df.write
         .format("kafka")
         .option("kafka.bootstrap.servers", bootstrapServers)
         .option("topic", topic)
         .options(optionsMap)
         .save()
   ```
   
   And `optionsMap` comes from
   
   ```scala
   def toOptionsMap: Map[String, String] =
       flattenOptionals(
         Map(
           "kafka.security.protocol"       -> Some("SSL"),
           "kafka.ssl.truststore.location" -> 
Some(truststore.location.toString),
           "kafka.ssl.truststore.password" -> 
requireNonEmpty(truststore.password),
           "kafka.ssl.keystore.location"   -> Some(keystore.location.toString),
           "kafka.ssl.keystore.password"   -> 
requireNonEmpty(keystore.password),
           "kafka.ssl.key.password"        -> requireNonEmpty(keyPassword)
         )
       )
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to