我刚刚在 ElasticCloud 上设置了一个新的 ElasticSearch 集群,我正在尝试遵循帮助文档 https://cloud.elastic.co/#/help/.
它说您可以按如下方式发布文档:
curl https://<id>.<region>.aws.found.io:9243/my_index/my_type -XPOST -d '{"title": "One", "tags": ["ruby"] }'
所以我用我自己的 URL 尝试这个,但我得到:
{"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}
我还需要先做些什么吗?帮助文档没有提到任何额外的步骤。
身份验证可以以 basic-auth 格式完成:
https://username:password@<id>.<region>.found.io:9243
在 Elasticsearch 5.0 及更高版本中,可以通过 Kibana 管理用户和角色。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)