datastax

Which Cassandra version is more stable for Production deployment? And which Cassandra driver is better?

余生颓废 提交于 2019-12-10 22:05:51
问题 In My organisation we are planning to use Cassandra and these days we are running some experimental tests against Custom Configuraiton to check the better and stable verison of Cassandra. And we are using DataStax drivers. We are running tests, INSERT into and Select * from CQL statements in very tight loop with higher load like 10K qps. So any one has any experience on which Cassandra version is better and stable and which drivers shall be used? Thanks in advance. 回答1: You cannot go wrong

Which CQL version corresponds to which Cassandra version?

你离开我真会死。 提交于 2019-12-10 22:03:26
问题 The CQL documentation is organized according to the CQL version, not the Cassandra product version. Obviously, I want to read the CQL documentation corresponding to the Cassandra release I'm using, but I can't find comprehensive info on which CQL version corresponds to which Cassandra version: CQL 3.1 documentation is titled "CQL for Cassandra 2.0 & 2.1", but newer CQL docs no longer mention Cassandra versions The Product compatibility page only maps versions of OpsCenter, Cassandra and

Sorting order in cassandra result

那年仲夏 提交于 2019-12-10 21:04:10
问题 I created table CREATE TABLE testtab ( testtabmainid bigint, testtabid timeuuid, posteddate timestamp, description text, year bigint, month bigint, day bigint, PRIMARY KEY ((year,month,day),posteddate,testtabmainid) ) WITH CLUSTERING ORDER BY (posteddate DESC,testtabmainid desc); then on SELECT testtabmainid,posteddate,year,month, day FROM testtab; i got result like this testtabmainid / posteddate / year / month / day 90 / 2016-12-01 11:19:11+0530 / 2016 / 11 / 30 89 / 2016-11-30 16:21:58

Can't retrieve by UDT key from cassandra with datastax java driver

女生的网名这么多〃 提交于 2019-12-10 18:01:57
问题 I'm trying to store objects in cassandra with a user defined type as the partition key. I am using the datastax java driver for object mapping, and while I am able to insert into the database, I cannot retrieve the object. If I change the partition key to use a non-udt (such as text) I am able to save and retrieve (even if there are other udt of the same type on the object). From reading the documentation it appears that UDTs are allowed as keys. I've also not been able to find any indication

How to Connect to Cassandra Remotely Using DevCenter

廉价感情. 提交于 2019-12-10 16:04:40
问题 I setup the DataStax Cassandra Sandbox on Azure using their image. I was able to run OpsCenter locally on the server without any issues. The install is Ubuntu which I am very new to. Per this post Apache Cassandra remote access, I should be able to set my rpc_address to 0.0.0.0 to allow remote access to my database . However it says unable to connect when attempting a connection from DevCenter on my local Windows 8 PC. Here are my settings: The contact host address is the virtual ip address

Datastax Java Driver does not connect if one host is missing

大城市里の小女人 提交于 2019-12-10 12:36:37
问题 If I am not wrong, one can connect to a Cassandra cluster knowing at least one of the nodes that is in the cluster, and then the others can be discovered. Lets say I have three nodes (1, 2 and 3) and I connect to those nodes like this: Cluster.builder().addContactPoints("1,2,3".split(",")).build(); Then, if node 3 for example goes down, and the IP cannot be resolved, this line of code will throw an IllegalArgumentException as stated in the docs: @throws IllegalArgumentException if no IP

Why Datastax community edition installation turned out to be enterprise?

独自空忆成欢 提交于 2019-12-10 12:12:10
问题 Update Ok, some more factors discovered, this image was taken after I clicked using "manage existing cluster, and added 127.0.0.1 as host node" so I guess there should be a configuration where I can set the package to be community edition not enterprise. But If I do create new cluster where I'm able to pick community edition package, the problem is that it tries to install cassandra and datastax-agent over these nodes and finishes with errors dismiss and retry While trying to fix a cassandra

Issues with datastax spark-cassandra connector

南笙酒味 提交于 2019-12-10 11:53:16
问题 Before i go ahead and explain the question can anyone please tell me the difference between sparkSQL and CassandraSQLContext ? I am trying to run a scala code(don't want to create jar for testing purpose) on spark-cassandra cluster. So, i have the following code which does some basic query on cassandra. But every time i run the code i get the following error : Java.lang.ClassNotFoundException: com.datastax.spark.connector.rdd.partitioner.CassandraPartition Even though i have mentioned for the

Cassandra Timeouts with No CPU Usage

狂风中的少年 提交于 2019-12-10 10:15:18
问题 I am getting Cassandra timeouts using the Phantom-DSL with the Datastax Cassandra driver. However, Cassandra does not seem to be overloaded. Below is the exception I get: com.datastax.driver.core.exceptions.OperationTimedOutException: [node-0.cassandra.dev/10.0.1.137:9042] Timed out waiting for server response at com.datastax.driver.core.RequestHandler$SpeculativeExecution.onTimeout(RequestHandler.java:766) at com.datastax.driver.core.Connection$ResponseHandler$1.run(Connection.java:1267) at

Cannot achieve consistency level ONE: info={ 'required_replicas': 1, 'alive_replicas': 0, 'consistency': 1}

这一生的挚爱 提交于 2019-12-08 19:26:29
问题 It looks like keyspace replication is not happening correctly in my Cassandra setup, I need some ideas in troubleshooting this. I have configured multi datacenter cluster but to begin with I have set the keyspace to use SimpleStrategy with RF 3. The column families exist: cqlsh:kairosdb> select columnfamily_name from system.schema_columnfamilies where keyspace_name = 'kairosdb'; columnfamily_name ------------------- data_points row_key_index string_index (3 rows) but I am unable to query on