使用 Data-stax Java 驱动程序 1.0.2 版连接到 Cassandra 1.2.1 时,出现错误:
Exception in thread "main" java.lang.IllegalArgumentException: populate_io_cache_on_flush is not a column defined in this metadata
at com.datastax.driver.core.ColumnDefinitions.getIdx(ColumnDefinitions.java:268)
at com.datastax.driver.core.Row.isNull(Row.java:84)
at com.datastax.driver.core.TableMetadata$Options.<init>(TableMetadata.java:440)
at com.datastax.driver.core.TableMetadata.build(TableMetadata.java:107)
at com.datastax.driver.core.Metadata.buildTableMetadata(Metadata.java:124)
at com.datastax.driver.core.Metadata.rebuildSchema(Metadata.java:88)
at com.datastax.driver.core.ControlConnection.refreshSchema(ControlConnection.java:265)
at com.datastax.driver.core.ControlConnection.tryConnect(ControlConnection.java:220)
在下面的行:
cluster = Cluster.builder().addContactPoint("localhost").build();
我尝试删除文件夹 \var\lib\cassandra ,然后也重新启动 cassandra 服务器,这意味着没有以前的数据。服务器启动时没有任何错误,但是当我尝试连接时仍然出现上述错误。