07-22-2024 09:18 PM
Hi Databricks, we have created several Databricks workflows and the `json-definition.json` for the same is stored inside version control i.e. GitHub. There are several parameters which are referred from params.json inside this job definition but the issue is the params.json is hardcoded as of current design.
We are trying to figure out a way to pass config parameters to the Controller workflow without using hotfix branch / Databricks UI with some approvals/governance in place. Is there a more better way of doing this so that we don't have to dig inside the params.json to update/modify the existing keys/values.
I am adding the basic tree structure for my MLOps repo:
Please suggest.
07-22-2024 11:42 PM
Have you considered using Databricks Asset Bundles? Very easy to parameterize!
07-25-2024 04:33 AM
Hi @jacovangelder , I have created a `variables.yaml` file i.e.
and while I am trying to refer this variable in my `job.yaml` file like this:
07-25-2024 04:42 AM - edited 07-25-2024 04:56 AM
Hi @jacovangelder , I got the solution when you're referring the variables from the same file it should be referred as ${var.varname} and when you're referring from a different file use ${vars.varname}. Though I suspect why is that. Is there any specific reason?
Also I got an error at the time of deploying a bundle while referring the variables from another file, i.e. **A managed resource "vars" "job_cluster_key" has not been declared in the root
module.**
07-25-2024 02:04 AM
Hi @argl1995dbks, Thank you for reaching out to our community! We're here to help you.
To ensure we provide you with the best support, could you please take a moment to review the response and choose the one that best answers your question? Your feedback not only helps us assist you better but also benefits other community members who may have similar questions in the future.
If you found the answer helpful, consider giving it a kudo. If the response fully addresses your question, please mark it as the accepted solution. This will help us close the thread and ensure your question is resolved.
We appreciate your participation and are here to assist you further if you need it!
07-25-2024 04:00 AM
Hi @Kaniz_Fatma please allow me sometime, I will get back to you.
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