将构建数据导入Elasticsearch时出错

iezvtpos  于 2022-12-17  发布在  ElasticSearch
关注(0)|答案(1)|浏览(346)

我是新来的ElasticSearch。
我尝试使用以下命令向Elasticsearch中插入大量数据:

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

但我得到了以下错误:
{“索引”:{"索引”:“莎士比亚”," ID”:“111394”,“状态”:503,“错误”:{“类型”:“不可用碎片异常”,“原因”:“[莎士比亚][0]主碎片不活动超时:[1 m],请求:[批量切分请求[[shakespeare][0]]包含[111396]个请求]"}}}
有什么问题吗?你知道吗?

h9vpoimq

h9vpoimq1#

检查一下你的ElasticSearch,看看碎片为什么不活跃。
例如:
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

相关问题