com.datastax.driver.core.exceptions.InvalidQueryException: unconfigured table schema_keyspaces

前端 未结 2 754
悲哀的现实
悲哀的现实 2020-12-03 07:02

I am trying to configure spring data with cassandra. But I am getting bellow error , when my app is deploying in tomcat.

When I check the connection, it is available

相关标签:
2条回答
  • 2020-12-03 07:30

    The problem is that Spring Data Cassandra (as of December 2015 when I write this) does not provide support for Cassandra 3.x. Here's an excerpt from a conversation with one of the developers in the #spring channel on freenode:

    [13:49] <_amicable> Hi all, does anybody know if spring data cassandra supports cassandra 3.x? All dependencies & datastax drivers seem to be 2.x

    [13:49] <@_ollie> amicable: Not in the near future.

    [13:49] <_amicable> _ollie: thanks.

    [13:50] <_amicable> I'll go and look at the relative merits of 2.x vs 3.x then ;)

    [13:51] <@_ollie> SD Cassandra is a community project (so far) and its progress highly depends on how much time the developers can actually spend on it.

    [13:51] <@_ollie> We will have someone joining the team in February 2016 to get the project more closely aligned to the core Spring Data projects.

    0 讨论(0)
  • 2020-12-03 07:52

    It looks like you are using an older version of the driver with Cassandra 3.0. Cassandra 3.0 changed its internal schema metadata representation, and only the latest drivers can parse this metadata.

    Use Java Cassandra driver 3.0.0-alpha5 to connect to Cassandra 3.0.

    0 讨论(0)
提交回复
热议问题