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:ย 

How to Connect Pyspark to Unity Catalog on Kubernetes with Data Stored in MinIO?

gupta_tanmay
New Contributor II

https://stackoverflow.com/questions/79177219/how-to-connect-spark-to-unity-catalog-on-kubernetes-wit... 
I have posted the question on stack overflow.
I am trying to register catalog using pyspark. 

1 REPLY 1

VZLA
Databricks Employee
Databricks Employee

Thanks for your question!

Although it shouldn't be necessary, could you please try the following:

  1. Set the spark.databricks.sql.initial.catalog.name configuration to my_catalog in your Spark session to ensure the correct catalog is initialized.

  2. Use current_catalog() to print the active catalog before executing the query. This will help verify the catalog in use.

  3. Print the query's explain() plan in extended mode and check if any other catalog is being referenced. Even though you're using the three-level notation, this step can help confirm there are no unintended catalog overrides.

Let me know if these steps reveal any discrepancies or require further exploration!

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