SSL configuration isn't obvious so should be documented:
The Spark Connector uses the Mongo-Java-Driver and the driver will need to be configured to work with SSL. See the ssl tutorial in the java documentation.
The SSL system properties are:
These are JVM wide system properties and will need to be configured on the Spark driver machine as well as each of the Spark workers.
According to the Spark configuration you can set these properties in spark via:
- spark.driver.extraJavaOptions - set properties on the spark driver
- spark.executor.extraJavaOptions - set properties on the executor
An example submitting a spark job with extra Java Options: