.clear cluster cache external-artifacts 命令

使用 “版本 ”下拉列表切换服务。 了解有关导航的详细信息
适用于:✅ Azure Data Explorer

清除语言插件的缓存外部artifacts。

当更新存储在外部storage的外部项目文件时,此命令非常有用,因为缓存可能会保留以前的版本。 在这种情况下,执行此命令将清除缓存条目,并确保后续查询使用最新版本的artifacts运行。

权限

必须至少具有 Database Admin 权限才能运行此命令。

语法

.clear cluster cache external-artifacts ( ArtifactURI [, ... ] )

详细了解语法约定

参数

客户 类型 必需 说明
ArtifactURI string ✔️ 要从缓存中清除的 external-artifact 的 URI。

返回

此命令返回包含以下列的表:

类型 说明
ExternalArtifactUri string 外部工件 URI。
状态 string 对外部工件执行清除操作的结果。

示例

.clear cluster cache external-artifacts ("https://kustoscriptsamples.blob.core.chinacloudapi.cn/samples/R/sample_script.r", "https://kustoscriptsamples.blob.core.chinacloudapi.cn/samples/python/sample_script.py")
ExternalArtifactUri 状态
https://kustoscriptsamples.blob.core.chinacloudapi.cn/samples/R/sample_script.r 已在所有节点上成功清除
https://kustoscriptsamples.blob.core.chinacloudapi.cn/samples/python/sample_script.py 已在所有节点上成功清除