[
https://issues.apache.org/jira/browse/SOLR-6809?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14230015#comment-14230015
]
Shalin Shekhar Mangar commented on SOLR-6809:
---------------------------------------------
Looks like the NullPointerException is being thrown from Cassandra's JDBC
driver. It's probably better to ask this question in the cassandra forums first.
> SOLR failed to create index for Cassandra 2.1.1 list which have user defined
> data type
> --------------------------------------------------------------------------------------
>
> Key: SOLR-6809
> URL: https://issues.apache.org/jira/browse/SOLR-6809
> Project: Solr
> Issue Type: Bug
> Components: contrib - DataImportHandler
> Affects Versions: 4.10.2
> Reporter: madheswaran
> Labels: patch
>
> 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 );
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]