Re: Setting solr.data.dir for SolrCloud instance

2013-11-26 Thread Erick Erickson
The data _is_ separated from the code. It's all relative to solr_home which need not have any relation to where the code is executing from. For instance, I can start Solr like java -Dsolr.solr.home=/Users/Erick/testdir/solr -jar start.jar and have my war in a completely different place. Best,

Re: Setting solr.data.dir for SolrCloud instance

2013-11-26 Thread adfel70
The problem we had was that we tried to run: java -Dsolr.data.dir=/opt/solr/data -Dsolr.solr.home=/opt/solr/home -jar start.jar and got different behavior for how solr handles these 2 params. we created 2 collections, which created 2 cores. then we got 2 home dirs for the cores, as expected:

Re: Setting solr.data.dir for SolrCloud instance

2013-11-26 Thread Mark Miller
On Nov 25, 2013, at 8:12 AM, adfel70 adfe...@gmail.com wrote: I was expecting that the path I sent would serve as the BASE path for all cores the the node hosts When running Solr on HDFS, there is a similar prop you can use -Dsolr.hdfs.home. If you set that, all data dirs are created nicely

Re: Setting solr.data.dir for SolrCloud instance

2013-11-26 Thread Shawn Heisey
On 11/26/2013 9:19 AM, adfel70 wrote: The problem we had was that we tried to run: java -Dsolr.data.dir=/opt/solr/data -Dsolr.solr.home=/opt/solr/home -jar start.jar and got different behavior for how solr handles these 2 params. we created 2 collections, which created 2 cores. then we got 2

Re: Setting solr.data.dir for SolrCloud instance

2013-11-25 Thread Erick Erickson
The first thing I'd do is not send an absolute path. What happens if you just sent -Dsolr.data.dir=data? (no '/')? We had this discussion a while ago when we were working on auto-discovery, and it turns out that there _are_ legitimate cases in which more than one core/collection can point to the

Re: Setting solr.data.dir for SolrCloud instance

2013-11-25 Thread adfel70
Thanks for the reply, Erick. Actually, I didnt not think this through. I just thought it would be a good idea to separate the data from the application code. I guess I'll leave it without setting the datadir parameter and add a symlink. -- View this message in context: