你好,老师:
我配置x-pack之后,每次生成密码都会报错,请问是什么原因呢?
[@es-master1 ~]# /usr/local/elasticsearch/bin/elasticsearch-setup-passwords interactive --verbose
Trying user password change call http://10.13.65.162:9200/_security/user/apm_system/_password?pretty
{
"error" : {
"root_cause" : [
{
"type" : "status_exception",
"reason" : "Cluster state has not been recovered yet, cannot write to the [null] index"
}
],
"type" : "status_exception",
"reason" : "Cluster state has not been recovered yet, cannot write to the [null] index"
},
"status" : 503
}
Unexpected response code [503] from calling PUT http://10.13.65.162:9200/_security/user/apm_system/_password?pretty
Cause: Cluster state has not been recovered yet, cannot write to the [null] index
Possible next steps:
* Try running this tool again.
* Try running with the --verbose parameter for additional messages.
* Check the elasticsearch logs for additional error details.
* Use the change password API manually.
ERROR: Failed to set password for user [apm_system].
[@es-master1 ~]#
展开