databricks / mlops-stacks

This repo provides a customizable stack for starting new ML projects on Databricks that follow production best-practices out of the box.
https://docs.databricks.com/en/dev-tools/bundles/mlops-stacks.html
Apache License 2.0
416 stars 141 forks source link

Broken: databricks bundle init https://github.com/databricks/mlops-stack #119

Closed rsazima closed 7 months ago

rsazima commented 9 months ago

Hi,

Executing this command:

databricks bundle init https://github.com/databricks/mlops-stack

yields:

Error: default value "{{if eq .input_cloud `azure`}}https://adb-xxxx.xx.azuredatabricks.net{{else if eq .input_cloud `aws`}}https://your-staging-workspace.

Looking at the commit history this seems to be related:

https://github.com/databricks/mlops-stacks/commit/115973406fae51cdae243145c908fd5c507f7afd#diff-a8a271588ec48ba602da95509392039ce200fd9deea23c61111ef867725aff19R39

Can you please fix / provide a workaround?

Thanks

rsazima commented 9 months ago

OK, found a workaround:

~/m/code  % git clone https://github.com/databricks/mlops-stacks.git
Cloning into 'mlops-stacks'...

~/m/code  % cd mlops-stacks 

~/m/c/mlops-stacks  % git checkout 55f17a8d8e3e6e3e64147fe3b43835dfa8b8462a                                                          Note: switching to '55f17a8d8e3e6e3e64147fe3b43835dfa8b8462a'.

~/m/c/mlops-stacks  % databricks bundle init ../mlops-stacks                                                                      55f17a8 ✔
Welcome to MLOps Stacks. For detailed information on project generation, see the README at https://github.com/databricks/mlops-stacks/blob/main/README.md.

Still nicer to use directly from repo, so fix is appreciated.

Thanks

arpitjasa-db commented 9 months ago

Hi @rsazima what version of the CLI are you using? And note you can also do directly databricks bundle init mlops-stacks

rsazima commented 9 months ago

Hey @arpitjasa-db,

CLI version is Databricks CLI v0.209.1.

I've managed to use locally as stated above, but only after cloning the repo and going back to a commit before the regex refactor.

Thanks!

Cheers

imkanchwala commented 9 months ago

Getting a similar issue.

databricks bundle init mlops-stacks

Error: open mlops-stacks/databricks_template_schema.json: no such file or directory

arpitjasa-db commented 7 months ago

Hi @imkanchwala @rsazima circling back to this post-holidays, it seems we had another user report a similar issue but it seems to be terminal-specific: https://github.com/databricks/mlops-stacks/issues/134. Would you mind testing this out on different terminals as well and seeing if the issue persists?

Philippe-Neveux commented 7 months ago

Hello, I got the same issue. My Databricks CLI version is the following : 0.208.2

Error: default value "{{if eq .input_cloud `azure`}}https://adb-xxxx.xx.azuredatabricks.net{{else if eq .input_cloud `aws`}}https://your-prod-workspace.cloud.databricks.com{{end}}" for property "input_databricks_prod_workspace_host" does not match specified regex pattern: "^(https.*)?$

I'll use the temporary solution recommended by @rsazima thank you ;)

arpitjasa-db commented 7 months ago

Hi @Philippe-Neveux can you try updating your CLI to the latest version or the min version supported by MLOps Stacks (0.211.0 at this time)? Also what terminal are you using? You can try the recommended approach in https://github.com/databricks/mlops-stacks/issues/134

Philippe-Neveux commented 7 months ago

Thanks @arpitjasa-db works again after updating the CLI ! I used the v0.212.1 one ;)

arpitjasa-db commented 7 months ago

Awesome glad to hear it! Closing out this ticket then for now, feel free to reopen if needed