Я пытаюсь включить безопасность для моего облака ES. Я следую этим инструкциям:
https://www.elastic.co/guide/en/elasticsearch/reference/7.5/configuring-security.html
и застрял в точке 6. При попытке запустить bin/elasticsearch-setup-passwords interactive
я получил ошибку:
Failed to determine the health of the cluster running at http://XXX:9200
Unexpected response code [503] from calling GET http://XXX:9200/_cluster/health?pretty
Cause: master_not_discovered_exception
It is recommended that you resolve the issues with your cluster before running elasticsearch-setup-passwords.
It is very likely that the password changes will fail when run against an unhealthy cluster.
Do you want to continue with the password setup process [y/N]
Я пытаюсь проверить состояние своего экземпляра ES:
curl http://XXX:9200/_cluster/health?pretty
и получить
{
"error" : {
"root_cause" : [
{
"type" : "security_exception",
"reason" : "missing authentication credentials for REST request [/_cluster/health?pretty]",
"header" : {
"WWW-Authenticate" : "Basic realm=\"security\" charset=\"UTF-8\""
}
}
],
"type" : "security_exception",
"reason" : "missing authentication credentials for REST request [/_cluster/health?pretty]",
"header" : {
"WWW-Authenticate" : "Basic realm=\"security\" charset=\"UTF-8\""
}
},
"status" : 401
}
Итак, похоже, я не могу установить пароль, потому что не могу аутентифицироваться :)?