10-01-2024 09:21 AM
I am attempting to create a task in a job using the Git Provider as a source and GitHub is the provider. The repo is a private repo. Regardless of how I enter the path to the notebook I receive the same error that the notebook path is invalid and only absolute paths are supported and must begin with a forward slash (/).
If I attempt to prefix my path with a forward slash I get an error in the UI that git provider paths must be relative and not begin with forward slash.
I have attempted to wrap the path in quotes and I've tried escaping the spaces with a backslash. I've also tried prefixing the path with blob/main or this_is_a_repo_name and neither seem to be working.
Has anyone else experienced this? I can't find an example of the YAML configuration that could be used as an alternative (thinking it may be a UI limitation).
Example of Configuration:
GitHub Repo Path: https://github.com/ExampleAccount/this_is_a_repo_name
Branch: main
Path to Notebook: 00 - Utilities/this_is_a_notebook_name
10-15-2024 11:16 AM
Like I said in a previous response. This started working automatically a few days ago with no changes on our end. The developer who was working on this decided to try it one more time and it just worked, no error this time. I don't know if Databricks pushed out a fix or what.
10-01-2024 11:40 AM - edited 10-01-2024 11:41 AM
Hi @umccanna ,
how exactly you are trying to create the job?
Are you using databricks asset bundles?
Is your yaml looking like below?
tasks:
- task_key: ExampleTask
notebook_task:
notebook_path: "00 - Utilities/this_is_a_notebook_name"
job_cluster_key: ExampleCluster
git_source:
git_url: https://github.com/ExampleAccount/this_is_a_repo_name
git_provider: github
git_branch: main
10-01-2024 11:50 AM
Hey,
I am creating the job via the UI.
10-15-2024 10:18 AM
Any solution to this problem ? I'm too facing the same error.
10-15-2024 11:14 AM
Recently this started working for us with no changes on our side. I'm guessing something was resolved on the Databricks end, but no one notified us of a fix.
10-15-2024 11:16 AM
Like I said in a previous response. This started working automatically a few days ago with no changes on our end. The developer who was working on this decided to try it one more time and it just worked, no error this time. I don't know if Databricks pushed out a fix or what.
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