- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
~
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
~
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
~
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2024 05:44 AM
you can use the --config-file parameter and pass all the values.
~
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
~
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2024 03:05 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
~
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2024 10:50 AM
Bash
~

