版本: 7.13-8.9
简而言之,当 Elasticsearch 无法将值解释为百分比或字节时会出现此错误。这通常是由于配置文件或请求体中的格式不正确或语法错误导致的。要解决此问题,您应该首先检查配置文件或请求体的语法。确保您尝试解析的值格式正确为百分比或字节。如果错误持续存在,请考虑将值更改为 Elasticsearch 可以解释的不同格式。
日志上下文 #
日志 “unable to parse [{}={}] as either percentage or bytes” 类名是 RelativeByteSizeValue.java。 我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入上下文的人使用:
}
}
try {
return new RelativeByteSizeValue(ByteSizeValue.parseBytesSizeValue(value, settingName));
} catch (ElasticsearchParseException e) {
throw new ElasticsearchParseException("unable to parse [{}={}] as either percentage or bytes", e, settingName, value);
}
}
public String getStringRep() {
if (ratio != null) {





