Reputation: 347
I can do select operation from cassandra database using Apache MetaModel.But insert,delete,and update operation is not happening.
I am using latest cassendra version 3.0.7 and using datastax/java driver.
After that i have used cassandra-jdba driver.So, when i am trying to create updatablejdbcContext using cassandra connection, it is giving error:
java.sql.SQLSyntaxErrorException: unconfigured table schema_keyspaces
Upvotes: 0
Views: 143
Reputation: 871
In order to connect to Cassandra via MetaModel you don't need supply a driver. MetaModel takes care of the driver dependency and hides it from you as a user.
When creating CassandraDataContext, you need to specify the keyspace. I suspect the keyspace you specified does not match the keyspace from the Cassandra instance you are running. You might need to first create a new keyspace after a fresh installation of Cassandra.
You should provide a code snippet how you are trying to use MetaModel. Otherwise it is hard to find where exactly the problem is.
Upvotes: 0