lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sudarshan <chakravarthy.sudars...@gmail.com>
Subject Indexing files using multi-cores - could not fix after many retries
Date Mon, 21 May 2012 23:42:59 GMT
Hi All,
       The subject may seem to be an already   answered question. But I
really could not fix my problem. What I'm trying is a basic indexing with
multi-cores using post.jar and curl. As previously posted, I have no
problems in indexing xml and csv files with post.jar and curl. But if I
choose multi-core, I could n't get it working.

I have done the following.

1. Core 0 is the master - Added the following in
SOLR_HOME\example\multicore\core0
\conf\solrconfig.xml

<requestHandler name="/update/csv" 
                  class="solr.CSVRequestHandler" 
                  startup="lazy" />   
  <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>

2. Core 1 is the slave -Added the following in
SOLR_HOME\example\multicore\core1
\conf\solrconfig.xml

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

3. Included core 0 and core 1 entries in
SOLR_HOME\example\solr\conf\core.xml

When I fire an update query to index csv or xml files, I get the following
error.

Query:
C:\Sudarshan\Softwares\apache-solr-3.6.0\apache-solr-3.6.0\example\exampledocs>curl
"http://localhost:8983/solr/core0/update/" -H "Content-type:text/plain"
--data-binary books.csv

Response:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>Error 400 Unexpected character 'b' (code 98) in prolog; expected
'&lt;'
 at [row,col {unknown-source}]: [1,1]</title>
</head>
<body>
HTTP ERROR 400

<p>Problem accessing /solr/core0/update/. Reason:
<pre>    Unexpected character 'b' (code 98) in prolog; expected '&lt;'
 at [row,col {unknown-source}]: [1,1]</pre></p><hr />/<small>Powered
by
Jetty://</small>/<br/>
<br/>
<br/>

Even with post.jar I'm getting the same Solr #400 error. I tried my best in
debugging this. I'm new to Solr and wanted to learn more. Please help me
understand where I'm making mistakes. 

Thanks,
Sudarshan

--
View this message in context: http://lucene.472066.n3.nabble.com/Indexing-files-using-multi-cores-could-not-fix-after-many-retries-tp3985253.html
Sent from the Solr - User mailing list archive at Nabble.com.

Mime
View raw message