when I set CDC to true on a table using cqlsh it gives me an error
Unknown property CDC
do you have any idea how can solve this error?
Cassandra implemented CDC from 3.8 and you should upgrade your Cassandra installation.
Related
I have an error with Spark-Cassandra load. Pls help!
This is known bug in the alpha version of Spark Cassandra Connector 3.0. You need to use 3.0.0-beta version that was released this week.
P.S. You don't need to create SparkSession instance in Zeppelin - it's already there. You can set properties for Cassandra in the Interpreter settings, or even pass via option when reading or writing...
I'm trying to use GeoSpatial example from Cassandra documentation: https://docs.datastax.com/en/dse/6.7/cql/cql/cql_using/search_index/queriesGeoSpatial.html
CREATE TABLE test ( id text PRIMARY KEY, point 'PointType', linestring 'LineStringType');
I'm getting error:
SyntaxException: Error setting type PointType: Unable to find abstract-type class 'org.apache.cassandra.db.marshal.PointType'
I'm using stack:
[cqlsh 5.0.1 | Cassandra 3.11.1 | CQL spec 3.4.4 | Native protocol v4]
How to solve it?
The documentation you are looking at is for DSE 6.7 which is a commercial product has extended functionality over Cassandra 3.11.1. Cassandra 3.11.1 does not support the PointType.
Depending on what you are trying to do you, there are a number of open source projects that support geospatial extensions for Cassandra:
GeoMesa
Elassandra
I have created a cluster called test with three nodes in my machine using ccm (All the nodes are UP). I want to access the cluster using Java API.
However, I get the error below:
All host(s) tried for query failed (tried: /127.0.0.1:9042(com.datastax.driver.core.exceptions.InvalidQueryException: unconfigured table schema_keyspaces)
Cassandra version : 3.11.4
cassandra driver core : 2.1.9
Part of my code :
public static void main(String args[])
{
//creating Cluster object
Cluster cluster = Cluster.builder().addContactPoint("127.0.0.1").build();
//Creating Session object
Session session = cluster.connect();
}
Anyway to resolve this?
Apparently schema_keyspaces isnt available in the specified cassandra version. I suggest to utilize the latest cassandra drivers , since that it is compatibility issue.
Version 2.1 of the Cassandra Java driver is not compatible with Apache Cassandra 3.11 (see the Compatibility Matrix).
You will need to upgrade to at least Java driver v3.0 to connect to a Cassandra 3.11 cluster. Cheers!
I am using Cassandra 3.11 docker image for my application. But I am getting below. Can someone suggest a fix here
Enable Thrift server of Cassandra
The error means that JanusGraph can't connect to cassandra with thrift, So you have to enable thrift on cassandra.
Use the below command to enable thrift
nodetool enablethrift
If I create a new project like this .
cluster = Cluster.builder().addContactPoint("127.0.0.1").build();
this code works.
But if I take all the jars from this project and migrate the jars to my own project .the code above doesn't work and it says:
13/07/01 16:27:16 ERROR core.Connection: [/127.0.0.1-1] No handler set for stream 1 (this is a bug, either of this driver or of Cassandra, you should report it)
com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: [/127.0.0.1])
What version of Cassandra are you running? Have you enabled the native protocol in your cassandra.yaml?
In Cassandra 1.2.0-1.2.4 the native protocol was disabled by default, but in 1.2.5+ it's on by default.
See https://github.com/apache/cassandra/blob/cassandra-1.2.5/conf/cassandra.yaml#L335
That's the most common reason I've seen for not being able to connect with the driver.