1、解压
https://github.com/medcl/esm-abandoned
https://github.com/medcl/esm-abandoned/releases
tar xf linux64.tar.gz
1、备份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
2、新建索引
es.sh
3、导入
./esm -d http://172.16.20.20:9201 -y "petition_data6" -c 5000 -b 5 --refresh -i=./dump.bin
#删除索引
#curl -XDELETE '172.16.20.20:9201/petition_data4?pretty'