SimplePostTool:致命:尝试索引时 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
然后我意识到我的端口号是本地主机的 7788,所以我这样做了:-
java -Durl=localhost:7788/solr/update -jar post.jar solr.xml
然后我收到此错误
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
任何建议将不胜感激..
I am new to Solr and when I was indexing xml document in my solr, then I got this error.
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
then I realized that my port number in my case is 7788 for localhost so I did this:-
java -Durl=localhost:7788/solr/update -jar post.jar solr.xml
then I am getting this error
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
Any suggestions will be appreciated..
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我不确定 -Durl 是否被 post.jar 理解(希望如此),但如果该参数被尊重,那么它可能应该像这样使用:
啊,刚刚找到这个引用,这表明该参数被尊重:
http://borort.wordpress.com/2008/11/19/solr-postjar-post-to-deferent-solr-port-other-than-8983/I am not sure that -Durl is understood by the post.jar (hope it is) but if that parameter is honoured, then it should probably be used like this:
ah, just found this reference, which suggests that the parameter is honoured:
http://borort.wordpress.com/2008/11/19/solr-postjar-post-to-deferent-solr-port-other-than-8983/对我来说,发生这种情况是因为我在尝试加载数据时未能启动 Solr(在后台运行)... DUH!
For me, this was happening because I failed to start Solr (running in the background) while attempting to load the data... DUH!
只需检查您的 solr 服务器是否已启动..
如果未运行,则运行 solr 服务器..
并在另一个
cmd 中运行此 C:\apache-solr-3.2.0\example\exampledocs>java -jar post.jar *.xml
just check that your solr server is up or not ..
if is is not running then run the solr server ..
and in the other
cmd run this C:\apache-solr-3.2.0\example\exampledocs>java -jar post.jar *.xml