Uploaded image for project: 'Spark Connector'
  1. Spark Connector
  2. SPARK-252

How to set the ssl context to use disable host verification in spark mongo connector

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Configuration
    • Labels:
      None

      Description

      Hi,

      I'm trying to connect ssl enabled mongo cluster from spark and I want to set this configuration in the spark connector the way we do for other drivers. 

      MongoClient.connect("mongodb://localhost:27017?ssl=true", {
        sslValidate:true,
        checkServerIdentity:false,
        sslCA:ca
      }, function(err, client) {
        client.close();
      });
      

        Attachments

          Activity

            People

            Assignee:
            ross.lawley Ross Lawley
            Reporter:
            srinu.gajjala321 srinivas rao gajjala
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: