Hi, I'm looking for a way to restore my Elasticsearch-5 snapshot from HDFS onto new Elasticsearch-5 machine.
Few approaches like
Creating a repo from new Elasticsearch5, copying the data from old Elasticsearch repo to new and then accessing the snapshot. Which is the typical approach for FS. But new ES5 didn't recognize the old snapshot (HDFS).
Next Having both new and old Elasticsearch5 functioning with same username. Registering new repo with "path" being same, throws an exception
{"error":{"root_cause":[{"type":"already_closed_exception","reason":"HdfsBlobStore is closed: hdfs://namenode:8020/url"}],"type":"already_closed_exception","reason":"HdfsBlobStore is closed: hdfs://namenode:8020/url"},"status":500}
Now I am trying with my previous approach itself.
i.e., copying directory content in HDFS filesystem.
Tried decoding indices sought off.
A new error popped up at the end -
{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"Unexpected field [routing_num_shards]"}],"type":"illegal_argument_exception","reason":"Unexpected field [routing_num_shards]"},"status":400}
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.