Hello everyone:

I am building a solr cloud production environment. My solr version is 5.3.1. 
The environment consists three nodes running CentOS 6.5. First I build the 
zookeeper environment by the three nodes, and then run solr on the three nodes, 
and at last build a collection consists of three shards and each shard has two 
replicas. After that we can see that cloud structure on the Solr Admin page.


However, when I try to add data to index using this command:
bin/post -c cloud-test example/exampledocs/sample.html  -p 8987 
Some error happen:

java -classpath /usr/local/solr-5.3.1/dist/solr-core-5.3.1.jar -Dauto=yes 
-Dport=8987 -Dc=cloud-test -Ddata=files org.apache.solr.util.SimplePostTool 
example/exampledocs/sample.html

SimplePostTool version 5.0.0

Posting files to [base] url http://localhost:8987/solr/cloud-test/update...

Entering auto mode. File endings considered are 
xml,json,csv,pdf,doc,docx,ppt,pptx,xls,xlsx,odt,odp,ods,ott,otp,ots,rtf,htm,html,txt,log

POSTing file sample.html (text/html) to [base]/extract

SimplePostTool: WARNING: Solr returned an error #404 (Not Found) for url: 
http://localhost:8987/solr/cloud-test/update/extract?resource.name=%2Fusr%2Flocal%2Fsolr-5.3.1%2Fexample%2Fexampledocs%2Fsample.html&literal.id=%2Fusr%2Flocal%2Fsolr-5.3.1%2Fexample%2Fexampledocs%2Fsample.html

SimplePostTool: WARNING: Response: <html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>

<title>Error 404 Not Found</title>

</head>

<body><h2>HTTP ERROR 404</h2>

<p>Problem accessing /solr/cloud-test/update/extract. Reason:

<pre>    Not Found</pre></p><hr><i><small>Powered by Jetty://</small></i><hr/>




</body>

</html>

SimplePostTool: WARNING: IOException while reading response: 
java.io.FileNotFoundException: 
http://localhost:8987/solr/cloud-test/update/extract?resource.name=%2Fusr%2Flocal%2Fsolr-5.3.1%2Fexample%2Fexampledocs%2Fsample.html&literal.id=%2Fusr%2Flocal%2Fsolr-5.3.1%2Fexample%2Fexampledocs%2Fsample.html

1 files indexed.

COMMITting Solr index changes to http://localhost:8987/solr/cloud-test/update...

Time spent: 0:00:00.050




Would anyone help me to solve this problem? Thanks.




















Reply via email to