使用 nohup 或 disown 如果你要让某个进程运行在后台。

elasticsearch提示 Data too large

Elasticsearch | 作者 sailershen | 发布于2018年12月31日 | 阅读数:25407

Elasticsearch.log里提示:
[WARN ][r.suppressed             ] path: /, params: {}
org.elasticsearch.common.breaker.CircuitBreakingException: [parent] Data too large, data for [<http_request>] would be [1454565650/1.3gb], which is larger than the limit of [1454427340/1.3gb], usages [request=0/0b, fielddata=568/568b, in_flight_requests=0/0b, accounting=1454565082/1.3gb]

 
 
我用curl -XPOST 'http://localhost:9200/elasticsearch/_cache/clear' -d '{ "fielddata": "true" }'命令,提示:
{"error":"Content-Type header [application/x-www-form-urlencoded] is not supported","status":406}

 kinaba里也有这样的提示,页面打不开,请教如何处理?谢谢
 
已邀请:

bellengao - 博客: https://www.jianshu.com/u/e0088e3e2127

赞同来自: sailershen

jvm堆内存不够当前查询加载数据所以会报data too large, 请求被熔断,indices.breaker.request.limit默认为jvm heap的60%, 看一下集群里这个参数的设置。文档见:https://www.elastic.co/guide/e ... .html
下面的那个curl操作添加下header:  curl -XPOST -H "Content-Type:application/json"

sailershen

赞同来自:

谢谢回答。
我用curl  -H "Content-Type:application/json" -XPOST 'http://localhost:9200/elasticsearch/_cache/clear' -d '{ "fielddata": "true" }'  命令的结果:
{"error":{"root_cause":[{"type":"index_not_found_exception","reason":"no such index","resource.type":"index_or_alias","resource.id":"elasticsearch","index_uuid":"_na_","index":"elasticsearch"}],"type":"index_not_found_exception","reason":"no such index","resource.type":"index_or_alias","resource.id":"elasticsearch","index_uuid":"_na_","index":"elasticsearch"},"status":404}

简单的把indices.breaker.request.limit的值 设置为jvm heap的100%或者200%,有效吗?
还有,这个值在哪里设置,是/etc/elasticsearch/jvm.options里?

sailershen

赞同来自:

非常感谢,我运行清理fileddata cache的命令,结果是:
{"error":{"root_cause":[{"type":"index_not_found_exception","reason":"no such index","resource.type":"index_or_alias","resource.id":"elasticsearch","index_uuid":"_na_","index":"elasticsearch"}],"type":"index_not_found_exception","reason":"no such index","resource.type":"index_or_alias","resource.id":"elasticsearch","index_uuid":"_na_","index":"elasticsearch"},"status":404}
找不到 index是什么原因?

sailershen

赞同来自:

使用以上命令清空缓存以后,kibana仍然提示出错,kibana的日志:
kibana[4844]: FATAL  [circuit_breaking_exception] [parent] Data too large, data for [<http_request...=145446
Hint: Some lines were ellipsized, use -l to show in full.
 
问题还是存在 。

要回复问题请先登录注册