lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michal Krajňanský <michal.krajnan...@gmail.com>
Subject Re: Solrcloud solrconfig.xml
Date Sat, 08 Nov 2014 18:33:16 GMT
Hi Erick,

Thank you for making this clearer (it helped me solve issue with
replication I asked about in different thread). However I suspect I still
do something wrong.

I am running a single Tomcat instance with two instances of Solr.

The shared solrconfig.xml contains:
<dataDir>${solr.data.dir:data}</dataDir>

And the Tomcat contexts set the solr/home as follows:
<Environment name="solr/home" type="java.lang.String"
value=".../solrcloud/solr1" override="true" />
<Environment name="solr/home" type="java.lang.String"
value=".../solrcloud/solr2" override="true" />

The directory structure is as follows:

.../solrcloud/solr1/solr.xml
.../solrcloud/solr1/core1
.../solrcloud/solr1/core1/core.properties
.../solrcloud/solr1/core1/data

.../solrcloud/solr2/solr.xml

After having issued ADDREPLICA on the collection managed by core1, I would
expect to see the new data dir under ".../solrcloud/solr2/core2/data".
However I have seen something like this: (the core names were a little
different).

...

.../solrcloud/solr2/solr.xml
.../solrcloud/solr2/core2
.../solrcloud/solr2/core2/core.properties
.../solrcloud/data    (!)

I.e. the new core data dir was created relative to the parent solrcloud
folder. Makes me confused...

Best,

Michal Krajnansky


2014-11-07 19:59 GMT+01:00 Erick Erickson <erickerickson@gmail.com>:

> Each of those data dirs is relative to the instance in question.
>
> So if you're running on different machines, they're physically
> separate even though named identically.
>
> If you're running multiple nodes on a single machine a-la the
> getting started docs, then each one is in it's own directory
> (e.g. solr/node1, solr/node2) and since the dirs are relative
> to that directory, you get things like
> ..solr/node1/solr/gettingstarted_shard1_replica1/data
> ..solr/node2/solr/gettingstarted_shard1_replica1/data
>
> etc.
>
> Best,
> Erick
>
> On Fri, Nov 7, 2014 at 5:26 AM, Michal Krajňanský
> <michal.krajnansky@gmail.com> wrote:
> > Hi Everyone,
> >
> >
> > I am quite a bit confused about managing configuration files with
> Zookeeper
> > for running Solr in cloud mode.
> >
> > To be precise, I was able to upload the config files (schema.xml,
> > solrconfig.xml) into the Zookeeper and run Solrcloud.
> >
> > What confuses me are properties like "data.dir", or replication request
> > handlers. It seems like these should be different for each of the servers
> > in the cloud. So how does it work?
> >
> > (I did google to understand the matter unsuccessfully.)
> >
> >
> > Best,
> >
> > Michal
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message