ars*_*nal 5 apache tomcat solr
我是Solr的新手,当我在solr中索引xml文档时,我收到了这个错误.
C:\apache-solr-3.2.0\example\exampledocs>java -jar post.jar *.xml
SimplePostTool: version 1.3
SimplePostTool: POSTing files to http://localhost:8983/solr/update..
SimplePostTool: POSTing file gb18030-example.xml
SimplePostTool: FATAL: IOException while posting data: java.net.ConnectException
: Connection refused: connect
Run Code Online (Sandbox Code Playgroud)
然后我意识到我的端口号对于localhost是7788所以我这样做了: -
java -Durl=localhost:7788/solr/update -jar post.jar solr.xml
Run Code Online (Sandbox Code Playgroud)
然后我收到这个错误
C:\apache-solr-3.2.0\example\exampledocs>java -Durl=localhost:7788/solr/update -
jar post.jar *.xml
SimplePostTool: version 1.3
SimplePostTool: FATAL: System Property 'url' is not a valid URL: null
Run Code Online (Sandbox Code Playgroud)
任何建议将不胜感激..
我不确定post.jar是否理解-Durl(希望是这样)但是如果该参数得到尊重,那么它应该像这样使用:
java -Durl=http://localhost:7788/solr/update -jar post.jar solr.xml
Run Code Online (Sandbox Code Playgroud)
啊,刚刚找到这个参考,这表明参数很荣幸:http:
//borort.wordpress.com/2008/11/19/solr-postjar-post-to-deferent-solr-port-other-than-8983 /
| 归档时间: |
|
| 查看次数: |
4410 次 |
| 最近记录: |