2013-04-26 85 views
0

我配置了solr和cassandra。當我試圖做到這一點:http://localhost:8983/solr/dataimport?command=full-import我得到一個錯誤:Solr無法完全導入cassandra DB

Caused by: java.sql.SQLFeatureNotSupportedException: the Cassandra implementation is always in auto-commit mode 
     at org.apache.cassandra.cql.jdbc.CassandraConnection.setAutoCommit(CassandraConnection.java:382) 
     at org.apache.solr.handler.dataimport.JdbcDataSource$1.call(JdbcDataSource.java:172) 
     at org.apache.solr.handler.dataimport.JdbcDataSource$1.call(JdbcDataSource.java:127) 
     at org.apache.solr.handler.dataimport.JdbcDataSource.getConnection(JdbcDataSource.java:366) 
     at org.apache.solr.handler.dataimport.JdbcDataSource.access$200(JdbcDataSource.java:38) 
     at org.apache.solr.handler.dataimport.JdbcDataSource$ResultSetIterator.<init>(JdbcDataSource.java:240) 
     ... 12 more 

如何解決呢?請幫助我:(

回答

1

解決。data-config.xml文件應鍵入autoCommit="true"

+0

您正在使用Solandra https://github.com/tjake/Solandra? – zengr 2013-05-28 22:00:09