05-23-2024 08:56 AM
Dear Databricks Community,
I hope this message finds you well. I am currently working on automating cluster configuration updates in Databricks using the API. As part of this automation, I am looking to ensure that the Unity Catalog is enabled within the cluster configuration.
I understand that enabling Unity Catalog is typically done manually through the Databricks UI during cluster creation or modification. However, I would like to inquire if there is a way to programmatically enable Unity Catalog via the Databricks API.
In my current script, I am fetching job details and cluster configuration settings, but I am unable to reflect the enabled Unity Catalog in the cluster summary. I would greatly appreciate any insights or guidance on how to achieve this programmatically via the API.
Thank you very much for your assistance and support.
05-27-2024 12:51 PM
Hi @Himanshu4 ,
To run Unity Catalog workloads, compute resources must comply with certain security requirements. Non-compliant compute resources cannot access data or other objects in Unity Catalog. SQL warehouses always comply with Unity Catalog requirements, but some cluster access modes do not. See Access modes.
05-27-2024 11:46 PM
Hi @raphaelblg ,
Thanks for your response. My task is to upgrade jobs. One of the scenarios involves upgrading job clusters, where I am trying to upgrade non-Unity Catalog clusters to Unity Catalog-enabled clusters. Is it possible by upgrading the spark version of the cluster using Databricks API?
05-28-2024 03:03 PM
@Himanshu4 as long as the job cluster is on Shared mode, UC should be accessible.
06-02-2024 10:24 PM
Hi Raphael
Can we fetch job details from one workspace and create new job in new workspace with the same "job id" and configuration?
09-20-2024 09:33 AM
@Himanshu4 You can fetch the job details from one workspace but the job ID is auto-generated and non-customizable.
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