美文网首页
Caused by: java.lang.IllegalArgu

Caused by: java.lang.IllegalArgu

作者: 无味wy | 来源:发表于2022-10-16 10:34 被阅读0次
    Caused by: java.lang.IllegalArgumentException: Limit of total fields [1000] in index [.monitoring-es-7-2020.11.19] has been exceeded
            at org.elasticsearch.index.mapper.MapperService.checkTotalFieldsLimit(MapperService.java:596) ~[elasticsearch-7.9.2.jar:7.9.2]
            at org.elasticsearch.index.mapper.MapperService.internalMerge(MapperService.java:525) ~[elasticsearch-7.9.2.jar:7.9.2]
            at org.elasticsearch.index.mapper.MapperService.internalMerge(MapperService.java:427) ~[elasticsearch-7.9.2.jar:7.9.2]
            at org.elasticsearch.index.mapper.MapperService.merge(MapperService.java:359) ~[elasticsearch-7.9.2.jar:7.9.2]
            at org.elasticsearch.action.bulk.TransportShardBulkAction.executeBulkItemRequest(TransportShardBulkAction.java:281) ~[elasticsearch-7.9.2.jar:7.9.2]
            at org.elasticsearch.action.bulk.TransportShardBulkAction$2.doRun(TransportShardBulkAction.java:164) ~[elasticsearch-7.9.2.jar:7.9.2]
            at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) ~[elasticsearch-7.9.2.jar:7.9.2]
            at org.elasticsearch.action.bulk.TransportShardBulkAction.performOnPrimary(TransportShardBulkAction.java:209) ~[elasticsearch-7.9.2.jar:7.9.2]
    

    原因: 索引创建的类型数量超出限制
    解决: 修改类型数量限制

    PUT  _settings
    {
      "index.mapping.total_fields.limit": 10000
    }
    

    相关文章

      网友评论

          本文标题:Caused by: java.lang.IllegalArgu

          本文链接:https://www.haomeiwen.com/subject/tznrzrtx.html