Commit 4d46dd1
authored
DAB unable to validate container local file:///path-to-jar (#3892)
_##_ Changes
In a runtime container, I need to be able to reference files.
This PR allows the `file:///` path (which is valid in databricks
templates) to do that.
Currently the CLI attempts to resolve this path when it should now.
Open to feedback here.
## Why
When running a containerized job, I have pre-bundled assets that need to
be referenced.
If I set the path to `file:///` manually via the databricks UX, my job
works. If I attempt to do it via the cli, I have this rendering issue.
```
databricks bundle deploy --target dev
Error: file doesn't exist file:///opt/spark/jars/app.jar
```
With this change, the asset bundle is deployable.
## Tests
Unit testing and manual deployment verification.
<!-- If your PR needs to be included in the release notes for next
release,
add a separate entry in NEXT_CHANGELOG.md as part of your PR. -->
Signed-off-by: sshpuntoff <[email protected]>1 parent 52a3fcf commit 4d46dd1
File tree
3 files changed
+18
-9
lines changed- bundle/libraries
3 files changed
+18
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
| 28 | + | |
28 | 29 | | |
29 | | - | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
19 | | - | |
20 | 18 | | |
21 | | - | |
| 19 | + | |
22 | 20 | | |
23 | 21 | | |
24 | 22 | | |
25 | 23 | | |
26 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
27 | 35 | | |
28 | 36 | | |
29 | 37 | | |
| |||
47 | 55 | | |
48 | 56 | | |
49 | 57 | | |
50 | | - | |
51 | 58 | | |
52 | 59 | | |
53 | 60 | | |
| |||
0 commit comments