gpt4 book ai didi

elasticsearch - 将 "repository-s3"插件用于 ElasticSearch 时出错

转载 作者:行者123 更新时间:2023-12-01 08:48:48 29 4
gpt4 key购买 nike

我正在尝试将 elasticsearch 节点的快照存储库的配置设置为 S3。

我已经安装了 “存储库-s3” Elasticsearch 插件。

PUT http://<username>:<password>@<elasticsearch-instance-ip>:9200/_snapshot/s3_repository?verify=false

{
"type": "s3",
"settings": {
"bucket": "bucket-name",
"region": "eu-west-1",
"access_key": "****",
"secret_key": "****"
}
}

回应是:
{
"error": {
"root_cause": [
{
"type": "repository_exception",
"reason": "[s3_repository] failed to create repository"
}
],
"type": "repository_exception",
"reason": "[s3_repository] failed to create repository",
"caused_by": {
"type": "illegal_argument_exception",
"reason": "Setting [access_key] is insecure, but property [allow_insecure_settings] is not set"
}
},
"status": 500
}

我尝试在 elasticsearch.yml 中应用 allow_insecure_settings 设置配置文件,但这不起作用。

仅供引用,我正在使用 X-Pack插入

有什么建议?

最佳答案

vim config/jvm.options 

添加以下行:
-Des.allow_insecure_settings=true
它对我有用。有一个未记录的系统属性:
https://github.com/elastic/elasticsearch/issues/26589

关于elasticsearch - 将 "repository-s3"插件用于 ElasticSearch 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48260243/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com