Note that the Java replication feature is Solr 1.4 and above. You'll
need to try a nightly or trunk build to get to this feature for now.
Erik
On Nov 11, 2008, at 1:38 PM, banished phantom wrote:
Hello everyone ! I'm new in the Solr list. I'va been using Solr 1.2
for a
while and also the replication through rsync. As the new Solr was
released I
tried the new replication method,
so I read : http://wiki.apache.org/solr/SolrReplication. There it
says :
"Replication feature is implemented as a RequestHandler .So, the
configuration is similar to any normal RequestHandler"
and an example is shown :
<requestHandler name="/replication" class="solr.ReplicationHandler" >
<lst name="master">
<!--Replicate on 'optimize' it can also be 'commit' ,
'startup'. It
is possible to have mutiple entries -->
<str name="replicateAfter">commit</str>
<!--If configuration files need to be replicated give the
names here
. comma separated -->
<str name="confFiles">schema.xml,stopwords.txt,elevate.xml</
str>
</lst>
</requestHandler>
So, I put the same example in my solrconfig.xml. However when Solr
is fired
up, I get :
SEVERE: org.apache.solr.common.SolrException: Error loading class
'solr.ReplicationHandler'
at
org
.apache
.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:273)
at
org
.apache
.solr.core.SolrResourceLoader.newInstance(SolrResourceLoader.java:278)
at
org
.apache
.solr
.util.plugin.AbstractPluginLoader.create(AbstractPluginLoader.java:83)
at
org.apache.solr.core.RequestHandlers$1.create(RequestHandlers.java:
152)
at
org.apache.solr.core.RequestHandlers$1.create(RequestHandlers.java:
161)
at
org
.apache
.solr
.util.plugin.AbstractPluginLoader.load(AbstractPluginLoader.java:140)
at
org
.apache
.solr
.core.RequestHandlers.initHandlersFromConfig(RequestHandlers.java:169)
at org.apache.solr.core.SolrCore.<init>(SolrCore.java:444)
at
org.apache.solr.core.CoreContainer
$Initializer.initialize(CoreContainer.java:119)
at
org
.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:
69)
at
org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:99)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
40)
at
org
.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:
594)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:139)
at
org
.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:
1218)
at
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:
500)
at
org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
40)
at
org
.mortbay
.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
at
org
.mortbay
.jetty
.handler
.ContextHandlerCollection.doStart(ContextHandlerCollection.java:161)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
40)
at
org
.mortbay
.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
40)
at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:
117)
at org.mortbay.jetty.Server.doStart(Server.java:210)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
40)
at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:929)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun
.reflect
.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun
.reflect
.DelegatingMethodAccessorImpl
.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.mortbay.start.Main.invokeMain(Main.java:183)
at org.mortbay.start.Main.start(Main.java:497)
at org.mortbay.start.Main.main(Main.java:115)
Could someone please tell me what I'm doing (or NOT doing) wrong ?.
Thanks a lot,
Lucas.