You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Ezequiel Calderara <ez...@gmail.com> on 2011/01/21 14:04:28 UTC

Master and Slaves

I have setup a Master with two slaves. Let's call the Master "Jabba" and the
slaves "Leia" and "C3PO"  (very nerdy! lol).
Well, i have setup in Jabba the replication, with the following confFiles
<str
name="confFiles">solrconfig_slave.xml:solrconfig.xml,schema.xml,stopwords.txt,elevate.xml</str>

But in the slaves i want to override the "dataDir" value of the
solrconfig.xml, but it get overrided by the one replicated.
Is there a way to have the slaves having their solrconfig replicated, but
with some "special" configurations?

I want to avoid having to enter to each slave to configure it, i prefer to
do it in a centralized way.
-- 
______
Ezequiel.

Http://www.ironicnet.com

Re: Master and Slaves

Posted by Markus Jelsma <ma...@openindex.io>.
You have defined the property and its value but you're not using it. Set the 
property in solrconfig.xml.

On Friday 21 January 2011 15:38:58 Ezequiel Calderara wrote:
> Somehow it's not working :(
> 
> i have set it up like:
> >  #solrcore.properties
> >  
> >  data.dir=D:\Solr\PAU\data
> > 
> > But it keeps going to the dataDir configured in the solrconfig.xml.
> 
> Also, when i go to the replication admin i see this:
>   *Master* http://10.11.33.180:8787/solr/replication  *Poll Interval*
> 00:00:60 *Local Index* Index Version: 1295466104884, Generation: 4 
> Location: C:\Program Files\Apache Software Foundation\Tomcat
> 7.0\data\index  Size: 6,99 KB  Times Replicated Since Startup: 50 
> Previous Replication Done At: Fri Jan 21 11:36:19 ART 2011  *Config Files
> Replicated At: null * ** *Config Files Replicated: null * ** *Times Config
> Files Replicated Since Startup: null*  Next Replication Cycle At: Fri Jan
> 21 11:37:19 ART 2011
> 
> And i know that the files were replicated ok. i see the solrconfig backup
> with name "solrconfig.xml.20110120030345", and the datadir changed also...
> 
> So i don't understand why isn't figuring as replicated.
> Maybe i'm doing something wrong. Don't know
> 
> On Fri, Jan 21, 2011 at 10:16 AM, Ezequiel Calderara 
<ez...@gmail.com>wrote:
> > Thanks!, thats what i needed!
> > 
> > There is always some much to learn about Solr/Lucene!
> > 
> > 
> > On Fri, Jan 21, 2011 at 10:08 AM, Markus Jelsma <
> > 
> > markus.jelsma@openindex.io> wrote:
> >> solrcore.properties
> > 
> > --
> > ______
> > Ezequiel.
> > 
> > Http://www.ironicnet.com <http://www.ironicnet.com/>

-- 
Markus Jelsma - CTO - Openindex
http://www.linkedin.com/in/markus17
050-8536620 / 06-50258350

Re: Master and Slaves

Posted by Ezequiel Calderara <ez...@gmail.com>.
It worked! :)

On Fri, Jan 21, 2011 at 12:02 PM, Ezequiel Calderara <ez...@gmail.com>wrote:

> Ohh i see... i was setting a "default value" in the solrconfig_slave like
> this:
> <dataDir>${solr.data.dir:.\data}</dataDir>
>
>
> i will try the ${data.dir}
>
>
> 2011/1/21 Tomás Fernández Löbbe <to...@gmail.com>
>
> Did you modify the solrconfig file with:
>>
>> <dataDir>${data.dir}</dataDir>
>>
>> ??
>>
>>
>> On Fri, Jan 21, 2011 at 11:38 AM, Ezequiel Calderara <ezechico@gmail.com
>> >wrote:
>>
>> > Somehow it's not working :(
>> > i have set it up like:
>> >
>> > >  #solrcore.properties
>> > >
>> > >  data.dir=D:\Solr\PAU\data
>> > >
>> > > But it keeps going to the dataDir configured in the solrconfig.xml.
>> > Also, when i go to the replication admin i see this:
>> >  *Master* http://10.11.33.180:8787/solr/replication  *Poll Interval*
>> > 00:00:60
>> >  *Local Index* Index Version: 1295466104884, Generation: 4  Location:
>> > C:\Program Files\Apache Software Foundation\Tomcat 7.0\data\index  Size:
>> > 6,99 KB  Times Replicated Since Startup: 50  Previous Replication Done
>> At:
>> > Fri Jan 21 11:36:19 ART 2011  *Config Files Replicated At: null * **
>> > *Config
>> > Files Replicated: null * ** *Times Config Files Replicated Since
>> Startup:
>> > null*  Next Replication Cycle At: Fri Jan 21 11:37:19 ART 2011
>> >
>> > And i know that the files were replicated ok. i see the solrconfig
>> backup
>> > with name "solrconfig.xml.20110120030345", and the datadir changed
>> also...
>> >
>> > So i don't understand why isn't figuring as replicated.
>> > Maybe i'm doing something wrong. Don't know
>> > On Fri, Jan 21, 2011 at 10:16 AM, Ezequiel Calderara <
>> ezechico@gmail.com
>> > >wrote:
>> >
>> > > Thanks!, thats what i needed!
>> > >
>> > > There is always some much to learn about Solr/Lucene!
>> > >
>> > >
>> > > On Fri, Jan 21, 2011 at 10:08 AM, Markus Jelsma <
>> > > markus.jelsma@openindex.io> wrote:
>> > >
>> > >> solrcore.properties
>> > >
>> > >
>> > >
>> > >
>> > > --
>> > > ______
>> > > Ezequiel.
>> > >
>> > > Http://www.ironicnet.com <http://www.ironicnet.com/> <
>> http://www.ironicnet.com/>
>>  > >
>> >
>> >
>> >
>> > --
>> > ______
>> > Ezequiel.
>> >
>> > Http://www.ironicnet.com <http://www.ironicnet.com/>
>> >
>>
>
>
>
> --
>  ______
> Ezequiel.
>
> Http://www.ironicnet.com <http://www.ironicnet.com/>
>



