当前位置:网站首页>ES日志报错赏析-Limit of total fields
ES日志报错赏析-Limit of total fields
2022-07-07 11:47:00 【ES小助理】
报错现象
[o.e.a.a.i.m.p.TransportPutMappingAction] [------nodeid-------] failed to put mappings on indices [[[--------IndexName---------]]], type [doc]
java.lang.IllegalArgumentException: Limit of total fields [1000] in index [--------IndexName---------] has been exceeded
at org.elasticsearch.index.mapper.MapperService.checkTotalFieldsLimit(MapperService.java:656) ~[elasticsearch-6.8.2.jar:6.8.2]
at org.elasticsearch.index.mapper.MapperService.internalMerge(MapperService.java:537) ~[elasticsearch-6.8.2.jar:6.8.2]
at org.elasticsearch.index.mapper.MapperService.internalMerge(MapperService.java:415) ~[elasticsearch-6.8.2.jar:6.8.2]
报错解析
此问题为写入时报错,ES中默认限制单个索引1000个字段,因为索引中定义太多的字段会导致 mapping 的激增,从而引起内存的错误和难以恢复的情况。
此问题常见于日志拆分后,自动更新更新mapping,由于日志拆分逻辑异常,导致很多异常字段被误认为是新字段,导致索引maaping字段激增大于1000.导致更新报错。
解决方案
1-调整索引setting,临时增大字段数限制,下述方式中my_index为报错的index名。
PUT my_index/_settings
{
"index.mapping.total_fields.limit": 2000
}
此处设置为2000 最大索引
2-检查业务侧导致字段数激增的原因,减少单个索引字段数量。
边栏推荐
- How far can it go to adopt a cow by selling the concept to the market?
- Centso7 OpenSSL error Verify return code: 20 (unable to get local issuer certificate)
- Esp32 ① compilation environment
- Flink | 多流转换
- Talk about pseudo sharing
- The delivery efficiency is increased by 52 times, and the operation efficiency is increased by 10 times. See the compilation of practical cases of financial cloud native technology (with download)
- Read PG in data warehouse in one article_ stat
- Detr introduction
- ROS机器人更换新雷达需要重新配置哪些参数
- Ogre introduction
猜你喜欢
2022-7-6 sigurg is used to receive external data. I don't know why it can't be printed out
OSI seven layer model
Build a secure and trusted computing platform based on Kunpeng's native security
Scrapy教程经典实战【新概念英语】
My "troublesome" subordinates after 00: not bad for money, against leaders, and resist overtime
社会责任·价值共创,中关村网络安全与信息化产业联盟对话网信企业家海泰方圆董事长姜海舟先生
【黑马早报】华为辟谣“军师”陈春花;恒驰5预售价17.9万元;周杰伦新专辑MV 3小时播放量破亿;法华寺回应万元月薪招人...
Help tenants
2022-7-6 Leetcode 977.有序数组的平方
数字ic设计——SPI
随机推荐
Toraw and markraw
2022-7-7 Leetcode 34.在排序数组中查找元素的第一个和最后一个位置
C语言数组相关问题深度理解
Esp32 construction engineering add components
实现IP地址归属地显示功能、号码归属地查询
供应链供需预估-[时间序列]
LeetCode_ Binary search_ Medium_ 153. Find the minimum value in the rotation sort array
2022-7-6 初学redis(一)在 Linux 下下载安装并运行 redis
How to make join run faster?
Redis只能做缓存?太out了!
Final review notes of single chip microcomputer principle
靠卖概念上市,认养一头牛能走多远?
The delivery efficiency is increased by 52 times, and the operation efficiency is increased by 10 times. See the compilation of practical cases of financial cloud native technology (with download)
OSI 七层模型
Cinnamon taskbar speed
Milkdown control icon
Simple and easy-to-use code specification
为租客提供帮助
1. Deep copy 2. Call apply bind 3. For of in differences
Introduce six open source protocols in detail (instructions for programmers)