Tutorial, how to, guide, standard procedure to upgrade ES from 0.9 to 1.0?


(Mariano González) #1

Hi guys.
I need to upgrade my existing and working 0.9 elasticsearch installation to
v1.0. Now, I've been searching for a tutorial or guide, but just found some
tips and items to take note of. Backup all the existing data and downtime.

So, is there a guide to follow? is it enough to backup /data dir and
upgrade /bin and /lib dirs?

Hope someone has upgraded and can help me out here.
Thanks!!

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/fe0eaea1-9790-427f-bdb2-5297b52b4212%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(Mark Walkom) #2

It'll depend a lot on the version you are running in 0.90.N. due to
underlying lucene changes

We rebuilt our cluster and reindexed, as we took the chance to make a few
changes to data and cluster structures and we had the capacity.

Regards,
Mark Walkom

Infrastructure Engineer
Campaign Monitor
email: markw@campaignmonitor.com
web: www.campaignmonitor.com

On 26 March 2014 00:38, Mariano González <gonzalez.mariano.gabriel@gmail.com

wrote:

Hi guys.
I need to upgrade my existing and working 0.9 elasticsearch installation
to v1.0. Now, I've been searching for a tutorial or guide, but just found
some tips and items to take note of. Backup all the existing data and
downtime.

http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/breaking-changes.html

http://stackoverflow.com/questions/9497223/how-to-upgrade-a-running-elasticsearch-older-instance-to-a-newer-version
..
.

So, is there a guide to follow? is it enough to backup /data dir and
upgrade /bin and /lib dirs?

Hope someone has upgraded and can help me out here.
Thanks!!

--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/fe0eaea1-9790-427f-bdb2-5297b52b4212%40googlegroups.comhttps://groups.google.com/d/msgid/elasticsearch/fe0eaea1-9790-427f-bdb2-5297b52b4212%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAEM624Yni1m4OZ-%3DkZgP%2BqsW22_PWmcoQGuUc_L2eJkP0wZFpw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


(Binh Ly-2) #3

You'll need to do a full cluster restart from .90.x to 1.x (i.e. need to
bring down all nodes). There is some information here to help reduce
recovery/startup churn:

http://www.elasticsearch.org/webinars/elasticsearch-pre-flight-checklist/

But in general:

  1. Stop all queries/indexing jobs

  2. Flush your indexes: curl -XPOST "localhost:9200/_flush"

  3. Shutdown your cluster: curl -XPOST "localhost:9200/_shutdown"

  4. Backup all your data/ and config/ folders (from all nodes if you have
    multiple data folders/nodes) - This is important in case the upgrade fails!

  5. Per node, uninstall your current ES. Be careful not to delete the data
    folders and your config/ files

  6. Per node, install new ES and pull in your config/* files from previous
    install

  7. Verify all config files in all nodes and all data folders

  8. Start all nodes one by one

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/efeccb5f-9463-4a49-a3ea-f8ea40ec9d83%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(system) #4