I'd like to set up Spark Standalone's Web UI so it can be accessed through HTTPS.
Spark is being run on a cluster external to the computer I'm using to access the browser.
Here's what I've done so far, and it's not working:
- Used OpenSSL to make a self-signed certificate and key and then keytool to make a keystore
- Packaged the certificate and key as a .p12 file
- In Chrome's settings under Manage Certificates, imported said p12 file
In spark-defaults.conf, added options
spark.ui.https.enabled true spark.ui.ssl.server.keystore.location /path/to/spark.keystore spark.ui.ssl.server.keystore.keypassword password spark.ui.ssl.server.keystore.password passwordIn spark-env.sh, added
export SPARK_MASTER_OPTS="-Dspark.ui.https.enabled=true \ -Dspark.ui.ssl.server.keystore.location=/path/to/spark.keystore \ -Dspark.ui.ssl.server.keystore.keypassword=password \ -Dspark.ui.ssl.server.keystore.password=password" export SPARK_WORKER_OPTS="-Dspark.ui.https.enabled=true \ -Dspark.ui.ssl.server.keystore.location=/path/to/spark.keystore \ -Dspark.ui.ssl.server.keystore.keypassword=password \ -Dspark.ui.ssl.server.keystore.password=password"
I've tried to connect to the server before, after, and in between each of these steps, and I keep getting the error "This site can’t provide a secure connection". What am I missing here?
