elasticdump

1 before you dump your data/mapping you should install nodejs,npm

  1. download the nodejs link
  2. realase the tar then source the env

the details : how to install nodejs,npm
2 install elasticdump
(local)

npm install elasticdump
./bin/elasticdump

(global)

npm install elasticdump -g
elasticdump

3 start dump your data
the example :

elasticdump \
  --input=spark1:9200/blogs \
  --output=/home/test/esbackup/blogs_index_mapping.json \
  --type=mapping
elasticdump \
  --input=spark1:9200/blogs \
  --output=/home/test/esbackup/blogs_index_data.json \
  --type=data
發佈了47 篇原創文章 · 獲贊 6 · 訪問量 3萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章