You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/configuration.md
+9-8Lines changed: 9 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -26,8 +26,8 @@ These options define how the connector connects and authenticates with MarkLogic
26
26
| spark.marklogic.client.cloud.apiKey | Required for MarkLogic `cloud` authentication. |
27
27
| spark.marklogic.client.kerberos.principal | Required for `kerberos` authentication. |
28
28
| spark.marklogic.client.saml.token | Required for `saml` authentication. |
29
-
| spark.marklogic.client.sslProtocol| If `default`, an SSL connection is created using the JVM's default SSL context; else the value is passed to the [SSLContext method](https://docs.oracle.com/javase/8/docs/api/javax/net/ssl/SSLContext.html#getInstance-java.lang.String-) for instantiating an SSL context. |
30
-
| spark.marklogic.client.sslHostnameVerifier | Either `any`, `common`, or `strict`. |
29
+
| spark.marklogic.client.sslEnabled | If 'true', an SSL connection is created using the JVM's default SSL context.
30
+
| spark.marklogic.client.sslHostnameVerifier | Either `any`, `common`, or `strict`; see the [MarkLogic Java Client documentation](https://docs.marklogic.com/javadoc/client/com/marklogic/client/DatabaseClientFactory.SSLHostnameVerifier.html) for more information on these choices. |
31
31
| spark.marklogic.client.uri | Shortcut for setting the host, port, username, and password when using `basic` or `digest` authentication. See below for more information. |
32
32
33
33
### Connecting with a client URI
@@ -61,11 +61,10 @@ triplet. For example, a password of `sp@r:k` must appear in the `spark.marklogic
61
61
62
62
### Configuring SSL
63
63
64
-
If the MarkLogic app server that the connector will connect to requires SSL, you will need to configure the
65
-
`spark.marklogic.client.sslProtocol` option. The common approach is to set this to `default`, causing the associated
66
-
JVM's certificate store - typically the `$JAVA_HOME/jre/lib/security/cacerts` file - to be used for establishing an
67
-
SSL connection. The certificate store should contain the public certificate associated with the SSL certificate template
68
-
used by the MarkLogic app server.
64
+
If the MarkLogic app server that the connector will connect to requires SSL, the `spark.marklogic.client.sslEnabled`
65
+
option must be set to 'true'. This causes the associated JVM's certificate store - typically the
66
+
`$JAVA_HOME/jre/lib/security/cacerts` file - to be used for establishing an SSL connection. The certificate store
67
+
should contain the public certificate associated with the SSL certificate template used by the MarkLogic app server.
69
68
70
69
If you receive an error containing a message of "PKIX path building failed", the most likely issue is that your JVM's
71
70
certificate store does not contain the public certificate associated with the MarkLogic app server, or your Spark
@@ -75,7 +74,9 @@ error.
75
74
76
75
If you receive an `javax.net.ssl.SSLPeerUnverifiedException` error, you will need to adjust the
77
76
`spark.marklogic.client.sslHostnameVerifier` option. A value of `ANY` will disable hostname verification,
78
-
which may be appropriate in a development or test environment.
77
+
which may be appropriate in a development or test environment. The
0 commit comments