The log messages are shown when you hit the admin page. So on't worry about that. Keep a minimal configuration of Replication. All you need is masterUrl and pollInterval.
On Thu, Aug 27, 2009 at 5:52 AM, J G<skinny_joe...@hotmail.com> wrote: > > > > > > > > Hello, > > I'm having an issue getting the master to replicate its index to the slave. > Below you will find my configuration settings. Here is what is happening: I > can access the replication dashboard for both the slave and master and I can > successfully execute HTTP commands against both of these urls through my > browser. Now, my slave is configured to use the same URL as the one I am > using in my browser when I query the master, yet when I do a tail -f <tomcat > home>/logs/catalina.out on the slave server all I see is : > > > Master - server1.xyz.com Aug 27, 2009 12:13:29 AM > org.apache.solr.core.SolrCore execute > > INFO: [] webapp=null path=null params={command=details} status=0 QTime=8 > > Aug 27, 2009 12:13:32 AM org.apache.solr.core.SolrCore execute > > INFO: [] webapp=null path=null params={command=details} status=0 QTime=8 > > Aug 27, 2009 12:13:34 AM org.apache.solr.core.SolrCore execute > > INFO: [] webapp=null path=null params={command=details} status=0 QTime=4 > > Aug 27, 2009 12:13:36 AM org.apache.solr.core.SolrCore execute > > INFO: [] webapp=null path=null params={command=details} status=0 QTime=4 > > Aug 27, 2009 12:13:39 AM org.apache.solr.core.SolrCore execute > > INFO: [] webapp=null path=null params={command=details} status=0 QTime=4 > > Aug 27, 2009 12:13:42 AM org.apache.solr.core.SolrCore execute > > INFO: [] webapp=null path=null params={command=details} status=0 QTime=8 > > Aug 27, 2009 12:13:44 AM org.apache.solr.core.SolrCore execute > > INFO: [] webapp=null path=null params={command=details} status=0 QTime= > > > For some reason, the webapp and the path is being set to null and I "think" > this is affecting the replication?!? I am running Solr as the WAR file and > it's 1.4 from a few weeks ago. > > > > <requestHandler name="/replication" class="solr.ReplicationHandler" > > <lst name="master"> > <!--Replicate on 'optimize'. Other values can be 'commit', 'startup'. > It is possible to have multiple entries of this config string--> > <str name="replicateAfter">optimize</str> > > <!--Create a backup after 'optimize'. Other values can be 'commit', > 'startup'. It is possible to have multiple entries of this config string > .note that this is just for backup. Replication does not require this --> > <str name="backupAfter">optimize</str> > > <!--If configuration files need to be replicated give the names here, > separated by comma --> > <!--<str name="confFiles">schema.xml,stopwords.txt,elevate.xml</str>--> > </lst> > </requestHandler> > Notice that I commented out the replication of the configuration files. I > didn't think this is important for the attempt to try to get replication > working. However, is it good to have these files replicated? > > > Slave - server2.xyz.com > > <requestHandler name="/replication" class="solr.ReplicationHandler" > > <lst name="slave"> > > <!--fully qualified url for the replication handler of master . It is > possible to pass on this as a request param for the fetchindex command--> > <str > name="masterUrl">http://server1.xyz.com:8080/jdoe/replication</str> > > <!--Interval in which the slave should poll master .Format is HH:mm:ss > . If this is absent slave does not poll automatically. > But a fetchindex can be triggered from the admin or the http API --> > <str name="pollInterval">00:00:20</str> > <!-- THE FOLLOWING PARAMETERS ARE USUALLY NOT REQUIRED--> > <!--to use compression while transferring the index files. The > possible values are internal|external > if the value is 'external' make sure that your master Solr has the > settings to honour the accept-encoding header. > see here for details http://wiki.apache.org/solr/SolrHttpCompression > If it is 'internal' everything will be taken care of automatically. > USE THIS ONLY IF YOUR BANDWIDTH IS LOW . THIS CAN ACTUALLY SLOWDOWN > REPLICATION IN A LAN--> > <str name="compression">internal</str> > <!--The following values are used when the slave connects to the > master to download the index files. > Default values implicitly set as 5000ms and 10000ms respectively. The > user DOES NOT need to specify > these unless the bandwidth is extremely low or if there is an > extremely high latency--> > <str name="httpConnTimeout">5000</str> > <str name="httpReadTimeout">10000</str> > > <!-- If HTTP Basic authentication is enabled on the master, then the > slave can be configured with the following --> > <str name="httpBasicAuthUser">username</str> > <str name="httpBasicAuthPassword">password</str> > > </lst> > </requestHandler> > > > > Thanks for your help! > > > > > _________________________________________________________________ > Hotmail® is up to 70% faster. Now good news travels really fast. > http://windowslive.com/online/hotmail?ocid=PID23391::T:WLMTAGL:ON:WL:en-US:WM_HYGN_faster:082009 -- ----------------------------------------------------- Noble Paul | Principal Engineer| AOL | http://aol.com