在 SOLRJ 中使用 StreamingUpdateSolrServer 建立索引的问题

发布于 2024-09-29 02:04:54 字数 1302 浏览 2 评论 0原文

我刚刚在 SOLRJ 上遭遇了惨痛的失败。不知何故,StreamingUpdateSolrServer 在某些正在编制索引的项目上失败,但其他项目成功。它只是抛出一个带有“错误请求”消息的异常,没有任何进一步的解释或堆栈跟踪。我怀疑这是由于数据格式错误造成的,但经过仔细检查,我几乎确定它们没问题(特别是因为其他数据被毫无问题地接受?)。

任何人都可以查明失败的任何可能原因吗?或者我有更好的选择自己解决问题(例如不同的调试方式等)?非常感谢!

2010-10-24 23:49:21,662 {ask-scheduler-5} INFO  [ProductIndexService] Updating product index in batch ...
2010-10-24 23:49:21,851 {ask-scheduler-5} INFO  [ProductIndexService]  Indexing total 28575 products ...
2010-10-24 23:49:22,301 {pool-7-thread-1} INFO  [StreamingUpdateSolrServer] starting runner: org.apache.solr.client.solrj.impl.StreamingUpdateSolrServer$Runner@1dbef987
2010-10-24 23:49:33,287 {pool-7-thread-1} ERROR [StreamingUpdateSolrServer] error
java.lang.Exception: Bad Request

Bad Request

request: http://dev01:8080/solr-gmb/update
 at org.apache.solr.client.solrj.impl.StreamingUpdateSolrServer$Runner.run(StreamingUpdateSolrServer.java:145)
 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 at java.lang.Thread.run(Thread.java:619)
2010-10-24 23:49:33,287 {pool-7-thread-1} INFO  [StreamingUpdateSolrServer] finished: org.apache.solr.client.solrj.impl.StreamingUpdateSolrServer$Runner@1dbef987

I just had a miserable failure with SOLRJ. Somehow StreamingUpdateSolrServer failed on some of the items that are being indexed, but others succeeded. It simply throws out an Exception with "Bad Request" message, without any further explanation or stack trace. I suspect that this is due to malformed data, but after double checking, I'm almost sure that they are ok (especially since others are being accepted without problem?).

Can anyone pinpoint any possible reason why this failed miserably? Or do I have a better option in approaching the problem by myself (e.g. different ways of debugging, etc.)? Thanks much!

2010-10-24 23:49:21,662 {ask-scheduler-5} INFO  [ProductIndexService] Updating product index in batch ...
2010-10-24 23:49:21,851 {ask-scheduler-5} INFO  [ProductIndexService]  Indexing total 28575 products ...
2010-10-24 23:49:22,301 {pool-7-thread-1} INFO  [StreamingUpdateSolrServer] starting runner: org.apache.solr.client.solrj.impl.StreamingUpdateSolrServer$Runner@1dbef987
2010-10-24 23:49:33,287 {pool-7-thread-1} ERROR [StreamingUpdateSolrServer] error
java.lang.Exception: Bad Request

Bad Request

request: http://dev01:8080/solr-gmb/update
 at org.apache.solr.client.solrj.impl.StreamingUpdateSolrServer$Runner.run(StreamingUpdateSolrServer.java:145)
 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 at java.lang.Thread.run(Thread.java:619)
2010-10-24 23:49:33,287 {pool-7-thread-1} INFO  [StreamingUpdateSolrServer] finished: org.apache.solr.client.solrj.impl.StreamingUpdateSolrServer$Runner@1dbef987

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文