分享

solr4.9.1数据导入的问题,求高手帮忙

caiyifeng 发表于 2015-2-6 17:26:23 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 3 32936
本人搭建了solrcloud,sorl版本是4.9.1,创建collection 都正常,但在导入oracle数据的时候报如下错误,搜了下,据说是
solr-dataimporthandler-4.9.1.jar 有bug,需要修改,但我一时没办法找到,请大虾帮忙看看
报错信息如下:

159384 [http-bio-8080-exec-7] INFO  org.apache.solr.servlet.SolrDispatchFilter  – [admin] webapp=null path=/admin/cores params={indexInfo=false&_=1423192629061&wt=json} status=0 QTime=10
159659 [http-bio-8080-exec-9] INFO  org.apache.solr.servlet.SolrDispatchFilter  – [admin] webapp=null path=/admin/info/system params={_=1423192629344&wt=json} status=0 QTime=17
168162 [http-bio-8080-exec-15] INFO  org.apache.solr.core.SolrCore  – [goodsInfo-shard2-replica1] webapp=/solr path=/admin/file/ params={file=admin-extra.menu-top.html&_=1423192637850&contentType=text/html;charset%3Dutf-8} status=0 QTime=14
168175 [http-bio-8080-exec-16] INFO  org.apache.solr.core.SolrCore  – [goodsInfo-shard2-replica1] webapp=/solr path=/admin/file/ params={file=admin-extra.menu-bottom.html&_=1423192637854&contentType=text/html;charset%3Dutf-8} status=0 QTime=20
168230 [http-bio-8080-exec-15] INFO  org.apache.solr.core.SolrCore  – [goodsInfo-shard2-replica1] webapp=/solr path=/replication params={command=details&_=1423192637924&wt=json} status=0 QTime=6
168264 [http-bio-8080-exec-9] INFO  org.apache.solr.core.SolrCore  – [goodsInfo-shard2-replica1] webapp=/solr path=/admin/file/ params={file=admin-extra.html&_=1423192637935} status=0 QTime=15
168267 [http-bio-8080-exec-6] INFO  org.apache.solr.core.SolrCore  – [goodsInfo-shard2-replica1] webapp=/solr path=/admin/luke params={numTerms=0&_=1423192637921&show=index&wt=json} status=0 QTime=48
168276 [http-bio-8080-exec-8] INFO  org.apache.solr.core.SolrCore  – [goodsInfo-shard2-replica1] webapp=/solr path=/admin/ping params={action=status&_=1423192637940&wt=json} status=503 QTime=17
168298 [http-bio-8080-exec-7] INFO  org.apache.solr.core.SolrCore  – [goodsInfo-shard2-replica1] webapp=/solr path=/admin/system params={_=1423192637929&wt=json} status=0 QTime=57
172124 [http-bio-8080-exec-17] INFO  org.apache.solr.core.SolrCore  – [goodsInfo-shard2-replica1] webapp=/solr path=/select params={distrib=false&wt=javabin&version=2&rows=10&df=text&fl=gds_id,score&shard.url=http://192.168.110.12:8080/solr/goodsInfo-shard2-replica1/|http://192.168.110.11:8080/solr/goodsInfo-shard2-replica2/|http://192.168.110.13:8080/solr/goodsInfo-shard2-replica3/&NOW=1423192660754&start=0&q=*:*&_=1423192641748&isShard=true&fsv=true} hits=12020 status=0 QTime=63
172125 [http-bio-8080-exec-16] INFO  org.apache.solr.core.SolrCore  – [goodsInfo-shard3-replica3] webapp=/solr path=/select params={distrib=false&wt=javabin&version=2&rows=10&df=text&fl=gds_id,score&shard.url=http://192.168.110.13:8080/solr/goodsInfo-shard3-replica1/|http://192.168.110.11:8080/solr/goodsInfo-shard3-replica2/|http://192.168.110.12:8080/solr/goodsInfo-shard3-replica3/&NOW=1423192660754&start=0&q=*:*&_=1423192641748&isShard=true&fsv=true} hits=0 status=0 QTime=52
172228 [http-bio-8080-exec-14] INFO  org.apache.solr.core.SolrCore  – [goodsInfo-shard2-replica1] webapp=/solr path=/select params={NOW=1423192660754&shard.url=http://192.168.110.12:8080/solr/goodsInfo-shard2-replica1/|http://192.168.110.11:8080/solr/goodsInfo-shard2-replica2/|http://192.168.110.13:8080/solr/goodsInfo-shard2-replica3/&df=text&ids=65713,65711,65730,65831,65262,30216,65709,65477,65490,65385&q=*:*&distrib=false&_=1423192641748&wt=javabin&isShard=true&version=2&rows=10} status=0 QTime=30
172246 [http-bio-8080-exec-19] INFO  org.apache.solr.core.SolrCore  – [goodsInfo-shard2-replica1] webapp=/solr path=/select params={indent=true&q=*:*&_=1423192641748&wt=json} hits=12020 status=0 QTime=197
179856 [http-bio-8080-exec-7] INFO  org.apache.solr.core.SolrCore  – [goodsInfo-shard2-replica1] webapp=/solr path=/admin/mbeans params={cat=QUERYHANDLER&_=1423192649555&wt=json} status=0 QTime=2
180207 [http-bio-8080-exec-18] INFO  org.apache.solr.core.SolrCore  – [goodsInfo-shard2-replica1] webapp=/solr path=/admin/mbeans params={cat=QUERYHANDLER&_=1423192649908&wt=json} status=0 QTime=1
180217 [http-bio-8080-exec-15] INFO  org.apache.solr.core.SolrCore  – [goodsInfo-shard2-replica1] webapp=/solr path=/dataimport params={indent=true&command=status&_=1423192649916&wt=json} status=0 QTime=1
180227 [http-bio-8080-exec-2] INFO  org.apache.solr.core.SolrCore  – [goodsInfo-shard2-replica1] webapp=/solr path=/dataimport params={indent=true&command=show-config&_=1423192649911} status=0 QTime=17
186765 [http-bio-8080-exec-14] INFO  org.apache.solr.handler.dataimport.DataImporter  – Loading DIH Configuration: data-config.xml
186776 [http-bio-8080-exec-14] INFO  org.apache.solr.handler.dataimport.config.DIHConfiguration  – gds_id is a required field in SolrSchema . But not found in DataConfig
186777 [http-bio-8080-exec-14] INFO  org.apache.solr.handler.dataimport.DataImporter  – Data Configuration loaded successfully
186793 [http-bio-8080-exec-14] INFO  org.apache.solr.core.SolrCore  – [goodsInfo-shard2-replica1] webapp=/solr path=/dataimport params={optimize=false&indent=true&clean=true&commit=true&verbose=false&command=full-import&debug=false&wt=json} status=0 QTime=31
186795 [Thread-17] INFO  org.apache.solr.handler.dataimport.DataImporter  – Starting Full Import
186803 [http-bio-8080-exec-19] INFO  org.apache.solr.core.SolrCore  – [goodsInfo-shard2-replica1] webapp=/solr path=/dataimport params={indent=true&command=status&_=1423192656501&wt=json} status=0 QTime=1
186963 [Thread-17] INFO  org.apache.solr.handler.dataimport.JdbcDataSource  – Creating a connection for entity item with URL: jdbc:oracle:thin:@132.37.5.191:8899:UATDB2
187157 [http-bio-8080-exec-18] INFO  org.apache.solr.update.processor.LogUpdateProcessor  – [goodsInfo-shard3-replica3] webapp=/solr path=/update params={distrib.from=http://192.168.110.11:8080/solr/goodsInfo-shard3-replica2/&update.distrib=FROMLEADER&_version_=-1492325683027771392&wt=javabin&version=2} {deleteByQuery=*:* (-1492325683027771392)} 0 93
187167 [http-bio-8080-exec-8] INFO  org.apache.solr.update.processor.LogUpdateProcessor  – [goodsInfo-shard1-replica2] webapp=/solr path=/update params={distrib.from=http://192.168.110.11:8080/solr/goodsInfo-shard1-replica1/&update.distrib=FROMLEADER&_version_=-1492325683031965696&wt=javabin&version=2} {deleteByQuery=*:* (-1492325683031965696)} 0 100
188091 [http-bio-8080-exec-2] INFO  org.apache.solr.search.SolrIndexSearcher  – Opening [url=mailto:Searcher@7c85e8fe[goodsInfo-shard2-replica1]Searcher@7c85e8fe[goodsInfo-shard2-replica1[/url]] realtime
188105 [http-bio-8080-exec-2] INFO  org.apache.solr.update.processor.LogUpdateProcessor  – [goodsInfo-shard2-replica1] webapp=/solr path=/update params={distrib.from=http://192.168.110.11:8080/solr/goodsInfo-shard2-replica2/&update.distrib=FROMLEADER&_version_=-1492325683030917120&wt=javabin&version=2} {deleteByQuery=*:* (-1492325683030917120)} 0 677
188856 [Thread-17] INFO  org.apache.solr.handler.dataimport.JdbcDataSource  – Time taken for getConnection(): 1892
192814 [updateExecutor-1-thread-2] ERROR org.apache.solr.update.StreamingSolrServers  – error
org.apache.solr.common.SolrException: Bad Request

request: http://192.168.110.11:8080/solr/goodsInfo-shard2-replica2/update?update.distrib=TOLEADER&distrib.from=http%3A%2F%2F192.168.110.12%3A8080%2Fsolr%2FgoodsInfo-shard2-replica1%2F&wt=javabin&version=2
        at org.apache.solr.client.solrj.impl.ConcurrentUpdateSolrServer$Runner.run(ConcurrentUpdateSolrServer.java:241)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)
195331 [updateExecutor-1-thread-2] ERROR org.apache.solr.update.StreamingSolrServers  – error
org.apache.solr.common.SolrException: Bad Request

request: http://192.168.110.11:8080/solr/goodsInfo-shard2-replica2/update?update.distrib=TOLEADER&distrib.from=http%3A%2F%2F192.168.110.12%3A8080%2Fsolr%2FgoodsInfo-shard2-replica1%2F&wt=javabin&version=2
        at org.apache.solr.client.solrj.impl.ConcurrentUpdateSolrServer$Runner.run(ConcurrentUpdateSolrServer.java:241)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)
197217 [Thread-17] INFO  org.apache.solr.handler.dataimport.DocBuilder  – Import completed successfully
197242 [updateExecutor-1-thread-2] ERROR org.apache.solr.update.StreamingSolrServers  – error
org.apache.solr.common.SolrException: Bad Request

已有(3)人评论

跳转到指定楼层
nextuser 发表于 2015-2-6 19:34:23
看到这个错误,也是醉了,确实找不出答案
回复

使用道具 举报

bioger_hit 发表于 2015-2-6 20:22:20
这个版本挺高的,4.5好像存在,但是在4.9.1应该不存在。看看配置是不是错误了
回复

使用道具 举报

caiyifeng 发表于 2015-2-7 18:13:19
配置不会错的,我不用solrcloud,直接在win环境下,导入成功的
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条