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
{{ message }}
This repository was archived by the owner on Dec 4, 2024. It is now read-only.
|`spark.ssl.enabled`| Whether to enable SSL (default: `false`). |
25
-
|`spark.ssl.keyStoreBase64`| Base64 encoded blob containing a Java keystore. |
26
25
|`spark.ssl.enabledAlgorithms`| Allowed cyphers |
27
26
|`spark.ssl.keyPassword`| The password for the private key |
28
27
|`spark.ssl.keyStore`| must be server.jks |
@@ -44,14 +43,17 @@ cat keystore.base64
44
43
45
44
**Note:** The base64 string of the keystore will probably be much longer than the snippet above, spanning 50 lines or so.
46
45
47
-
Add the stores to your secrets in the DC/OS Secret store, for example if your base64 encoded keystores and truststores are server.jks.base64 and trust.jks.base64, respectively then do the following:
46
+
Add the stores to your secrets in the DC/OS secret store. For example, if your base64-encoded keystores
47
+
and truststores are server.jks.base64 and trust.jks.base64, respectively, then use the following
In this case you're adding two secrets `/truststore` and `/keystore` that you will need to pass to the Spark Driver and Executors. You will need to add the following configurations to your `dcos spark run ` command:
55
+
In this case, you are adding two secrets `/truststore` and `/keystore` that you will need to pass to the Spark Driver and Executors.
56
+
You must add the following configurations to your `dcos spark run ` command:
55
57
56
58
```bash
57
59
@@ -73,9 +75,13 @@ dcos spark run --verbose --submit-args="\
73
75
--class <Spark Main class> <Spark Application JAR> [application args]"
74
76
```
75
77
76
-
Importantly the `spark.mesos.driver.labels` and `spark.mesos.task.labels` must be set as shown. If you upload your secret with another path (e.g. not `/keystore` and `/truststore`) then change the `name` in the value accordingly. Lastly, `spark.mesos.task.labels` must have the `DCOS_SPACE:<dcos_space>` label as well, to have access to the secret. See the [Secrets Documentation about SPACES][13] for more details about Spaces, but usually you want `/spark` as shown.
78
+
**Note:** The `spark.mesos.driver.labels` and `spark.mesos.task.labels` must be set as shown. If you
79
+
upload your secret with another path (e.g. not `/keystore` and `/truststore`) then change the `name` in
80
+
the value accordingly. Lastly, `spark.mesos.task.labels` must have the `DCOS_SPACE:<dcos_space>`
81
+
label in order to access the secret. See the [Secrets Documentation about spaces][13] for
82
+
more details about spaces. Usually, you will want to set the space label to `/spark`, as shown.
0 commit comments