question

bensmail avatar image
bensmail asked Erick Ramirez edited

How do I enable HTTPS on the Spark UI?

Hello, How can I enable HTTPS to access to spark.ui, which configurations are needed to configure to achieve this.

I want to access tothe Spark UI like this:https://HOSTNAME:7080

Regards Salah

sparksecurity
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

steve.lacerda avatar image
steve.lacerda answered Erick Ramirez edited

The Spark UI uses the TLS certificates from your cassandra.yaml client_encryption_options parameter.

2 comments Share
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

bensmail avatar image bensmail commented ·

Hello, on my case the client encryption is not enable,

I set the 2 parameters to true and restart all cluster nodes, but still allowinh http for Spark UI and not https,

Regards Salah

0 Likes 0 ·
steve.lacerda avatar image steve.lacerda ♦ bensmail commented ·

Please post your client encryption options from cassandra.yaml.

0 Likes 0 ·
Erick Ramirez avatar image
Erick Ramirez answered Erick Ramirez edited

In DSE, the Spark UI inherits the client encryption options configured in cassandra.yaml by default with this configuration in dse.yaml:

spark_ui_options:
    encryption: inherit

If you have not enabled client encryption for your cluster, you can secure the Spark UI independently by setting the encryption option to custom:

spark_ui_options:
    encryption: custom

and configure the TLS certificate. See step 3 of Securing Spark connections in DSE for details.

If you need assistance or have follow up questions, please log a ticket with DataStax Support so one of our engineers can assist you. Cheers!

Share
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.