拒绝执行org.elasticsearch.transport.TransportService错误 [英] Rejected Execution of org.elasticsearch.transport.TransportService Error
问题描述
我正在尝试运行弹性搜索,并使用以下命令尝试放置数据-
I am trying to run elastic search and using the following command I am trying to put data-
'curl -XPOST http://localhost:9200/_bulk?pretty --data-binary @data_.json'
但是我遇到以下错误-
"create" : {
"_index" : "appname-docm",
"_type" : "HYD",
"_id" : "AVVYfsk7M5xgvmX8VR_B",
"status" : 429,
"error" : {
"type" : "es_rejected_execution_exception",
"reason" : "rejected execution of org.elasticsearch.transport.TransportService$4@c8998f4 on EsThreadPoolExecutor[bulk, queue capacity = 50, org.elasticsearch.common.util.concurrent.EsThreadPoolExecutor@553aee29[Running, pool size = 4, active threads = 4, queued tasks = 50, completed tasks = 0]]"
}
}
},
我尝试将队列大小增加-
I tried increasing the queue size by-
threadpool.search.queue_size: 100000
但是我仍然遇到相同的错误。
But I still get the same error.
推荐答案
您遇到的问题是因为批量操作队列已满。
The problem that you are getting is because the bulk operations queue is full.
节点ES具有许多线程池,包括通用,搜索,索引,建议,批量等。
您的问题是由于批量操作的队列是
A node ES has many threads pools, generic, search, index, suggest, bulk, etc. In your case the problem is due to the queue of bulk operations is full.
尝试调整批量操作线程池的队列大小:
Try adjusting the queue size of thread pool of bulk operation:
thread_pool.bulk.queue_size: 100
或减少所发送的批量操作数量
Or reduce the amount of bulk operations that you are sending at once.
有关更多详细信息,请参见 https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-threadpool.html
For more details see https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-threadpool.html
这篇关于拒绝执行org.elasticsearch.transport.TransportService错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!