[英]Insert documents into elastic search
我在 postman 上使用 PUT http://localhost:9200/task_idx4 創建了這個索引:
{
"settings": {
"index": {
"sort.field": [ "created_at", "id.raw" ],
"sort.order": [ "desc", "desc" ]
}
},
"mappings": {
"properties": {
"id": { "type": "wildcard", "fields": { "raw": { "type": "keyword" }}},
"current_status": { "type": "keyword" },
"version_rev": { "type": "keyword" },
"tracking_id": { "type": "wildcard" },
"invoice_number": { "type": "keyword" },
"created_at": { "type": "date" }
}
}
}
我嘗試使用以下方法將文檔插入此索引:PUT http://localhost:9200/task_idx4/_doc
{
"id": "xxxx",
"current_status": "unassigned",
"version_rev": "xxx",
"tracking_id": "xxx",
"invoice_number": "xxx",
"created_at": "2021-03-23 11:00:05.054595 +00:00"
}
返回的錯誤是:
{
"error": {
"root_cause": [
{
"type": "cluster_block_exception",
"reason": "index [task_idx4] blocked by: [TOO_MANY_REQUESTS/12/disk usage exceeded flood-stage watermark, index has read-only-allow-delete block];"
}
],
"type": "cluster_block_exception",
"reason": "index [task_idx4] blocked by: [TOO_MANY_REQUESTS/12/disk usage exceeded flood-stage watermark, index has read-only-allow-delete block];"
},
"status": 429
}
如何將文檔插入到我的索引中? 謝謝
磁盤使用量超過洪水階段水印
這里的問題是您的硬盤上沒有剩余空間。
您可以使用df
命令進行檢查,但顯然您的磁盤使用率超過 95%,因此您需要騰出一些空間(理想情況下低於 80%)才能索引數據。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.