Hi my dear,
At first,Let me describe my installation environment
1)Three Nodes in Three docker container
2)after installed es node,the cluster are worked
3)I installed one x-pack in one node,and restart this docker container
4)I try login to elasticsearch by the port 9200,the url seems like:
However, it has been prompted to log in, wireless repeat, click Cancel to return the result is
http://192.168.21.21:9200/_cat/health?v
there request result:
{"error":{"root_cause":[{"type":"security_exception","reason":"failed to authenticate user [elastic]","header":{"WWW-Authenticate":"Basic realm="security" charset="UTF-8""}}],"type":"security_exception","reason":"failed to authenticate user [elastic]","header":{"WWW-Authenticate":"Basic realm="security" charset="UTF-8""}},"status":401}
5)so, I try to use the url to change the password,are return the result like step 4:
curl -XPUT -u elastic '192.168.21.21:9200/_xpack/security/user/elastic/_password' -d '{
"password" : "elasticpassword"
}'
**
{"error":{"root_cause":[{"type":"security_exception","reason":"failed to authenticate user [elastic]","header":{"WWW-Authenticate":"Basic realm=\"security\" charset=\"UTF-8\""}}],"type":"security_exception","reason":"failed to authenticate user [elastic]","header":{"WWW-Authenticate":"Basic realm=\"security\" charset=\"UTF-8\""}},"status":401}
Finally I was helpless, and then I according to the URL and do it again, or the same
https://www.elastic.co/guide/en/x-pack/current/security-getting-started.html
please help me , Thks alot.