Re: upgrade elasticsearch using the service wrapper?

2013-12-31 Thread Ivan Brusic
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.c...@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 i...@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.c...@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, joergpra...@gmail.com 
 joergpra...@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+unsubscr...@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+unsubscr...@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+unsubscr...@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+unsubscr...@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+unsubscr...@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.


Re: upgrade elasticsearch using the service wrapper?

2013-12-30 Thread joergpra...@gmail.com
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+unsubscr...@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.


Re: upgrade elasticsearch using the service wrapper?

2013-12-30 Thread allen chan
i never did an upgrade before. Are there instructions for migrating the
index data?


On Mon, Dec 30, 2013 at 1:35 PM, joergpra...@gmail.com 
joergpra...@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+unsubscr...@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+unsubscr...@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.


Re: upgrade elasticsearch using the service wrapper?

2013-12-30 Thread allen chan
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 i...@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.c...@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, joergpra...@gmail.com 
 joergpra...@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+unsubscr...@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+unsubscr...@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+unsubscr...@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+unsubscr...@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.