elasticsearch Elasticsearch-查询节点时不支持小于-1字节的值,elasticsearch,kibana,elasticsearch,Kibana" /> elasticsearch Elasticsearch-查询节点时不支持小于-1字节的值,elasticsearch,kibana,elasticsearch,Kibana" />

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

elasticsearch Elasticsearch-查询节点时不支持小于-1字节的值,elasticsearch,kibana,elasticsearch,Kibana,我试图查询节点统计端点(_nodes/stats)并收到以下错误: {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"Values less than -1 bytes are not supported: -279601152b"}],"type":"il

我试图查询节点统计端点(_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代码引发的:

如果你想有一个完整的外观

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;
    }
public ByteSizeValue(长尺寸,ByteSizeUnit单位){
if(大小<-1 | |(大小==-1&&unit!=字节数)){
抛出新的IllegalArgumentException(“不支持小于-1字节的值:“+size+unit.getSuffix()”);
}
如果(尺寸>长最大值/单位字节(1)){
抛出新的IllegalArgumentException(
不支持大于“+Long.MAX_VALUE+”字节的值:“+size+unit.getSuffix());
}
这个。大小=大小;
这个。单位=单位;
}
请注意,第一个throw语句
不支持小于-1字节的值:
您的内容大小似乎非常小1306341376字节,因为它小于-1字节,因此引发此异常


解决方案:-检查API内容并确保其通过此验证

此异常是从以下Elasticsearch代码引发的:

如果你想有一个完整的外观

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;
    }
public ByteSizeValue(长尺寸,ByteSizeUnit单位){
if(大小<-1 | |(大小==-1&&unit!=字节数)){
抛出新的IllegalArgumentException(“不支持小于-1字节的值:“+size+unit.getSuffix()”);
}
如果(尺寸>长最大值/单位字节(1)){
抛出新的IllegalArgumentException(
不支持大于“+Long.MAX_VALUE+”字节的值:“+size+unit.getSuffix());
}
这个。大小=大小;
这个。单位=单位;
}
请注意,第一个throw语句
不支持小于-1字节的值:
您的内容大小似乎非常小1306341376字节,因为它小于-1字节,因此引发此异常


解决方案:-检查API内容并确保其通过此验证

谢谢!不幸的是,情况并非如此。我需要重新启动Elasticsearch节点,然后升级它,它自行解决了问题。

谢谢!不幸的是,情况并非如此。我最后需要重新启动Elasticsearch节点,然后升级,它自行解决了问题。

希望您安然无恙,如果您能投票并接受答案(如果答案对您有帮助/有用),那就太好了:)提前感谢希望您安然无恙,如果你能投票并接受对你有用的答案,那就太好了:)提前谢谢