Upgrade elasticsearch using the service wrapper?

Hi,

Does anyone know how to upgrade elasticsearch by using the service wrapper?

I tried googling around and did not find anything documented.

Thanks,
Allen Chan

--
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/2b7a350b-7f62-4c5e-b51b-ab60bb645a15%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

That is pretty straightforward, copy the service wrapper into the bin
folder of the new ES version, adjust paths and symlinks, and there you are.

Stopping and starting the cluster and migrating the index data is no
difference to not using the service wrapper.

Jörg

--
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/CAKdsXoEsGf%2BQKx-bm1sGoXX_O-Nfu_i2O4v%3DH9yiQcJYEg1B5Q%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

i never did an upgrade before. Are there instructions for migrating the
index data?

On Mon, Dec 30, 2013 at 1:35 PM, joergprante@gmail.com <
joergprante@gmail.com> wrote:

That is pretty straightforward, copy the service wrapper into the bin
folder of the new ES version, adjust paths and symlinks, and there you are.

Stopping and starting the cluster and migrating the index data is no
difference to not using the service wrapper.

Jörg

--
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/CAKdsXoEsGf%2BQKx-bm1sGoXX_O-Nfu_i2O4v%3DH9yiQcJYEg1B5Q%40mail.gmail.com
.

For more options, visit https://groups.google.com/groups/opt_out.

--
Allen Michael Chan

--
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/CAPTHB%2BDu%3D8JtMg%3DsVmcD_ovzVvVGVV_cJGr-bo-xb-%3D6suUzAQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

There should be no need to migrate the index data unless you are moving
between two major Lucene versions. Since elasticsearch has never used
Lucene 2, the old indices should be readable.

Best practices dictate that you place your data directory outside of the
elasticsearch installation so that you can maintain the same directory
between installations.

--
Ivan

On Mon, Dec 30, 2013 at 2:39 PM, allen chan allen.michael.chan@gmail.comwrote:

i never did an upgrade before. Are there instructions for migrating the
index data?

On Mon, Dec 30, 2013 at 1:35 PM, joergprante@gmail.com <
joergprante@gmail.com> wrote:

That is pretty straightforward, copy the service wrapper into the bin
folder of the new ES version, adjust paths and symlinks, and there you are.

Stopping and starting the cluster and migrating the index data is no
difference to not using the service wrapper.

Jörg

--
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/CAKdsXoEsGf%2BQKx-bm1sGoXX_O-Nfu_i2O4v%3DH9yiQcJYEg1B5Q%40mail.gmail.com
.

For more options, visit https://groups.google.com/groups/opt_out.

--
Allen Michael Chan

--
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/CAPTHB%2BDu%3D8JtMg%3DsVmcD_ovzVvVGVV_cJGr-bo-xb-%3D6suUzAQ%40mail.gmail.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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQBYv4OEWiyGQSODxRvX-EgisJ%2BNvLR%2BKx%3DV40hO6rBDFg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

I missed the part about placing the data directory outside of the
elasticsearch installation. To correct it, will it be as simple as doing a
mv command to move all the files to new dir and modify the elasticsearch
config to use new dir?

On Mon, Dec 30, 2013 at 2:48 PM, Ivan Brusic ivan@brusic.com wrote:

There should be no need to migrate the index data unless you are moving
between two major Lucene versions. Since elasticsearch has never used
Lucene 2, the old indices should be readable.

Best practices dictate that you place your data directory outside of the
elasticsearch installation so that you can maintain the same directory
between installations.

--
Ivan

On Mon, Dec 30, 2013 at 2:39 PM, allen chan allen.michael.chan@gmail.comwrote:

i never did an upgrade before. Are there instructions for migrating the
index data?

On Mon, Dec 30, 2013 at 1:35 PM, joergprante@gmail.com <
joergprante@gmail.com> wrote:

That is pretty straightforward, copy the service wrapper into the bin
folder of the new ES version, adjust paths and symlinks, and there you are.

Stopping and starting the cluster and migrating the index data is no
difference to not using the service wrapper.

Jörg

--
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/CAKdsXoEsGf%2BQKx-bm1sGoXX_O-Nfu_i2O4v%3DH9yiQcJYEg1B5Q%40mail.gmail.com
.

For more options, visit https://groups.google.com/groups/opt_out.

--
Allen Michael Chan

--
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/CAPTHB%2BDu%3D8JtMg%3DsVmcD_ovzVvVGVV_cJGr-bo-xb-%3D6suUzAQ%40mail.gmail.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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQBYv4OEWiyGQSODxRvX-EgisJ%2BNvLR%2BKx%3DV40hO6rBDFg%40mail.gmail.com
.

For more options, visit https://groups.google.com/groups/opt_out.

--
Allen Michael Chan

--
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/CAPTHB%2BAiGNd9UPda8kEQBTTiT6yq0x6jZAyy8NwfAo%3Dj%3DDurHQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

As for all updates, you should consider that if you are unable to use the
new version for whatever reason, there is no guarantee that you can put the
data back to the old version.

So please consider a backup of your data, and do not forget to read the
changelog / release notes of the new version how to update.

Jörg

--
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/CAKdsXoFyyjqepfRHiHDe%3DpvwwNE2fjqpc5g%2BmZw2q8thsz4R7Q%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

There is no explicit documentation about where to place the data directory,
but I find it best if you should keep as much as possible
(configs/data/logs) from outside of the installation directory. I believe
installing from a deb/rpm package might enforce a directory structure
(never tried).

The relevant config param is path.data

https://github.com/elasticsearch/elasticsearch/blob/master/config/elasticsearch.yml#L147

Cheers,

Ivan

On Mon, Dec 30, 2013 at 4:15 PM, allen chan allen.michael.chan@gmail.comwrote:

I missed the part about placing the data directory outside of the
elasticsearch installation. To correct it, will it be as simple as doing a
mv command to move all the files to new dir and modify the elasticsearch
config to use new dir?

On Mon, Dec 30, 2013 at 2:48 PM, Ivan Brusic ivan@brusic.com wrote:

There should be no need to migrate the index data unless you are moving
between two major Lucene versions. Since elasticsearch has never used
Lucene 2, the old indices should be readable.

Best practices dictate that you place your data directory outside of the
elasticsearch installation so that you can maintain the same directory
between installations.

--
Ivan

On Mon, Dec 30, 2013 at 2:39 PM, allen chan <allen.michael.chan@gmail.com

wrote:

i never did an upgrade before. Are there instructions for migrating the
index data?

On Mon, Dec 30, 2013 at 1:35 PM, joergprante@gmail.com <
joergprante@gmail.com> wrote:

That is pretty straightforward, copy the service wrapper into the bin
folder of the new ES version, adjust paths and symlinks, and there you are.

Stopping and starting the cluster and migrating the index data is no
difference to not using the service wrapper.

Jörg

--
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/CAKdsXoEsGf%2BQKx-bm1sGoXX_O-Nfu_i2O4v%3DH9yiQcJYEg1B5Q%40mail.gmail.com
.

For more options, visit https://groups.google.com/groups/opt_out.

--
Allen Michael Chan

--
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/CAPTHB%2BDu%3D8JtMg%3DsVmcD_ovzVvVGVV_cJGr-bo-xb-%3D6suUzAQ%40mail.gmail.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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQBYv4OEWiyGQSODxRvX-EgisJ%2BNvLR%2BKx%3DV40hO6rBDFg%40mail.gmail.com
.

For more options, visit https://groups.google.com/groups/opt_out.

--
Allen Michael Chan

--
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/CAPTHB%2BAiGNd9UPda8kEQBTTiT6yq0x6jZAyy8NwfAo%3Dj%3DDurHQ%40mail.gmail.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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQBBEbg6c9pugPnJH2ymZUYo_eUs%3DYPBYSt6AR7AkBSo5g%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.