microsoft / azdo-databricks

A set of Build and Release tasks for Building, Deploying and Testing Databricks notebooks
MIT License
25 stars 30 forks source link

Notebook Execution Fails if Notebook Path contains a Space #29

Open hmayer1980 opened 4 years ago

hmayer1980 commented 4 years ago

Notebook Execution does fail if the Notebook Path Contains a Space - or its unclear how to Escape correctly. Because when I try to put the Notebook path into quotes the Error is that the path has to start with a forward slash..

2020-05-08T09:01:32.7176503Z Python3 selected. Running... 2020-05-08T09:01:32.7299400Z ##[error]The Notebook path must start with a forward slash (/). 2020-05-08T09:01:32.7378657Z ##[section]Finishing: Execute "00 Current Release executable"

020-05-08T08:57:39.7170139Z Python3 selected. Running... 2020-05-08T08:57:39.7334767Z [command]C:\hostedtoolcache\windows\Python\3.7.6\x64\Scripts\databricks.exe workspace ls /00 Workspace Setup - overwritten during deployment/01 Setup General/10 Release Scripts --profile AZDO 2020-05-08T08:57:40.7001318Z Error: b'{"error_code":"RESOURCE_DOES_NOT_EXIST","message":"Path (/00) doesn\'t exist."}' 2020-05-08T08:57:40.7001929Z 2020-05-08T08:57:40.7035981Z ##[error]Error while fetching Databricks workspace folder. 2020-05-08T08:57:40.7047074Z Checking if 00 Current Release executable existis under /00 Workspace Setup - overwritten during deployment/01 Setup General/10 Release Scripts... 2020-05-08T08:57:40.7048045Z Notebook: Error: b'{"error_code":"RESOURCE_DOES_NOT_EXIST","message":"Path (/00) doesn\'t exist."}' 2020-05-08T08:57:40.7048604Z Notebook:

It works fine when the Notebook path does not contain the Space character.

ojacques commented 3 years ago

@hmayer1980, I had the same issue, and was able to escape the spaces, one by one. Like so: /this\ is\ a\ folder\ with\ spaces/subfolder/subfolder

SqlRescuedLokesh commented 3 years ago

@hmayer1980, I had the same issue, and was able to escape the spaces, one by one. Like so: /this\ is\ a\ folder\ with\ spaces/subfolder/subfolder

escaping spaces didn't work for me. We are trying to execute the Notebook from the "Execute Databricks Notebook" step in the Azure DevOps release pipeline

cuspime commented 2 years ago

Try %run "/your/absolute/path" with the double quotes.