跳到主要内容 跳到补充内容

在 8.0.x 中所用 Elasticsearch 集群之外设置新的 Elasticsearch 集群

您可以使用 Reindex API 来将旧的 Elasticsearch 集群的索引迁移到新的 Elasticsearch 集群。

有关更多信息,请参阅https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-reindex.html#reindex-from-remote

步骤

  1. 将以下配置参数添加到新的 Elasticsearch 集群的 elasticsearch.yml 文件,以支持其访问旧的 Elasticsearch 集群:
    reindex.remote.whitelist: oldhost:*
  2. oldhost 替换为 Elasticsearch 主机。
    不要指定 Elasticsearch 端口,但将值设为 *,否则可能收到以下错误消息:"[oldhost:9200] not whitelisted in reindex.remote.whitelist"
  3. 重新启动 Elasticsearch 集群。

本页面有帮助吗?

如果您发现此页面或其内容有任何问题 – 打字错误、遗漏步骤或技术错误 – 请告诉我们如何改进!