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 Noble Paul നോബിള്‍ नोब्ळ् <no...@corp.aol.com> on 2009/12/01 09:35:26 UTC

Re: Thought that masterUrl in slave solrconfig.xml is optional...

remove the slave section completely and startup will go thru fine

On Tue, Dec 1, 2009 at 2:47 AM, William Pierce <ev...@hotmail.com> wrote:
> Folks:
>
> Reading the wiki,  I saw the following statement:
>  "Force a fetchindex on slave from master command : http://slave_host:port/solr/replication?command=fetchindex
>
>  It is possible to pass on extra attribute 'masterUrl' or other attributes like 'compression' (or any other parameter which is specified in the <lst name="slave"> tag) to do a one time replication from a master. This obviates the need for hardcoding the master in the slave. "
> In my case, I cannot hardcode the masterurl in the config file.  I want a cron job to issue the replication commands for each of the slaves.
>
> So I issued the following command:
>
> http://localhost/postings/replication?command=fetchIndex&masterUrl=http%3a%2f%2flocalhost%2fpostingsmaster
>
> I got the following exception:
>
> HTTP Status 500 - Severe errors in solr configuration. Check your log files for more detailed information on what may be wrong. If you want solr to continue after configuration errors, change: <abortOnConfigurationError>false</abortOnConfigurationError> in null -------------------------------------------------------------
>
> org.apache.solr.common.SolrException: 'masterUrl' is required for a slave at org.apache.solr.handler.SnapPuller.<init>(SnapPuller.java:126) at
>
> ....other lines removed....
>
> Why is error message asking me to specify the masterUrl in the config file when the wiki states that this is optional?   Or, am I understanding this incorrectly?
>
> Thanks,
>
> - Bill
>
>
>



-- 
-----------------------------------------------------
Noble Paul | Principal Engineer| AOL | http://aol.com