cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to connect to secured schema registry from Azure Databricks

rahulgulati89
New Contributor II

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?

rahulgulati89_0-1694516966345.png

Thanks in advance.

1 REPLY 1

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 

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group