2013-07-04 52 views
1

使用Solr的3.6.1,我得到在10.0.0.73上的從執行「fetchindex」命令時出現以下錯誤:的Solr 3.6.1複製主

重度:在大師:http://10.0.0.249:8983/solr/my_core/replication不可用。索引獲取失敗。例外:請求失敗的URL [email protected]

在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> 

在在10.0.0.73 my_core從已在solrconfig.xml中配置的複製爲

<requestHandler name="/replication" class="solr.ReplicationHandler">     
    <lst name="slave">                 
    <str name="masterUrl">http://10.0.0.249:8983/solr/my_core/replication</str>  
    <str name="pollInterval">00:00:60</str> 
    </lst>                    
</requestHandler> 

我想我做一些明顯錯誤的,但閱讀時間和重讀Solr的文件後無法找到它複製和大量的帖子在這裏和其他方面。任何人有想法?請注意發送給主設備的其他請求成功,例如

GET http://10.0.0.249:8983/solr/my_core/select 

回報

<?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

檢查http://wiki.apache.org/solr/SolrReplication#enable.2Fdisable_master.2Fslave_in_a_node如果您需要定義enable屬性來表明它是主站和從站 – Jayendra

回答

1

在從配置您的主網址被指定爲,

<str name="masterUrl">http://10.0.0.249:8983/solr/my_core/replication</str> 

正確的URL會

<str name="masterUrl">http://10.0.0.249:8983/solr/my_core</str> 

您只需指定URL直到核心名稱。