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
Honored Contributor

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 ACCEPTED SOLUTION

Accepted Solutions

szymon_dybczak
Esteemed 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

 

View solution in original post

1 REPLY 1

szymon_dybczak
Esteemed 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

 

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local communityโ€”sign up today to get started!

Sign Up Now