Re: Moving to SolrCloud, specifying dataDir correctly

2015-12-14 Thread Rahul Ramesh
We currently moved data from magnetic drive to SSD. We run Solr in cloud mode. Only data is stored in the drive configuration is stored in ZK. We start solr using the -s option specifying the data dir Command to start solr ./bin/solr start -c -h -p -z -s We followed the following steps to migr

Re: Moving to SolrCloud, specifying dataDir correctly

2015-12-14 Thread Jeff Wartes
Don’t set solr.data.dir. Instead, set the install dir. Something like: -Dsolr.solr.home=/data/solr -Dsolr.install.dir=/opt/solr I have many solrcloud collections, and separate data/install dirs, and I’ve never had to do anything with manual per-collection or per-replica data dirs. That said, it’

Re: Moving to SolrCloud, specifying dataDir correctly

2015-12-14 Thread Erick Erickson
Currently, it'll be a little tedious but here's what you can do (going partly from memory)... When you create the collection, specify the special value EMPTY for createNodeSet (Solr 5.3+). Use ADDREPLICA to add each individual replica. When you do this, you can add a dataDir for each individual re

Re: Moving to SolrCloud, specifying dataDir correctly

2015-12-14 Thread Tom Evans
On Mon, Dec 14, 2015 at 1:22 PM, Shawn Heisey wrote: > On 12/14/2015 10:49 AM, Tom Evans wrote: >> When I tried this in SolrCloud mode, specifying >> "-Dsolr.data.dir=/mnt/solr/" when starting each node, it worked fine >> for the first collection, but then the second collection tried to use >> the

Re: Moving to SolrCloud, specifying dataDir correctly

2015-12-14 Thread Shawn Heisey
On 12/14/2015 10:49 AM, Tom Evans wrote: > When I tried this in SolrCloud mode, specifying > "-Dsolr.data.dir=/mnt/solr/" when starting each node, it worked fine > for the first collection, but then the second collection tried to use > the same directory to store its index, which obviously failed.