📣 极限科技诚招搜索运维工程师(Elasticsearch/Easysearch)- 全职/北京 👉 : 立即申请加入

版本: 7.6-7.17

简而言之,当 Elasticsearch 尝试清理仓库时,如果没有指定 bucket(存储桶)选项,就会发生此错误。bucket 选项对于识别仓库中存储数据的具体位置是必需的。要解决此问题,您应该在清理命令中指定 bucket 选项。或者,您可以检查仓库配置以确保 bucket 选项设置正确。如果问题仍然存在,考虑重新配置仓库或检查 Elasticsearch 版本的更新或已知问题。

日志上下文 #

日志 “bucket option is required for cleaning up repository” 的类名是 AbstractCleanupCommand.java。我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入上下文的人参考:

protected abstract AbstractRepository newRepository(Terminal terminal; OptionSet options) throws Exception;  protected void validate(OptionSet options) {
 String bucket = bucketOption.value(options);
 if (Strings.isNullOrEmpty(bucket)) {
 throw new ElasticsearchException("bucket option is required for cleaning up repository");
 }  String basePath = basePathOption.value(options);
 if (basePath.endsWith("/")) {
 throw new ElasticsearchException("there should be no trailing slash in the base path");