居然是你

elasticsearch-head连接不上es

Elasticsearch | 作者 Shaobin | 发布于2020年01月28日 | 阅读数:4978

已经在es的elasticsearch.yml文件中添加
http.cors.enabled: true
http.cors.allow-origin: "*"
但还是连接不上,请求会报这个错误
{
"error": {
"root_cause": [{
"type": "cluster_block_exception",
"reason": "blocked by: [SERVICE_UNAVAILABLE/1/state not recovered / initialized];"
}],
"type": "cluster_block_exception",
"reason": "blocked by: [SERVICE_UNAVAILABLE/1/state not recovered / initialized];"
},
"status": 503
}

是在mac环境弄的
已邀请:

Charele - Cisco4321

赞同来自:

这个不是head的原因,是es还没有启动成完成。
state not recovered / initialized

要回复问题请先登录注册