DataWorks遇到过使用dataworks同步es数据至odps报这个错误吗:Types cannot be provided in get mapping requests, unless include_type_name is set to true. 怎么解决?
这个错误是因为在使用DataWorks同步ES数据至ODPS时,get mapping这个错误是因为在使用DataWorks同步ES数据至ODPS时,get mapping请求中包含了类型信息,但是没有设置include_type_name为true。要解决这个问题,你需要在获取mapping请求时设置include_type_name为true。
解决方法如下:
include_type_name=true
。from elasticsearch import Elasticsearch
es = Elasticsearch()
index_name = "your_index_name"
doc_type = "your_doc_type"
response = es.indices.get_mapping(index=index_name, doc_type=doc_type, include_type_name=True)
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。
DataWorks基于MaxCompute/Hologres/EMR/CDP等大数据引擎,为数据仓库/数据湖/湖仓一体等解决方案提供统一的全链路大数据开发治理平台。