elasticsearch遷移數據


 

1、下載esm工具

https://github.com/medcl/esm-abandoned
https://github.com/medcl/esm-abandoned/releases

tar xf linux64.tar.gz


2、

備份es
cd /root/bin/linux64/
./esm -s http://10.33.8.103:9201 -x "petition_data" -b 5 --count=5000 --sliced_scroll_size=10 --refresh -o=./es_backup.bin

導入
./esm -d http://172.16.20.20:9201 -y "petition_data6" -c 5000 -b 5 --refresh -i=./dump.bin

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM