Unable to connect to secured schema registry from Azure Databricks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2023 04:10 AM
Hi,
I am unable to connect to secure schema registry(running on https) as it is breaking with below mentioned error.
SCHEMA_REGISTRY_CONFIGURATION_ERROR] Schema from schema registry could not be initialized. Error while fetching schema for subject 'env-dev-market-daily_eod_price-log-v1-value' from the registry: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target.
My use case is to connect Spark Job running on Azure Databricks to my Kafka Clusterand Schema Registry which are running on SASL_SSL and https resp. I am trying to pass ssl certificate like below but they dont seem to be taking effect. I have added the truststore jks file in DBFS.
My code base is as below. Does anyone know what i am missing here?
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2023 10:31 PM - edited 09-12-2023 10:33 PM
Hi Kaniz,
Thanks for getting back.
yes I agree with you. Do you know the steps to import this in Azure Databricks runtime? My spark version is 3.4, I need to know the path and java version where I can import this certificate. I am using Azure Databricks to run this notebook. I tried doing that using workspace based init scripts but it did not worked.
thanks