I'm using the snapshot/restore feature of Elasticsearch, together with the
Azure plugin to backup snapshots to Azure blob storage. Everything works
when doing snapshots from a cluster and restoring to the same cluster. Now
I'm in a situation where I want to restore an entirely new cluster (let's
call that cluster b) from a snapshot generated from cluster a. When I run a
restore request on cluster b, I get a 404. Doing a _status call on the
snapshot, I get the same error:
The new cluster is configured with the Azure plugin and the same settings for Azure. I guess the error is caused by the fact, that Elasticsearch generates some metadata about the snapshots and store them locally in a the _snapshot index and this index is not on the new cluster. The same error is happening if I delete the data dir on cluster a and try to restore cluster a from a snapshot.
I'm using the snapshot/restore feature of Elasticsearch, together with the Azure plugin to backup snapshots to Azure blob storage. Everything works when doing snapshots from a cluster and restoring to the same cluster. Now I'm in a situation where I want to restore an entirely new cluster (let's call that cluster b) from a snapshot generated from cluster a. When I run a restore request on cluster b, I get a 404. Doing a _status call on the snapshot, I get the same error:
The new cluster is configured with the Azure plugin and the same settings for Azure. I guess the error is caused by the fact, that Elasticsearch generates some metadata about the snapshots and store them locally in a the _snapshot index and this index is not on the new cluster. The same error is happening if I delete the data dir on cluster a and try to restore cluster a from a snapshot.
That was exactly what I was missing. I didn't create the repository named
"elasticsearch_logs" on cluster B. After I created it, the backup runs
smoothly.
Thanks, David!
On Wednesday, January 7, 2015 8:31:08 AM UTC+1, David Pilato wrote:
Did you create the repository on cluster B?
How?
--
David
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
Le 7 janv. 2015 à 08:19, Thomas Ardal <thoma...@gmail.com <javascript:>>
a écrit :
I'm using the snapshot/restore feature of Elasticsearch, together with the
Azure plugin to backup snapshots to Azure blob storage. Everything works
when doing snapshots from a cluster and restoring to the same cluster. Now
I'm in a situation where I want to restore an entirely new cluster (let's
call that cluster b) from a snapshot generated from cluster a. When I run a
restore request on cluster b, I get a 404. Doing a _status call on the
snapshot, I get the same error:
The new cluster is configured with the Azure plugin and the same settings for Azure. I guess the error is caused by the fact, that Elasticsearch generates some metadata about the snapshots and store them locally in a the _snapshot index and this index is not on the new cluster. The same error is happening if I delete the data dir on cluster a and try to restore cluster a from a snapshot.
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.