โ09-30-2024 04:52 AM
i have come accross a documentation on asset bundles long back whcih states that when you type
databricks bundle init
it gives us option to choose a project type. But i see the below error when i do that i see the below error
is there a way, i can take inputs from from commandline from template.
โ10-01-2024 05:47 AM
Create a conf.json with the values
{"project_name":"gc","include_notebook":"no","include_dlt":"no","include_python":"yes"}
and call your DAB int this way
databricks bundle init default-python --config-file conf.json
โ09-30-2024 11:15 AM
databricks bundle init default-python
More details
https://docs.databricks.com/en/dev-tools/bundles/templates.html#use-a-default-bundle-template
โ10-01-2024 05:24 AM
@gchandra Thankyou for the response, but the default-python is not asking any input parameters. It is directly creating a sample my_project folder. I asked for a ay to customize inputs from user for choosing. Do you see a way to do this.
โ10-01-2024 05:29 AM
Keeping Automation in mind, DAB helps you with custom Templates for customized Inputs.
https://docs.databricks.com/en/dev-tools/bundles/templates.html#define-user-prompt-variables
โ10-01-2024 05:31 AM
@gchandra so does that mean there is no way that bundle support custom project name and project type when we do init
โ10-01-2024 05:44 AM
you can use the --config-file parameter and pass all the values.
โ10-01-2024 05:47 AM
Create a conf.json with the values
{"project_name":"gc","include_notebook":"no","include_dlt":"no","include_python":"yes"}
and call your DAB int this way
databricks bundle init default-python --config-file conf.json
โ10-14-2024 03:05 AM
โ10-02-2024 08:38 AM
Can you share which terminal you are using?
The command is supposed to provide you with an interactive selection menu. This does not appear if the terminal does not support it, so if you could share which one you're using, we might be able to replicate and investigate.
Thank you!
โ10-02-2024 08:41 AM
I use the standard zsh terminal. When in doubt I use --help to find out the options it has.
โ10-07-2024 08:03 AM
That's the shell running inside the terminal.
Can you tell the terminal type? E.g. Git BASH, cmd.exe, inside VS Code or else?
โ10-07-2024 10:50 AM
Bash
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