Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-11148

dataimport form mysql error

    XMLWordPrintableJSON

    Details

    • Type: Test
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: 5.5.4
    • Fix Version/s: None
    • Component/s: Build
    • Labels:
    • Environment:

      Ubuntu14.04 + solr 5.5.4+mysql 5.7.15

      Description

      error occured while import data from mysql to solr:
      2017-07-26 10:01:49.020 WARN (Thread-47) [ x:mycore1] o.a.s.h.d.SolrWriter Error creating document : SolrInputDocument(fields: [deliver_to=桃園市桃園區大興路118-1號4樓, ship_id=fd219e30-7119-11e7-af5d-005056af8f8b])
      org.apache.solr.common.SolrException: Document is missing mandatory uniqueKey field: id
      at org.apache.solr.update.AddUpdateCommand.getIndexedId(AddUpdateCommand.java:97)
      at org.apache.solr.update.processor.DistributedUpdateProcessor.versionAdd(DistributedUpdateProcessor.java:947)
      at org.apache.solr.update.processor.DistributedUpdateProcessor.processAdd(DistributedUpdateProcessor.java:712)
      at org.apache.solr.update.processor.LogUpdateProcessorFactory$LogUpdateProcessor.processAdd(LogUpdateProcessorFactory.java:103)
      at org.apache.solr.handler.dataimport.SolrWriter.upload(SolrWriter.java:74)
      at org.apache.solr.handler.dataimport.DataImportHandler$1.upload(DataImportHandler.java:260)
      at org.apache.solr.handler.dataimport.DocBuilder.buildDocument(DocBuilder.java:524)
      at org.apache.solr.handler.dataimport.DocBuilder.buildDocument(DocBuilder.java:414)
      at org.apache.solr.handler.dataimport.DocBuilder.doFullDump(DocBuilder.java:329)
      at org.apache.solr.handler.dataimport.DocBuilder.execute(DocBuilder.java:232)
      at org.apache.solr.handler.dataimport.DataImporter.doFullImport(DataImporter.java:416)
      at org.apache.solr.handler.dataimport.DataImporter.runCmd(DataImporter.java:480)
      at org.apache.solr.handler.dataimport.DataImporter$1.run(DataImporter.java:461)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              vkjuju Joe Yang
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: