Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2024 12:04 PM - edited 09-16-2024 12:09 PM
Hi @Visakh_Vijayan ,
Sorry for late response, I didn't notice your reply. So I prepared simple example. Here I installed whl file on a cluster using below command:
databricks libraries install --json `@libraries_to_install.json
The content of libraries_to_install.json file looks following:
{
"cluster_id": "your_cluster_id",
"libraries": [
{
"whl": "/Workspace/Users/path_to_your_wheel/my_package-0.1-py2.py3-none-any.whl"
}
]
}
As a result I have installed whl library on cluster:
Now, to uninstall library I used below command:
databricks libraries uninstall --json `@libraries_to_uninstall.json
The content of libraries_to_uninstall.json is following:
{
"cluster_id": "your_cluster_id",
"libraries": [
{
"whl": "/Workspace/Users/path_to_your_wheel/my_package-0.1-py2.py3-none-any.whl"
}
]
}
After cluster restarted, wheel library uninstalled successfully .
Edit: If you use powershell terminal use backtick to escape @ character `@libraries_to_uninstall.json