0

我已经配置了 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

如何解决?请帮帮我 :(

4

1 回答 1

1

解决了。data-config.xml文件中应该输入autoCommit="true"

于 2013-04-26T07:53:02.637 回答