你的浏览器禁用了JavaScript, 请开启后刷新浏览器获得更好的体验!
输入关键字进行搜索
搜索:
没有找到相关结果
rochy - rochy_he
赞同来自:
POST _reindex { "source": { "remote": { "host": "http://otherhost:9200", "username": "user", "password": "pass" }, "index": "source", "query": { "match": { "test": "data" } } }, "dest": { "index": "dest" } }
input { # Read all documents from Elasticsearch matching the given query elasticsearch { hosts => "localhost" query => '{ "query": { "match": { "statuscode": 200 } }, "sort": [ "_doc" ] }' } }
zqc0512 - andy zhou
God_lockin
要回复问题请先登录或注册
90后IT工作者
3 个回复
rochy - rochy_he
赞同来自:
2. 使用 logstash;
3. 自己代码实现:建立两个集群的client,然后将一个集群的索引的数据使用 scroll的方式遍历出来,在使用bulk方式提交到另一个集群即可。
zqc0512 - andy zhou
赞同来自:
snapshot is better than reindex.
God_lockin
赞同来自:
1. A集群(原集群)下线
2. 找到A集群的data目录
3. 把里面的数据全部拷贝到B集群(目标集群)
4. 把B集群启动起来让他自动扫数据做重分片