how to move elasticsearch data from one server to another

后端 未结 12 1467
悲哀的现实
悲哀的现实 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:24

    I tried on ubuntu to move data from ELK 2.4.3 to ELK 5.1.1

    Following are the steps

    $ sudo apt-get update
    
    $ sudo apt-get install -y python-software-properties python g++ make
    
    $ sudo add-apt-repository ppa:chris-lea/node.js
    
    $ sudo apt-get update
    
    $ sudo apt-get install npm
    
    $ sudo apt-get install nodejs
    
    $ npm install colors
    
    $ npm install nomnom
    
    $ npm install elasticdump
    

    in home directory goto

    $ cd node_modules/elasticdump/
    

    execute the command

    If you need basic http auth, you can use it like this:

    --input=http://name:password@localhost:9200/my_index
    

    Copy an index from production:

    $ ./bin/elasticdump --input="http://Source:9200/Sourceindex" --output="http://username:password@Destination:9200/Destination_index"  --type=data
    

提交回复
热议问题