Move a one node index to a different machine

I currently have a one node ES index that resides on a machine at
engineyard. I want to move this index elsewhere but the indexing task
could take upward of 24 hours so I was hoping that I could just move the
files in the index to a different node. I have read previous threads on
this topic that were complicated by that fact that the index was
distributed. In my case it is just one location on an EBS drive. Just
moving the files seems to break the ES index as it just shuffled records
around when I started ES up (I think I missed some metadata). Is there a
better way to do this?

Thanks,
-=Josh

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Hey Josh,

did you flush before moving the index?
(http://www.elasticsearch.org/guide/reference/api/admin-indices-flush.html)
I am wondering if you are indexing into that node while you are doing this.
You should be able to just copy your entire data directory etc. from one
machine to another though.

The other possibility would be to start up another node on the target
machine and then exclude the index from the machine it's on right now see

http://www.elasticsearch.org/guide/reference/index-modules/allocation.html

and look for "_ip"

hope that helps?

simon

On Monday, March 4, 2013 6:28:33 AM UTC+1, Josh Cutler wrote:

I currently have a one node ES index that resides on a machine at
engineyard. I want to move this index elsewhere but the indexing task
could take upward of 24 hours so I was hoping that I could just move the
files in the index to a different node. I have read previous threads on
this topic that were complicated by that fact that the index was
distributed. In my case it is just one location on an EBS drive. Just
moving the files seems to break the ES index as it just shuffled records
around when I started ES up (I think I missed some metadata). Is there a
better way to do this?

Thanks,
-=Josh

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Thank you, I did not flush the indices. I'll give that a try and I'm
betting it will fix my problem.

Cheers,
-=Josh

On Mon, Mar 4, 2013 at 4:16 AM, simonw simon.willnauer@elasticsearch.comwrote:

Hey Josh,

did you flush before moving the index? (
http://www.elasticsearch.org/guide/reference/api/admin-indices-flush.html)
I am wondering if you are indexing into that node while you are doing this.
You should be able to just copy your entire data directory etc. from one
machine to another though.

The other possibility would be to start up another node on the target
machine and then exclude the index from the machine it's on right now see

http://www.elasticsearch.org/guide/reference/index-modules/allocation.html

and look for "_ip"

hope that helps?

simon

On Monday, March 4, 2013 6:28:33 AM UTC+1, Josh Cutler wrote:

I currently have a one node ES index that resides on a machine at
engineyard. I want to move this index elsewhere but the indexing task
could take upward of 24 hours so I was hoping that I could just move the
files in the index to a different node. I have read previous threads on
this topic that were complicated by that fact that the index was
distributed. In my case it is just one location on an EBS drive. Just
moving the files seems to break the ES index as it just shuffled records
around when I started ES up (I think I missed some metadata). Is there a
better way to do this?

Thanks,
-=Josh

--
You received this message because you are subscribed to a topic in the
Google Groups "elasticsearch" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/elasticsearch/EX8xmdxLY_c/unsubscribe?hl=en-US
.
To unsubscribe from this group and all its topics, send an email to
elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.