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

SOLR failed to create index for Cassandra 2.1.1 list which have user defined data type

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: 4.10.2
    • Fix Version/s: None
    • Labels:

      Description

      16767 [qtp297774990-12] INFO org.apache.solr.handler.dataimport.DataImporter – Loading DIH Configuration: dataconfigCassandra.xml
      16779 [qtp297774990-12] INFO org.apache.solr.handler.dataimport.DataImporter – Data Configuration loaded successfully
      16788 [Thread-15] INFO org.apache.solr.handler.dataimport.DataImporter – Starting Full Import
      16789 [qtp297774990-12] INFO org.apache.solr.core.SolrCore – [Entity_dev] 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=27
      16810 [qtp297774990-12] INFO org.apache.solr.core.SolrCore – [Entity_dev] webapp=/solr path=/dataimport params=

      {indent=true&command=status&_=1416042006354&wt=json}

      status=0 QTime=0
      16831 [Thread-15] INFO org.apache.solr.handler.dataimport.SimplePropertiesWriter – Read dataimport.properties
      16917 [Thread-15] INFO org.apache.solr.search.SolrIndexSearcher – Opening Searcher@6214b0dc[Entity_dev] realtime
      16945 [Thread-15] INFO org.apache.solr.handler.dataimport.JdbcDataSource – Creating a connection for entity Entity with URL: jdbc:cassandra://10.234.31.153:9160/galaxy_dev
      17082 [Thread-15] INFO org.apache.solr.handler.dataimport.JdbcDataSource – Time taken for getConnection(): 136
      17429 [Thread-15] ERROR org.apache.solr.handler.dataimport.DocBuilder – Exception while processing: Entity document : SolrInputDocument(fields: []):org.apache.solr.handler.dataimport.DataImportHandlerException: Unable to execute query: select * from entity Processing Document # 1
      at

      org.apache.solr.handler.dataimport.DataImportHandlerException.wrapAndThrow(DataImportHandlerException.java:71)
      at org.apache.solr.handler.dataimport.JdbcDataSource$ResultSetIterator.<init>(JdbcDataSource.java:283)
      at org.apache.solr.handler.dataimport.JdbcDataSource.getData(JdbcDataSource.java:240)
      at org.apache.solr.handler.dataimport.JdbcDataSource.getData(JdbcDataSource.java:44)
      at org.apache.solr.handler.dataimport.SqlEntityProcessor.initQuery(SqlEntityProcessor.java:59)
      at org.apache.solr.handler.dataimport.SqlEntityProcessor.nextRow(SqlEntityProcessor.java:73)
      at org.apache.solr.handler.dataimport.EntityProcessorWrapper.nextRow(EntityProcessorWrapper.java:243)
      at org.apache.solr.handler.dataimport.DocBuilder.buildDocument(DocBuilder.java:476)
      at org.apache.solr.handler.dataimport.DocBuilder.buildDocument(DocBuilder.java:415)
      at org.apache.solr.handler.dataimport.DocBuilder.doFullDump(DocBuilder.java:330)
      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)
      Caused by: java.lang.NullPointerException
      at org.apache.cassandra.cql.jdbc.ListMaker.compose(ListMaker.java:61)
      at org.apache.cassandra.cql.jdbc.TypedColumn.<init>(TypedColumn.java:68)
      at org.apache.cassandra.cql.jdbc.CassandraResultSet.createColumn(CassandraResultSet.java:1174)
      at org.apache.cassandra.cql.jdbc.CassandraResultSet.populateColumns(CassandraResultSet.java:240)
      at org.apache.cassandra.cql.jdbc.CassandraResultSet.<init>(CassandraResultSet.java:200)
      at org.apache.cassandra.cql.jdbc.CassandraStatement.doExecute(CassandraStatement.java:169)
      at org.apache.cassandra.cql.jdbc.CassandraStatement.execute(CassandraStatement.java:205)
      at org.apache.solr.handler.dataimport.JdbcDataSource$ResultSetIterator.<init>(JdbcDataSource.java:276)
      ... 12 more

      Cassandra Table:
      CREATE TABLE dev.entity (

      id uuid PRIMARY KEY,
      begining int,
      domain text,
      domain_type text,
      template_name text,
      field_values list<frozen<fieldmap>> )

      CREATE TYPE galaxy_dev.fieldmap (
      key text, value text );

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              madheswaran madheswaran
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: