Hi Abdel,
Your configuration looks ok regarding the cdcr update log.
Could you tell us a bit more about your Solr installation ? More
specifically, does the solr instances, both source and target, contain
one collection that was created prior the configuration of cdcr ?
Best,
--
Renaud Delbru
On 11/05/16 20:46, Abdel Belkasri wrote:
Hi there,
I am trying to configure Cross Data Center Replication using solr 6.0.
I am having issue creating collections or reloading old collections with
the new solrconfig.xml on both the target and source side. I keep getting
error
“org.apache.solr.common.SolrException:org.apache.solr.common.SolrException:
Solr instance is not configured with the cdcr update log”
This is my config on the Source
<!-- Cross Data Center Replication Settings-->
<requestHandler name="/cdcr" class="solr.CdcrRequestHandler">
<lst name="buffer">
<str name="defaultState">disabled</str>
</lst>
</requestHandler>
<updateRequestProcessorChain name="cdcr-proc-chain">
<processor class="solr.CdcrUpdateProcessorFactory"/>
<processor class="solr.RunUpdateProcessorFactory"/>
</updateRequestProcessorChain>
<requestHandler name="/update" class="solr.UpdateRequestHandler">
<lst name="defaults">
<str name="update.chain">cdcr-proc-chain</str>
</lst>
</requestHandler>
<updateHandler class="solr.DirectUpdateHandler2">
<updateLog class="solr.CdcrUpdateLog">
<str name="dir">${solr.ulog.dir:}</str>
<int name="numRecordsToKeep">500</int>
<int name="maxNumLogsToKeep">20</int>
<int name="numVersionBuckets">65536</int>
</updateLog>
</updateHandler>
This is the config on the Target side:----
<!-- Cross Data Center Replication Settings-->
<requestHandler name="/cdcr" class="solr.CdcrRequestHandler">
<lst name="buffer">
<str name="defaultState">disabled</str>
</lst>
</requestHandler>
<updateRequestProcessorChain name="cdcr-proc-chain">
<processor class="solr.CdcrUpdateProcessorFactory"/>
<processor class="solr.RunUpdateProcessorFactory"/>
</updateRequestProcessorChain>
<requestHandler name="/update" class="solr.UpdateRequestHandler">
<lst name="defaults">
<str name="update.chain">cdcr-proc-chain</str>
</lst>
</requestHandler>
<updateHandler class="solr.DirectUpdateHandler2">
<updateLog class="solr.CdcrUpdateLog">
<str name="dir">${solr.ulog.dir:}</str>
<int name="numRecordsToKeep">500</int>
<int name="maxNumLogsToKeep">20</int>
<int name="numVersionBuckets">65536</int>
</updateLog>
</updateHandler>
HOW SOLR IS RUNNING:
ZKHOSTS parameter in solr.in.sh file under /etc/default
and when you start solr service it will start in cloud
Any help would be great.
Thanks
--Abdel.