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 pass using DABs the parameters to use

jeremy98
New Contributor II

Hello Community, I want to pass parameters to my Databricks job through the DABs CLI. Specifically, I'd like to be able to run a job with parameters directly using the command:

 

 
databricks bundle run -t prod --params [for example: table_name="client"]

I believe this involves handling the databricks.yaml file, but I'm unsure how to configure it correctly to achieve this. Could anyone provide guidance on how to set this up?

Thanks for your help!

1 REPLY 1

szymon_dybczak
Contributor III

Hi @jeremy98 ,

You can pass parameters using CLI in following way:

 

databricks bundle run -t ENV --params Param1=Value1,Param2=Value2 Job_Name

 

And in your yml file you should define parameters in similar way to following:

szymon_dybczak_0-1733151625593.png

You can find more info in following documentation entry:

bundle command group | Databricks on Google Cloud

 

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