how to move elasticsearch data from one server to another

后端 未结 12 1468
悲哀的现实
悲哀的现实 2020-12-12 12:27

How do I move Elasticsearch data from one server to another?

I have server A running Elasticsearch 1.1.1 on one local node with mul

12条回答
  •  青春惊慌失措
    2020-12-12 13:23

    If anyone encounter the same issue, when trying to dump from elasticsearch <2.0 to >2.0 you need to do:

    elasticdump --input=http://localhost:9200/$SRC_IND --output=http://$TARGET_IP:9200/$TGT_IND --type=analyzer
    elasticdump --input=http://localhost:9200/$SRC_IND --output=http://$TARGET_IP:9200/$TGT_IND --type=mapping
    elasticdump --input=http://localhost:9200/$SRC_IND --output=http://$TARGET_IP:9200/$TGT_IND --type=data --transform "delete doc.__source['_id']"
    

提交回复
热议问题