Solr无法完全导入cassandra DB

时间:2013-04-26 07:39:21

标签: java solr cassandra

我配置了solr和cassandra。当我尝试这样做时:http://localhost:8983/solr/dataimport?command=full-import我收到了一个错误:

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 个答案:

答案 0 :(得分:1)

<强>解决。data-config.xml文件中应输入autoCommit="true"