Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document support of requirements.txt specification in cluster libraries #3637

Merged
merged 1 commit into from
Jun 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions docs/resources/cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,15 @@ library {
}
```

Installing Python libraries listed in the `requirements.txt` file. Only Workspace paths and Unity Catalog Volumes paths are supported. Requires a cluster with DBR 15.0+.


```hcl
library {
requirements = "/Workspace/path/to/requirements.txt"
}
```

Installing artifacts from Maven repository. You can also optionally specify a `repo` parameter for a custom Maven-style repository, that should be accessible without any authentication. Maven libraries are resolved in Databricks Control Plane, so repo should be accessible from it. It can even be properly configured [maven s3 wagon](https://github.com/seahen/maven-s3-wagon), [AWS CodeArtifact](https://aws.amazon.com/codeartifact/) or [Azure Artifacts](https://azure.microsoft.com/en-us/services/devops/artifacts/).

```hcl
Expand Down
14 changes: 14 additions & 0 deletions docs/resources/library.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,19 @@ resource "databricks_library" "fbprophet" {
}
```

## Python requirements files

Installing Python libraries listed in the `requirements.txt` file. Only Workspace paths and Unity Catalog Volumes paths are supported. Requires a cluster with DBR 15.0+.


```hcl
resource "databricks_library" "libraries" {
cluster_id = databricks_cluster.this.id
requirements = "/Workspace/path/to/requirements.txt"
}
```


## Python EGG

```hcl
Expand Down Expand Up @@ -110,6 +123,7 @@ resource "databricks_library" "rkeops" {
}
```


## Import

-> **Note** Importing this resource is not currently supported.
Expand Down
Loading