Hi folks,
Here's what I've got going:
Master Server with the following config:
<requestHandler name="/replication" class="solr.ReplicationHandler" >
<lst name="master">
<str name="replicateAfter">commit</str>
<str name="confFiles">schema.xml,stopwords.txt,elevate.xml</str>
</lst>
</requestHandler>
Slave server with the following:
<requestHandler name="/replication" class="solr.ReplicationHandler" >
<lst name="slave">
<str
name="masterUrl">http://mydomain:8080/solr/065f079c24914a4103e2a57178164bbe/replication</str>
<str name="pollInterval">00:00:20</str>
</lst>
</requestHandler>
I think there is a bug in the JSP for the admin pages (which I can
post a patch if desired) where the replication link goes to
replication/ and index.jsp doesn't get loaded automatically (at least
on my box). I managed to get to the dashboard by adding index.jsp,
and it seems that while the slave is polling constantly, it never
receives an update.
I tried the following:
curl
'http://mydomain.com:8080/solr/065f079c24914a4103e2a57178164bbe/replication?command=snapshoot'
<?xml version="1.0" encoding="UTF-8"?>
<response>
<lst name="responseHeader"><int name="status">0</int><int
name="QTime">1</int></lst><str
name="exception">java.lang.NullPointerException:java.lang.NullPointerException</str>
</response>
The index has about 400 docs in it, and old style replication used to
work just fine on it.
When I run the snappull command from the slave:
curl
'http://mydomain.com:8080/solr/065f079c24914a4103e2a57178164bbe/replication?command=snappull'
<?xml version="1.0" encoding="UTF-8"?>
<response>
<lst name="responseHeader"><int name="status">0</int><int
name="QTime">1</int></lst><str name="status">OK</str>
</response>
The replication page also remains unchanged and there are no docs on the slave.
Any ideas?
Thanks,
Jacob
--
+1 510 277-0891 (o)
+91 9999 33 7458 (m)
web: http://pajamadesign.com
Skype: pajamadesign
Yahoo: jacobsingh
AIM: jacobsingh
gTalk: [email protected]