已经在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环境弄的
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环境弄的
1 个回复
Charele - Cisco4321
赞同来自:
state not recovered / initialized