簡體   English   中英

將 buld 數據導入 Elasticsearch 時出錯

[英]Error during importing buld data into Elasticsearch

我是 Elasticsearch 的新手。

我嘗試使用以下命令將大量數據插入到 Elasticsearch 中:

curl -H "Content-Type: application/json" -XPUT "127.0.0.1:9200/shakespeare/_bulk" --data-binary @shakespeare_8.0.json

但我收到以下錯誤:

{"index":{"_index":"shakespeare","_id":"111394","status":503,"error":{"type":"unavailable_shards_exception","reason":"[莎士比亞][ 0] 主分片不活動超時:[1m],請求:[BulkShardRequest [[shakespeare][0]] 包含 [111396] 個請求]”}}}

它出什么問題了? 任何的想法?

檢查您的彈性搜索,了解該分片未激活的原因。

例如:

yournodeaddress:9200/_cat/shards?v&h=index,shard,prirep,state,ip,node,store,unassigned.reason,unassigned.for,unassigned.details&s=state

還要檢查節點是否空間不足,它可能會阻止分配:

yournodeaddress:9200/_cat/nodes?v&s=ip&h=master,ip,name,uptime,disk.used,disk.total,cpu,load_1m,heap.max,heap.current,heap.percent

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM