quickshekhar
quickshekhar

Reputation: 11

Remote reindex API AWS ElasticSearch Null Pointer Exception

I am trying to move one index from an older cluster with ES 5.3 to different cluster ES 7.10 using remote reindexing api both are in the same VPC

curl -X POST \https://target.com/_reindex \
-H 'content-type: application/json' \
-d '{
  "source": {
    "remote": {
      "host": "https://source.com:443"
    },
    "index": "ind1"
  },
  "dest": {
    "index": "ind1"
  }
}'

I am getting this error

{"error":{"root_cause":[{"type":"null_pointer_exception","reason":null}],"type":"null_pointer_exception","reason":null},"status":500}

I cannot just take the snapshot and migrate as 5.3 indices aren't supported at 7.10

Upvotes: 0

Views: 1111

Answers (1)

hamid bayat
hamid bayat

Reputation: 2179

Reindex requires _source to be enabled for all documents in the source indices. it seems you disable _source and you could not reindex from this indices. https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-source-field.html

Upvotes: 1

Related Questions