作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试运行 Elasticsearch 并使用以下命令来放置数据-
'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]]"
}
}
},
我尝试增加队列大小-
threadpool.search.queue_size: 100000
但我仍然得到同样的错误。
最佳答案
您遇到的问题是因为批量操作队列已满。
一个node ES有很多线程池,generic,search,index,suggest,bulk等。在您的情况下,问题是由于批量操作队列已满。
尝试调整批量操作线程池的队列大小:
thread_pool.bulk.queue_size: 100
或者减少您一次发送的批量操作的数量。
有关详细信息,请参阅 https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-threadpool.html
关于elasticsearch - 拒绝执行 org.elasticsearch.transport.TransportService 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37855803/
我正在尝试运行 Elasticsearch 并使用以下命令来放置数据- 'curl -XPOST http://localhost:9200/_bulk?pretty --data-binary @d
我是一名优秀的程序员,十分优秀!