Elasticdump fails to write back into elasticsearch

I'm trying out Elasticdump - I'm finding that:

  1. Loading Elasticsearch
  2. Elasticdumping mapping and data
  3. Delete elasticsearch data/indexes
  4. 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

2 Likes

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.