简体   繁体   English

如何仅将 1 个索引从 ElasticSearch 集群迁移到 OpenSearch 集群?

[英]How to migrate only 1 index from ElasticSearch cluster to OpenSearch cluster?

I have a ElasticSearch cluster which has many indexes, and each index serves an independent purpose and is heavy size.我有一个 ElasticSearch 集群,它有很多索引,每个索引都有独立的用途,而且很大。

I have a OpenSearch Cluster and want to migrate only 1 index from the ES cluster to the OS cluster.我有一个 OpenSearch 集群,只想将 1 个索引从 ES 集群迁移到操作系统集群。

All the migration strategies from ES to OS i found on the inte.net migrates all the indexes.我在 inte.net 上找到的从 ES 到 OS 的所有迁移策略都会迁移所有索引。 Migrating all the indexes will be a time consuming and redundant.迁移所有索引将是一项耗时且多余的工作。

Is there a better way to migrate only 1 required index?有没有更好的方法只迁移 1 个必需的索引?

You could set up manual snapshots to s3 and restore the specific index as below您可以设置手动快照到 s3 并恢复特定索引,如下所示

curl -XPOST 'domain-endpoint/_snapshot/my-snapshot-repo/2020-snapshot/_restore' -d '{"indices": "my-index"}' -H 'Content-Type: application/json'

Note: You need to register OS with same snapshot repo of ES for _restore to work and there will be little data loss between time of snapshot and restore commands run注意:您需要使用与 ES 相同的快照存储库注册 OS 才能使 _restore 工作,并且在快照时间和运行恢复命令之间几乎不会丢失数据

Ref: https://docs.aws.amazon.com/opensearch-service/latest/developerguide/managedomains-snapshots.html#managedomains-snapshot-restore参考: https://docs.aws.amazon.com/opensearch-service/latest/developerguide/managedomains-snapshots.html#managedomains-snapshot-restore

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 将数据从 AWS OpenSearch 迁移到 Elasticsearch - Migrate data from AWS OpenSearch to Elasticsearch 如何在 OpenSearch 多节点集群中更改管理员密码? - How to change admin password in OpenSearch multi-node cluster? 如何将实时生产 kubernetes 集群迁移到另一个集群,同时最大限度地减少停机时间? - How can I migrate a live production kubernetes cluster to another cluster while minimizing downtime? 如何为 AWS Elasticsearch 服务增加 _cluster/settings/cluster.max_shards_per_node - How to increase _cluster/settings/cluster.max_shards_per_node for AWS Elasticsearch Service 如何从现有集群导出 kubeconfig 文件? - How to export kubeconfig file from existing cluster? OpenSearch/ElasticSearch - 仅使用通配符删除别名的授权错误 - OpenSearch/ElasticSearch - Authorisation error removing alias using only a wildcard 如何从 Terraform 中的 GCP 集群中删除外部 IP - How to remove external IP from GCP cluster in Terraform 如何从 K8s 中获取 Kube.netes 集群名称 API - How to get Kubernetes cluster name from K8s API 当所有步骤都完成时,如何从 Lambda 终止 EMR 集群? - How to terminate an EMR Cluster from Lambda when all Steps are COMPLETE? 尝试查询 AWS ElasticSearch 集群时出现 403 Forbidden - 403 Forbidden when trying to query AWS ElasticSearch cluster
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM