Caused by: java.lang.IllegalArgu
2022-10-16 本文已影响0人
无味wy
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
}