ElasticCloud的ElasticSearch身份验证错误? [英] ElasticSearch authentication error with ElasticCloud?
本文介绍了ElasticCloud的ElasticSearch身份验证错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我刚刚在ElasticCloud上设置了一个新的ElasticSearch集群,我正在尝试遵循帮助文档.
I have just set up a new ElasticSearch cluster on ElasticCloud and I am trying to follow the help documentation.
它说您可以按以下步骤发布文档:
It says you can post a document as follows:
curl https://<id>.<region>.aws.found.io:9243/my_index/my_type -XPOST -d '{"title": "One", "tags": ["ruby"] }'
因此,我尝试使用自己的URL尝试此操作,但是我得到了:
So I am trying this with my own URL, but I am getting:
{"error":{"root_cause":[{"type":"security_exception","reason":"action [indices:data/write/index] requires authentication","header":{"WWW-Authenticate":"Basic realm=\"security\" charset=\"UTF-8\""}}],"type":"security_exception","reason":"action [indices:data/write/index] requires authentication","header":{"WWW-Authenticate":"Basic realm=\"security\" charset=\"UTF-8\""}},"status":401}
首先需要做其他事情吗?帮助文档没有提及任何其他步骤.
Is there something else I need to do first? The help documentation doesn't mention any extra steps.
推荐答案
可以使用基本身份验证格式进行身份验证:
The authentication can be done in basic-auth format:
https://username:password@<id>.<region>.found.io:9243
可以在In Elasticsearch 5.0版和更高版本中通过Kibana管理用户和角色.
Users and roles can be managed via Kibana in In Elasticsearch version 5.0 and later.
这篇关于ElasticCloud的ElasticSearch身份验证错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文