I'm trying out Elasticdump - I'm finding that:
- Loading Elasticsearch
- Elasticdumping mapping and data
- Delete elasticsearch data/indexes
- Elasticdumping the previously dumped files back into Elasticsearch
Doesn't work. On step 4 the mapping file goes in fine, but not the data file. Here's what I did - the bolded step didn't work.
Step 1 ...
Step 2
elasticdump --input=http://localhost:9200/directory --output /users/afs01/data/my_mapping.json --type=mapping
elasticdump --input=http://localhost:9200/directory --output /users/afs01/data/my_data_mapping.json --type=data
Step 3
curl -XDELETE localhost:9200/directory
Step 4
elasticdump --output=http://localhost:9200/directory --input /users/afs01/data/my_mapping.json --type=mapping
> elasticdump --output=http://localhost:9200/directory --input /users/afs01/data/my_data_mapping.json --type=data
Output of my attempt to dump data back into elasticsearch:
Thu, 22 Dec 2016 01:42:53 GMT | starting dump
Thu, 22 Dec 2016 01:42:53 GMT | got 4 objects from source file (offset: 0)
Thu, 22 Dec 2016 01:42:53 GMT | sent 4 objects to destination elasticsearch, wrote 0
Thu, 22 Dec 2016 01:42:53 GMT | got 0 objects from source file (offset: 4)
Thu, 22 Dec 2016 01:42:53 GMT | Total Writes: 0
Thu, 22 Dec 2016 01:42:53 GMT | dump complete
Any suggestions appreciated!
Al