hi <@U0769K3GSD9> + <@U046V0QC124>! i'm trying to ...
# questions
j
hi @Jens Peder Meldgaard + @Juan Luis! i'm trying to follow along but i'm running into an issue. when i run
kedro databricks init
i see that
conf/base/databricks.yml
is created but
iris/databricks.yml
(the asset bundle definition) is not created. so then when i call
kedro databricks deploy
i get this error
Copy code
FileNotFoundError: 
No `databricks.yml` file found. Maybe you forgot to initialize the Databricks bundle?

You can initialize the Databricks bundle by running:
kedro databricks init `````` i can confirm i'm connected via the databricks CLI. any thoughts here? Thread in Slack conversation
@Nik Linnane could you show the output of the
kedro databricks init
command? cc @Jens Peder Meldgaard
n
Copy code
kedro databricks init
2025-02-14 13:06:43,963 - kedro.framework.project - INFO - Using 'conf/logging.yml' as logging configuration. You can change this by setting the KEDRO_LOGGING_CONFIG environment variable accordingly.

Please select your cloud provider:
1. Azure
2. AWS
3. GCP
 [1]: 2
2025-02-14 13:06:56,964 - Command - ERROR - Creating databricks configuration: Usage: databricks [OPTIONS] COMMAND [ARGS]...
2025-02-14 13:06:56,964 - Command - ERROR - Creating databricks configuration: Try 'databricks -h' for help.
2025-02-14 13:06:56,964 - Command - WARNING - Creating databricks configuration (['databricks', 'bundle', 'init', '/var/folders/9k/g9p7q1wn1772b8bwrjt7wv3r0000gn/T/tmp3fd7uxxu', '--config-file', '/var/folders/9k/g9p7q1wn1772b8bwrjt7wv3r0000gn/T/tmp4vv7us71', '--output-dir', '/Users/Nik_Linnane/Desktop/databricks_test/iris']): Usage: databricks [OPTIONS] COMMAND [ARGS]...
Try 'databricks -h' for help.
2025-02-14 13:06:56,964 - iris - INFO - Creating databricks configuration: Wrote databricks.yml
2025-02-14 13:06:56,966 - iris - WARNING - Creating bundle override configuration: conf/base/databricks.yml already exists.
2025-02-14 13:06:56,966 - iris - INFO - Substituting DBFS paths: Checking conf/local/catalog.yml
2025-02-14 13:06:56,966 - iris - WARNING - Substituting DBFS paths: conf/local/catalog.yml does not exist.
2025-02-14 13:06:56,966 - iris - INFO - Substituting DBFS paths: Checking conf/base/catalog.yml
j
some underlying error with
databricks bundle init
j
Well, as it says in the error message there already exist a databricks.yml file. So removing that would probably resolve the issue
n
sorry, forgot i had already ran it. i deleted
conf/base/databricks.yml
and reran
kedro databricks init
Copy code
kedro databricks init
2025-02-14 13:16:32,918 - kedro.framework.project - INFO - Using 'conf/logging.yml' as logging configuration. You can change this by setting the KEDRO_LOGGING_CONFIG environment variable accordingly.

Please select your cloud provider:
1. Azure
2. AWS
3. GCP
 [1]: 2
2025-02-14 13:16:37,020 - Command - ERROR - Creating databricks configuration: Usage: databricks [OPTIONS] COMMAND [ARGS]...
2025-02-14 13:16:37,021 - Command - ERROR - Creating databricks configuration: Try 'databricks -h' for help.
2025-02-14 13:16:37,021 - Command - WARNING - Creating databricks configuration (['databricks', 'bundle', 'init', '/var/folders/9k/g9p7q1wn1772b8bwrjt7wv3r0000gn/T/tmpe47utvp4', '--config-file', '/var/folders/9k/g9p7q1wn1772b8bwrjt7wv3r0000gn/T/tmp94vmamwc', '--output-dir', '/Users/Nik_Linnane/Desktop/databricks_test/iris']): Usage: databricks [OPTIONS] COMMAND [ARGS]...
Try 'databricks -h' for help.
2025-02-14 13:16:37,021 - iris - INFO - Creating databricks configuration: Wrote databricks.yml
2025-02-14 13:16:37,044 - iris - INFO - Creating bundle override configuration: Wrote conf/base/databricks.yml
2025-02-14 13:16:37,044 - iris - INFO - Substituting DBFS paths: Checking conf/local/catalog.yml
2025-02-14 13:16:37,045 - iris - WARNING - Substituting DBFS paths: conf/local/catalog.yml does not exist.
2025-02-14 13:16:37,045 - iris - INFO - Substituting DBFS paths: Checking conf/base/catalog.yml
still no
iris/databricks.yml
j
Sooo… I don’t quite know what went wrong. But of the top of my head. Did you authenticate with the databricks client beforehand? ‘databricks auth login’
n
i authenticated with a personal access token using
databricks configure --token
- would that make a difference?
j
Not really. Did you use the default profile?
n
yes
j
@Nik Linnane Hi again, Could I get you to share which version of the Databricks CLI that you are using? I can't quite seem to reproduce the error that you are experiencing.. 😞
Scratch that... I found out what happened. So it seems that you are using the python package
databricks-cli
. Unfortunately, the
kedro-databricks
plugin is heavily reliant on the
databricks bundle
command group, which was introduced in their new CLI implementation. You can find more information on how to update the Databricks CLI here: https://docs.databricks.com/en/dev-tools/cli/install.html
I hope that resolves your issues. If not, please let me know 🙂
n
ahh okay i will try that! appreciate you looking into this 🙂
hi @Jens Peder Meldgaard! so that worked (now using Databricks CLI v0.241.2), but im now encountering an issue where after running
kedro databricks deploy
a job is never created. i made a new issue here
j
Hey! Happy to hear that. I’m currently working on version 0.8.0, here the deployment issue should have been resolved.
thankyou 1