I am using below CQL syntax to create keyspace only if does not exists :
CREATE KEYSPACE IF NOT EXISTS Test WITH replication
= {'class':'SimpleStrategy', 'replication_factor':1};
but it is giving error :
Exception in thread "main"…
I am running cassandra 1.2.6 and Apache Spark 0.8.0.
Here I am creating a RDD from Cassandra using Spark's newAPIHadoopRDD.
When I run the job from spark appln I find that cassandra is logging the below error messages
INFO 21:36:28,629 Listening for…
I have a User table and its corresponding POJO
@Table
public class User{
@Column(name = "id")
private String id;
// lots of fields
@Column(name = "address")
@Frozen
private Optional address;
// getters and…
I am trying to connect R with Cassandra. Following is my code:
library(RJDBC)
#Load in the Cassandra-JDBC diver
cassdrv <- JDBC("org.apache.cassandra.cql.jdbc.CassandraDriver",
…
I am using map type column in Cassandra 2.1.7. My requirement is that I have to preserve the order of values which I am inserting in Cassandra for later retrieval. For that I have used LinkedHashMap in Java which serves its purpose.
Now, while…
I am learning Apache Kafka-storm-cassandra Integration. I am reading JSON string from the Kafka cluster using Kafka Spout.Then passing it to bolt which parses the JSON and emits the needed value to the 2nd bolt which writes it to Cassandra DB.
But I…
I have 6 Cassandra nodes mainly used for writing (95%).
What's the best approach to inserting data - individual inserts or batches? reason says batches are to be used, while keeping the "batch size" under 5kb to avoid node instability:…
I'm trying to connect to a Datastax Community Edition server 2.1.2 via JDBC but I keep getting the following error no matter what I try to do, even when issuing a very basic command like select * from…
I'm using cassandra-orm plugin (cassandra-orm:0.4.5) for migrating clicks from Postgres DB to Cassandra. (I know I could use raw data import, but I want to make use of groupBy and explicit indexes maintained by the plugin).
The migration procedure…
I am running a Storm topology that reads data from Kafka broker and writes into Cassandra. One of my Cassandra bolts performs read and write operations. My keyspace always set dynamically. Now I want to get a connection to Cassandra using a…
I am trying to insert a data from an xml file into Cassandra database directly. It has 1089090 records on it.
I tried to read it pragmatically using java and got this exception after about 77000 records.
java.sql.SqlNontrasientConnectionException:…
We have install WSO2 Identity Server 4.6.0 and would like to use Cassandra s the primary data store as well as user store manager.
We have not found a clear path to get this implemented.
Can anyone give us a clear path on how to configure this data…
Let assume 10 devices(dev01,dev02,dev03..etc).
It send data with some interval time,we collect those data,so our data schema is
dev01 :int
signalname :string
signaltime :date/time[with YY-MM-DD HHMMSS.mm]
Extradata :String
I want to push…
I want to connect to cassandra 1.2.4 on a remote server through jdbc.
package cassandraclient;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import…
I am having some difficulty creating a column family (table) in cassandra via the cassandra-jdbc driver.
The cql command works correctly in cqlsh, but doesn't when using cassandra jdbc. I suspect this is something to do with the way I have defined…