-- 
______
Ezequiel.

Http://www.ironicnet.com

Re: Master and Slaves

Posted by Ezequiel Calderara <ez...@gmail.com>.
Ohh i see... i was setting a "default value" in the solrconfig_slave like
this:
<dataDir>${solr.data.dir:.\data}</dataDir>


i will try the ${data.dir}


2011/1/21 Tomás Fernández Löbbe <to...@gmail.com>

> Did you modify the solrconfig file with:
>
> <dataDir>${data.dir}</dataDir>
>
> ??
>
>
> On Fri, Jan 21, 2011 at 11:38 AM, Ezequiel Calderara <ezechico@gmail.com
> >wrote:
>
> > Somehow it's not working :(
> > i have set it up like:
> >
> > >  #solrcore.properties
> > >
> > >  data.dir=D:\Solr\PAU\data
> > >
> > > But it keeps going to the dataDir configured in the solrconfig.xml.
> > Also, when i go to the replication admin i see this:
> >  *Master* http://10.11.33.180:8787/solr/replication  *Poll Interval*
> > 00:00:60
> >  *Local Index* Index Version: 1295466104884, Generation: 4  Location:
> > C:\Program Files\Apache Software Foundation\Tomcat 7.0\data\index  Size:
> > 6,99 KB  Times Replicated Since Startup: 50  Previous Replication Done
> At:
> > Fri Jan 21 11:36:19 ART 2011  *Config Files Replicated At: null * **
> > *Config
> > Files Replicated: null * ** *Times Config Files Replicated Since Startup:
> > null*  Next Replication Cycle At: Fri Jan 21 11:37:19 ART 2011
> >
> > And i know that the files were replicated ok. i see the solrconfig backup
> > with name "solrconfig.xml.20110120030345", and the datadir changed
> also...
> >
> > So i don't understand why isn't figuring as replicated.
> > Maybe i'm doing something wrong. Don't know
> > On Fri, Jan 21, 2011 at 10:16 AM, Ezequiel Calderara <ezechico@gmail.com
> > >wrote:
> >
> > > Thanks!, thats what i needed!
> > >
> > > There is always some much to learn about Solr/Lucene!
> > >
> > >
> > > On Fri, Jan 21, 2011 at 10:08 AM, Markus Jelsma <
> > > markus.jelsma@openindex.io> wrote:
> > >
> > >> solrcore.properties
> > >
> > >
> > >
> > >
> > > --
> > > ______
> > > Ezequiel.
> > >
> > > Http://www.ironicnet.com <http://www.ironicnet.com/> <
> http://www.ironicnet.com/>
>  > >
> >
> >
> >
> > --
> > ______
> > Ezequiel.
> >
> > Http://www.ironicnet.com <http://www.ironicnet.com/>
> >
>



-- 
______
Ezequiel.

Http://www.ironicnet.com

Re: Master and Slaves

Posted by Tomás Fernández Löbbe <to...@gmail.com>.
Did you modify the solrconfig file with:

<dataDir>${data.dir}</dataDir>

??


On Fri, Jan 21, 2011 at 11:38 AM, Ezequiel Calderara <ez...@gmail.com>wrote:

