[英]NoNodeAvailableException[None of the configured nodes are available] in Elasticsearch 5.1.2
[英]NotXContentException when creating ingest pipeline in Elasticsearch 5.1.2 (Solaris)
我正在尝试使用以下 PUT 请求创建一个摄取管道:
{
"description": "ContentExtractor",
"processors": [
{
"extractor": {
"field": "contentData",
"target_field": "content"
}
}
]
}
但这导致以下错误:
{
"error": {
"root_cause": [
{
"type": "not_x_content_exception",
"reason": "Compressor detection can only be called on some xcontent bytes or compressed xcontent bytes"
}
],
"type": "not_x_content_exception",
"reason": "Compressor detection can only be called on some xcontent bytes or compressed xcontent bytes"
},
"status": 500
}
我在 ES 日志中看到以下异常:
org.elasticsearch.common.compress.NotXContentException: Compressor detection can only be called on some xcontent bytes or compressed xcontent bytes
at org.elasticsearch.common.compress.CompressorFactory.compressor(CompressorFactory.java:57) ~[elasticsearch-5.1.2.jar:5.1.2]
at org.elasticsearch.common.xcontent.XContentHelper.convertToMap(XContentHelper.java:65) ~[elasticsearch-5.1.2.jar:5.1.2]
at org.elasticsearch.ingest.PipelineStore.validatePipeline(PipelineStore.java:154) ~[elasticsearch-5.1.2.jar:5.1.2]
at org.elasticsearch.ingest.PipelineStore.put(PipelineStore.java:133) ~[elasticsearch-5.1.2.jar:5.1.2]
当 Elasticsearch 在 Solaris 中运行时会发生此问题,在 Linux 的情况下相同的请求工作正常。 我究竟做错了什么? 有人可以帮我解决这个问题吗?
提前致谢。
得到完全相同的错误消息,但是(在不同版本的 elasticsearch 和)查询错误时
数据格式(被误解的文档https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-create-index.html :“请求正文”应为纯 JSON - 无意解释HTTP 请求正文)
或在 URL 路径中使用旧语法(就在 URL 中的“index”之后):
curl -XPUT -H "Content-Type: application/json" http://host:port/index/ _mapping/_doc -d " mappings= @mymapping.json"
只需删除“映射=”和尾随路径!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.