在 SOLRJ 中使用 StreamingUpdateSolrServer 建立索引的问题
我刚刚在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论