错误405 HTTP POST方法不受此URL建立索引时在SOLR

我被困在通过示例 - “检测指标分片上的两个本地服务器”这样做从以下网址的支持:现在https://cwiki.apache.org/confluence/display/solr/Distributed+Search+with+Index+Sharding错误405 HTTP POST方法不受此URL建立索引时在SOLR

,索引我给予以下命令 - D:\K\solr-6.3.0\bin>java -Dtype=text/csv -Durl=http://localhost:8983/solr/#/core 1/update -jar D:\K\solr-6.3.0\example\exampledocs\post.jar D:\K\solr-6.3.0\examp le\exampledocs\monitor.xml

&我收到以下错误 -

D:\K\solr-6.3.0\bin>java -Dtype=text/csv -Durl=http://localhost:8983/solr/#/core 

1/update -jar D:\K\solr-6.3.0\example\exampledocs\post.jar D:\K\solr-6.3.0\examp

le\exampledocs\monitor.xml

SimplePostTool version 5.0.0

Posting files to [base] url http://localhost:8983/solr/#/core1/update using cont

ent-type text/csv...

POSTing file monitor.xml to [base]

SimplePostTool: WARNING: Solr returned an error #405 (HTTP method POST is not su

pported by this URL) for url: http://localhost:8983/solr/#/core1/update

SimplePostTool: WARNING: Response: <html>

<head>

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

<title>Error 405 HTTP method POST is not supported by this URL</title>

</head>

<body><h2>HTTP ERROR 405</h2>

<p>Problem accessing /solr/index.html. Reason:

<pre> HTTP method POST is not supported by this URL</pre></p>

</body>

</html>

SimplePostTool: WARNING: IOException while reading response: java.io.IOException

: Server returned HTTP response code: 405 for URL: http://localhost:8983/solr/#/

core1/update

1 files indexed.

COMMITting Solr index changes to http://localhost:8983/solr/#/core1/update...

Time spent: 0:00:00.117

请帮助!

回答:

使用下面的命令:\ķ\ Solr的-6.3.0 \ BIN>后-c核1 d:\ķ\ solr-

D:\K\solr-6.3.0\bin\post -c collection_name D:\K\solr-6.3.0\examp 

le\exampledocs\monitor.xml

与集合名称

以上是 错误405 HTTP POST方法不受此URL建立索引时在SOLR 的全部内容, 来源链接: utcz.com/qa/264099.html

回到顶部