> Somehow it's not working :(
> i have set it up like:
>
> >  #solrcore.properties
> >
> >  data.dir=D:\Solr\PAU\data
> >
> > But it keeps going to the dataDir configured in the solrconfig.xml.
> Also, when i go to the replication admin i see this:
>  *Master* http://10.11.33.180:8787/solr/replication  *Poll Interval*
> 00:00:60
>  *Local Index* Index Version: 1295466104884, Generation: 4  Location:
> C:\Program Files\Apache Software Foundation\Tomcat 7.0\data\index  Size:
> 6,99 KB  Times Replicated Since Startup: 50  Previous Replication Done At:
> Fri Jan 21 11:36:19 ART 2011  *Config Files Replicated At: null * **
> *Config
> Files Replicated: null * ** *Times Config Files Replicated Since Startup:
> null*  Next Replication Cycle At: Fri Jan 21 11:37:19 ART 2011
>
> And i know that the files were replicated ok. i see the solrconfig backup
> with name "solrconfig.xml.20110120030345", and the datadir changed also...
>
> So i don't understand why isn't figuring as replicated.
> Maybe i'm doing something wrong. Don't know
> On Fri, Jan 21, 2011 at 10:16 AM, Ezequiel Calderara <ezechico@gmail.com
> >wrote:
>
> > Thanks!, thats what i needed!
> >
> > There is always some much to learn about Solr/Lucene!
> >
> >
> > On Fri, Jan 21, 2011 at 10:08 AM, Markus Jelsma <
> > markus.jelsma@openindex.io> wrote:
> >
> >> solrcore.properties
> >
> >
> >
> >
> > --
> > ______
> > Ezequiel.
> >
> > Http://www.ironicnet.com <http://www.ironicnet.com/>
> >
>
>
>
> --
> ______
> Ezequiel.
>
> Http://www.ironicnet.com
>

Re: Master and Slaves

Posted by Ezequiel Calderara <ez...@gmail.com>.
Somehow it's not working :(
i have set it up like:

>  #solrcore.properties
>
>  data.dir=D:\Solr\PAU\data
>
> But it keeps going to the dataDir configured in the solrconfig.xml.
Also, when i go to the replication admin i see this:
  *Master* http://10.11.33.180:8787/solr/replication  *Poll Interval* 00:00:60
 *Local Index* Index Version: 1295466104884, Generation: 4  Location:
C:\Program Files\Apache Software Foundation\Tomcat 7.0\data\index  Size:
6,99 KB  Times Replicated Since Startup: 50  Previous Replication Done At:
Fri Jan 21 11:36:19 ART 2011  *Config Files Replicated At: null * ** *Config
Files Replicated: null * ** *Times Config Files Replicated Since Startup:
null*  Next Replication Cycle At: Fri Jan 21 11:37:19 ART 2011

And i know that the files were replicated ok. i see the solrconfig backup
with name "solrconfig.xml.20110120030345", and the datadir changed also...

So i don't understand why isn't figuring as replicated.
Maybe i'm doing something wrong. Don't know
On Fri, Jan 21, 2011 at 10:16 AM, Ezequiel Calderara <ez...@gmail.com>wrote:

> Thanks!, thats what i needed!
>
> There is always some much to learn about Solr/Lucene!
>
>
> On Fri, Jan 21, 2011 at 10:08 AM, Markus Jelsma <
> markus.jelsma@openindex.io> wrote:
>
>> solrcore.properties
>
>
>
>
> --
> ______
> Ezequiel.
>
> Http://www.ironicnet.com <http://www.ironicnet.com/>
>



-- 
______
Ezequiel.

Http://www.ironicnet.com

Re: Master and Slaves

Posted by Ezequiel Calderara <ez...@gmail.com>.
Thanks!, thats what i needed!

There is always some much to learn about Solr/Lucene!


On Fri, Jan 21, 2011 at 10:08 AM, Markus Jelsma
<ma...@openindex.io>wrote:

> solrcore.properties




-- 
______
Ezequiel.

Http://www.ironicnet.com

Re: Master and Slaves

Posted by Markus Jelsma <ma...@openindex.io>.
You'll can use a property and define it for each slave in solrcore.properties.
http://wiki.apache.org/solr/SolrConfigXml#System_property_substitution

On Friday 21 January 2011 14:04:28 Ezequiel Calderara wrote:
> I have setup a Master with two slaves. Let's call the Master "Jabba" and
> the slaves "Leia" and "C3PO"  (very nerdy! lol).
> Well, i have setup in Jabba the replication, with the following confFiles
> <str
> name="confFiles">solrconfig_slave.xml:solrconfig.xml,schema.xml,stopwords.t
> xt,elevate.xml</str>
> 
> But in the slaves i want to override the "dataDir" value of the
> solrconfig.xml, but it get overrided by the one replicated.
> Is there a way to have the slaves having their solrconfig replicated, but
> with some "special" configurations?
> 
> I want to avoid having to enter to each slave to configure it, i prefer to
> do it in a centralized way.

-- 
Markus Jelsma - CTO - Openindex
http://www.linkedin.com/in/markus17
050-8536620 / 06-50258350