Re: Solr cloud change collection index directory
On 13/11/2018 22:34, Shawn Heisey wrote: If it's important for you to have the data separated from the program, setting the solr home is in my opinion the right way to go. This separation is achieved by the service installer script that Solr includes, which runs on most operating systems other than Windows. A service installer for Windows is something that's been on my mind to try and pursue, but there's never enough time. The standard (but not only) way to install Solr as a Windows service is using NSSM and there are multiple guides available online. One *could* take these and write a detailed addendum to the Solr Ref Guide "Taking Solr to Production" page but it might be hard to cover the various ways to do this (batch files, Powershell scripts, runnable installers, Win32 vs Win64) and produce a definitive best practice guide. However, perhaps a short paragraph suggesting where else to look might be useful. Cheers Charlie Thanks, Shawn -- Charlie Hull Flax - Open Source Enterprise Search tel/fax: +44 (0)8700 118334 mobile: +44 (0)7767 825828 web: www.flax.co.uk
Re: Solr cloud change collection index directory
Also check SOLR_DATA_HOME REM Path to a directory that Solr will use as root for data folders for each core. REM If not set, defaults to /data. Overridable per core through 'dataDir' core property REM set SOLR_DATA_HOME= Think it should work to shut down Solr, change this variable, move data to the new location and then startup Solr again. Try it in your test environment first :) -- Jan Høydahl, search solution architect Cominvent AS - www.cominvent.com > 13. nov. 2018 kl. 17:31 skrev Erick Erickson : > > Look at all the explanations in your solr.in.cmd since you're running > on Windows. In particular SOLR_HOME, SOLR_DATA_DIR. > > Best, > Erick > On Tue, Nov 13, 2018 at 7:18 AM John Milton wrote: >> >> Hi Solr Team, >> >> I am using Solr cloud in Windows OS. For that I am using following, >> >> 1. Three external Zookeeper servers (3.4.13) >> >> 2. Two Solr cloud nodes (7.5.0) >> >> >> All the created collections are available under the Solr installed >> directory only. >> >> I want to change the data directory into other drives, for example if my >> Solr instance is installed on C drive means, I want to store all the >> collection index on D drive. >> >> How to achieve this in Solr 7.5? Kindly give the suggestion to solve >> this... >> >> >> Thanks, >> John Milton
Re: Solr cloud change collection index directory
On 11/13/2018 8:05 AM, John Milton wrote: All the created collections are available under the Solr installed directory only. I want to change the data directory into other drives, for example if my Solr instance is installed on C drive means, I want to store all the collection index on D drive. Absolutely the easiest way is to move the entire Solr installation to the other drive. The Solr program bits take very little space compared to most indexes, so there should be little downside to that notion. Next easiest is to change the solr home. This is done with the -s option on the commandline. You can also do this with solr.in.cmd as Erick mentioned. This separates Solr's cores (and their index data) from the program, which I think is a great option. Setting the solr data directory, also mentioned by Erick, keeps the core definitions in the solr home and moves the data directories (which includes things like the index) so they are relative to another location. When this feature was first introduced, I thought it was pretty nice, but I have reached a point where I don't really like it, preferring to relocate the whole solr home. If it's important for you to have the data separated from the program, setting the solr home is in my opinion the right way to go. This separation is achieved by the service installer script that Solr includes, which runs on most operating systems other than Windows. A service installer for Windows is something that's been on my mind to try and pursue, but there's never enough time. Thanks, Shawn
Re: Solr cloud change collection index directory
Look at all the explanations in your solr.in.cmd since you're running on Windows. In particular SOLR_HOME, SOLR_DATA_DIR. Best, Erick On Tue, Nov 13, 2018 at 7:18 AM John Milton wrote: > > Hi Solr Team, > > I am using Solr cloud in Windows OS. For that I am using following, > > 1. Three external Zookeeper servers (3.4.13) > > 2. Two Solr cloud nodes (7.5.0) > > > All the created collections are available under the Solr installed > directory only. > > I want to change the data directory into other drives, for example if my > Solr instance is installed on C drive means, I want to store all the > collection index on D drive. > > How to achieve this in Solr 7.5? Kindly give the suggestion to solve > this... > > > Thanks, > John Milton