Solr8.0.0并非所有记录都已建立索引

时间:2019-04-12 06:37:44

标签: solr

data-config.xml

<dataConfig>
<dataSource type="JdbcDataSource"
            driver="com.mysql.jdbc.Driver"
            batchSize="-1"
            autoReconnect="true"
            socketTimeout="0"
            connectTimeout="0"
            url="jdbc:mysql://xxxx/livenews?zeroDateTimeBehavior=convertToNull"
            user="admin"
            password="admin"/>
<document>
<document>
<entity name="news"
    query="select * from news">
     <field column="posting_id" name="posting_id"/>
     <field column="date" name="date"/>
     <field column="name" name="name"/>
     <field column="currency" name="currency"/>
     <field column="country" name="country"/>
     <field column="expiry" name="expiry"/>

  </entity>
</document>
</dataConfig>

在进行完全导入时,收到以下消息-
最后更新:11:31:09
请求:1,提取:951,104,已跳过:0,已处理:951,104
开始时间:4分钟前

但是总览显示了
上次修改时间:2分钟前
数字文档:941601
最大文档数:941601

并非所有记录都已建立索引。记录显示以下消息-

WARN false SimplePropertiesWriter Unable to read: dataimport.properties

ERROR false EntityProcessorBase getNext() failed for query 'select * from news':org.apache.solr.handler.dataimport.DataImportHandlerException: java.sql.SQLException: Operation not allowed after ResultSet closed

ERROR false DocBuilder Exception while processing: news document : SolrInputDocument(fields: []):org.apache.solr.handler.dataimport.DataImportHandlerException: java.sql.SQLException: Operation not allowed after ResultSet closed

ERROR false DataImporter Full Import failed:java.lang.RuntimeException: java.lang.RuntimeException: org.apache.solr.handler.dataimport.DataImportHandlerException: java.sql.SQLException: Operation not allowed after ResultSet closed

ERROR false CommitTracker auto commit error...:org.apache.solr.common.SolrException: Error opening new searcher

如果我将batchSize更改为1000,则solr停止工作。必须再次重新启动solr。
都尝试过-
mysql-connector-java-5.1.15-bin.jar
mysql-connector-java-5.1.47-bin.jar

0 个答案:

没有答案