gpt4 book ai didi

elasticsearch - Elasticsearch-小于-1个字节的值不受查询节点支持

转载 作者:行者123 更新时间:2023-12-02 23:44:03 27 4
gpt4 key购买 nike

我正在尝试查询节点统计信息端点(_nodes / stats)并收到此错误:

{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"Values less than -1 bytes are not supported: -279601152b"}],"type":"illegal_argument_exception","reason":"Values less than -1 bytes are not supported: -279601152b","suppressed":[{"type":"illegal_state_exception","reason":"Failed to close the XContentBuilder","caused_by":{"type":"i_o_exception","reason":"Unclosed object or array found"}}]},"status":400}
有人撞过吗?同样,我在设置ILM规则时遇到麻烦,在尝试设置规则时,Kibana将其推送到GUI:
Error loading node attribute information

400: Bad Request. [illegal_argument_exception] Values less than -1 bytes are not supported: -1306341376b

最佳答案

从Elasticsearch的以下代码引发此异常:
Refer ES class code如果您想拥有完整的外观。

public ByteSizeValue(long size, ByteSizeUnit unit) {
if (size < -1 || (size == -1 && unit != ByteSizeUnit.BYTES)) {
throw new IllegalArgumentException("Values less than -1 bytes are not supported: " + size + unit.getSuffix());
}
if (size > Long.MAX_VALUE / unit.toBytes(1)) {
throw new IllegalArgumentException(
"Values greater than " + Long.MAX_VALUE + " bytes are not supported: " + size + unit.getSuffix());
}
this.size = size;
this.unit = unit;
}
请注意,第一个throw语句 Values less than -1 bytes are not supported:您的内容大小似乎很小1306341376字节,因为它抛出的异常小于-1字节。
解决方案:-检查API内容并确保其通过了此验证

关于elasticsearch - Elasticsearch-小于-1个字节的值不受查询节点支持,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62683219/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com