取消All workspaces have access option后External Location不可访问且无恢复UI选项
问题描述
- 创建了一个External Location,取消勾选
All workspaces have access option后,该External Location完全无法访问 - UI中找不到恢复设置的入口,原本期望能像管理Unity Catalog权限那样,通过工作区列表分配访问权限
图1:取消"所有工作区可访问"选项后,External Location无法访问的界面
图2:期望看到的、类似Unity Catalog权限管理的工作区列表界面
解决方法
由于UI权限被限制,可通过Databricks CLI或REST API恢复访问权限:
方法一:使用Databricks CLI
- 安装CLI并完成认证
pip install databricks-cli databricks configure --token # 输入Databricks实例URL和个人访问令牌 - 查询目标External Location的当前配置(确认名称和参数)
databricks external-locations get --name "<你的External Location名称>" - 重新开启所有工作区访问
若需要指定单个工作区访问,可替换为:databricks external-locations update --name "<你的External Location名称>" --all-workspaces-access truedatabricks external-locations update --name "<你的External Location名称>" --add-workspace-ids <工作区ID1>,<工作区ID2>
方法二:使用REST API
发送PUT请求到External Locations更新接口:
PUT /api/2.0/unity-catalog/external-locations/<external-location-name> Headers: Authorization: Bearer <你的个人访问令牌> Content-Type: application/json Body: { "all_workspaces_access": true }
备选方案
如果没有CLI/API权限,联系Databricks管理员协助恢复权限。
内容的提问来源于stack exchange,提问作者play_something_good
相关产品推荐
相关产品推荐

