Thanks for reaching out to Microsoft Q&A.
To downgrade the TLS version from 1.3 to 1.2 in your Azure Databricks environment, you can modify the Spark configuration settings. Here’s how you can do it both temporarily (for testing) and permanently:
Temporary Change (for Testing)
Modify Spark Configuration in Notebook: You can set the TLS version directly in your notebook using the following code snippet:
spark.conf.set("spark.ssl.protocol", "TLSv1.2")
This change will only apply to the current session and will revert back to the default when the notebook is restarted.
Permanent Change
Cluster Configuration: To make a permanent change, you need to set the Spark configuration in the cluster settings:
- Go to your Databricks workspace.
- Navigate to Clusters and select your cluster.
- Click on Configuration.
- Under Advanced Options, find the Spark tab.
- Add the following configuration:
spark.ssl.protocol TLSv1.2
- Save the changes and restart your cluster for the settings to take effect.
Additional Notes
- Testing: After making these changes, you can verify the TLS version by checking the logs or using a test API call to ensure that the connection is established using TLS 1.2.
- Security Considerations: Keep in mind that downgrading TLS may expose your application to security vulnerabilities, so it’s advisable to revert back to TLS 1.3 once your testing is complete.
Hope this helps. Do let us know if you any further queries.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.