Solr 3.6.1未找到复制主机
使用Solr 3.6.1,在10.0.0.73的从机上执行“fetchindex”命令时,我遇到以下错误: 严重:主机位于:Solr 3.6.1未找到复制主机,solr,replication,Solr,Replication,使用Solr 3.6.1,在10.0.0.73的从机上执行“fetchindex”命令时,我遇到以下错误: 严重:主机位于:http://10.0.0.249:8983/solr/my_core/replication不可用。索引获取失败。异常:请求url org.apache.commons.httpclient.methods失败。PostMethod@388a2006 主机10.0.0.249上的my_core核心在solrconfig.xml中具有以下配置 <requestHand
http://10.0.0.249:8983/solr/my_core/replication
不可用。索引获取失败。异常:请求url org.apache.commons.httpclient.methods失败。PostMethod@388a2006
主机10.0.0.249上的my_core核心在solrconfig.xml中具有以下配置
<requestHandler name="/replication" class="solr.ReplicationHandler" >
<lst name="master">
<str name="replicateAfter">commit</str>
<str name="replicateAfter">startup</str>
<str name="confFiles">schema.xml,stopwords.txt</str>
</lst>
</requestHandler>
返回
<?xml version="1.0" encoding="UTF-8"?>
<response>
<lst name="responseHeader">
<int name="status">0</int>
<int name="QTime">0</int>
<lst name="params"/>
</lst>
<result name="response" numFound="0" start="0"/>
0
0
从属配置上的主URL指定为
<str name="masterUrl">http://10.0.0.249:8983/solr/my_core/replication</str>
http://10.0.0.249:8983/solr/my_core/replication
正确的url应该是
<str name="masterUrl">http://10.0.0.249:8983/solr/my_core</str>
http://10.0.0.249:8983/solr/my_core
您只需要指定URL,直到核心名称。从配置上的主URL被指定为
<str name="masterUrl">http://10.0.0.249:8983/solr/my_core/replication</str>
http://10.0.0.249:8983/solr/my_core/replication
正确的url应该是
<str name="masterUrl">http://10.0.0.249:8983/solr/my_core</str>
http://10.0.0.249:8983/solr/my_core
您只需在核心名称之前指定URL。检查是否需要定义enable属性以将其指示为master,如果需要定义enable属性以将其指示为master和slave,则检查是否需要定义enable属性以将其指示为master和slave