版本: 7.4-7.5
简而言之,当Elasticsearch配置中的基础路径末尾包含尾部斜杠("/")时,会出现此错误。Elasticsearch要求路径末尾不能有任何斜杠。要解决此问题,您应该检查Elasticsearch配置文件,并删除基础路径中的所有尾部斜杠。完成更改后,保存配置文件并重启Elasticsearch以使更改生效。
日志上下文 #
日志"there should be not trailing slash in the base path"的类名是 CleanupS3RepositoryCommand.java。我们从Elasticsearch源代码中提取了以下内容,供寻求深入上下文的用户参考:
throw new ElasticsearchException("bucket option is required for cleaning up S3 repository");
} String basePath = basePathOption.value(options);
if (basePath.endsWith("/")) {
throw new ElasticsearchException("there should be not trailing slash in the base path");
} String accessKey = accessKeyOption.value(options);
if (Strings.isNullOrEmpty(accessKey)) {
throw new ElasticsearchException("access_key option is required for cleaning up S3 repository");





