1.背景

写入es的时候,报错如下

Rejecting mapping update to [xxx] as the final mapping would have more than 1 type: [xxx, xxx]

2.原因

原因:6.0的版本不允许一个 index 下面有多个 type,并且官方说是在接下来的7.0版本中会删掉 type ,官方说明 ,搞得有点迷,看一些文章说 ElasticSearch 的 index 相当于 数据库type 相当于 数据表,但是现在看来,如果要储存多个表的数据,还是得建立多个 index 索引。

3.代码如下

ElasticsearchSinkFunction elasticsearchSinkFunction 

[Es] Rejecting mapping update to [xxx] as the final mapping would have more than 1 type [xxx xxx]相关推荐

  1. ES 插入文档报错:Rejecting mapping update to [testindex] as the final mapping would have more than 1 type

      笔者在用 curl 命令行对 ElasticSearch 进行文档插入时,报了如下错误. [estestuser@vm-10-201-42-9 ~]$ curl -u elastic -H &qu ...

  2. Rejecting mapping update to [house] as the final mapping would have more than 1 type: [housetype, do

    本人今天创建索引及索引mapping 当logstash将mysql同步到es索引文档的时候,出现如上错误 [2018-03-22T14:17:42,271][WARN ][logstash.outp ...

  3. SpringBoot整合es7.x启动报错:Rejecting mapping update to [AAA] as the final mapping would have more than 1

    因为es6.x以后调整一个index只能有一个type,官方默认在所有的index自动加了一个_doc的type,所以当我们不指定或者指定不为_doc的type时,会报这个错误,解决方案: @Docu ...

  4. Rejecting mapping update to [blog] as the final mapping would have more than 1 type: [doc, blog]

    type = "blog" 改成 type="doc"

  5. Rejecting mapping update to [XXx] as the final mapping would have more than 1 type: 报错

    在给索引导入数据时 导入数据语句: POST /cars/transactions/_bulk { "index": {}} { "price" : 10000 ...

  6. ES更新错误 Rejecting mapping update to [] as the final mapping would have more than 1 type

    reason=Rejecting mapping update to [] as the final mapping would have more than 1 type: [_doc, xxx]] ...

  7. 在 OpenGL ES 2.0 上实现视差贴图(Parallax Mapping)

    在 OpenGL ES 2.0 上实现视差贴图(Parallax Mapping) 视差贴图 最近一直在研究如何在我的 iPad 2(只支持 OpenGL ES 2.0, 不支持 3.0) 上实现 视 ...

  8. tomcat 报错 Status 500 - Mapper method ‘xxxxx‘ has an unsupported return type: class xxx

    myBatis 接口写了 insert ,对应的dao层里写的返回值是一个实体类 User add(User user); 报错 Status 500 - Mapper method 'xxxxx' ...

  9. Linux:centos释放缓存,查看磁盘空间大小,xxx文件夹, 查看文件夹大小,查看剩余内存,查看xxx软件位置,统计某文件夹,统计某文件夹下目录数量,查看文件夹大小,给文件夹下所有的文件赋值权限

    一台老的PHP后台服务器,今天用 free -m 查看,发现内存跑满了. 再 top,然后按下shift+m,也就是按内存占用百分比排序,发现排在第一的进程,才占用0.9%,那是什么占用的呢?谷歌了一 ...

最新文章

  1. css 兼容ie6,ie7,ff的fixed,元素上下端固定定位方法
  2. keras网络变为pytorch网络的一些参考
  3. redis和memcache的区别
  4. Python 卡方检验、克雷姆值
  5. 5375亿元的x86市场:戴尔946亿、HPE 682亿、浪潮517亿、联想345亿、华为256亿、思科218亿、新华三204亿
  6. POJ - 3461 (kmp)
  7. linux 所有文件大小排序,linux 根据文件大小排序
  8. idea java常用手册
  9. Red Giant Universe 3.0.2 for After Effects 破解版 Mac 红巨星宇宙特效插件包预设
  10. 搭建OA系统运维需要了解的知识?
  11. 6个实例电路,详解雷击浪涌的防护
  12. 并发编程中你需要知道的基础概念
  13. Ventory制作多系统启动u盘 和 安装 windows10+ubuntu双系统
  14. c语言int作用,c语言中int的用法
  15. CAPP集成化工艺设计与管理系统
  16. 替换加密(恺撒加密法)
  17. 香蕉派 BPI-M5折腾记录(1)—— 开发板系统烧写
  18. 20210122 记一次防止m3u8网页视频被破解和下载的思路
  19. 综述:城市道路自动驾驶车辆规划与控制技术
  20. Android群英传-拼图游戏puzzle-6点吐槽

热门文章

  1. 微信:情人节女性收520红包的数量是男性的3.9倍,有用户收到200多个
  2. 消息称Uber正洽谈出售旗下自动驾驶部门ATG给Aurora
  3. 苹果今年预计生产8000万部iPhone 12,多还是少?
  4. 华为将联合京东举办线上发布会 或发布折叠屏手机
  5. 吃相难看!《人民日报》再评视频网站套路:消磨观众信任,必将引火烧身
  6. 点赞!刘强东:无论京东员工遭遇何种不幸,将负责其子女费用到22岁
  7. 4999元起!华为Mate 30 5G系列今日预售:支持SA及NSA 5G双模
  8. 苹果正式推送iPadOS 13.1、iOS 13.1,修复大量Bug,速升!
  9. 没一个能打的!端午档电影齐扑街:3天票房不及8亿
  10. 2018年网络视听付费用户规模惊人 视听消费习惯逐步形成