cassandra-2.0

com.impetus.kundera.query.QueryHandlerException: No entity found by the name: <EntityName>

和自甴很熟 提交于 2019-12-02 11:18:28
I am getting the following error when I run my application through SBT Console in Intellij IDEA 15, when the list page is opened which shows records from database: com.impetus.kundera.query.QueryHandlerException: No entity found by the name: Employee at com.impetus.kundera.query.KunderaQuery.initEntityClass(KunderaQuery.java:608) ~[kundera-core-3.2.jar:na] at com.impetus.kundera.query.KunderaQuery.postParsingInit(KunderaQuery.java:540) ~[kundera-core-3.2.jar:na] at com.impetus.kundera.query.QueryResolver.getQueryImplementation(QueryResolver.java:86) ~[kundera-core-3.2.jar:na] at com.impetus

Cassandra: Coordinator node timed out waiting for replica nodes' responses

戏子无情 提交于 2019-12-02 10:40:42
I was importing about 4 million rows from CSV using COPY. 90 minutes into the process, I got the following error which suggests some problem in waiting for replica nodes. The Keyspace is setup with replication factor of 1 and there is only one node in the cluster. So why does the coordinator have to wait for any other node? Processed 4050000 rows; Write: 624.27 rows/ss code=1100 [Coordinator node timed out waiting for replica nodes' responses] message="Operation timed out - received only 0 responses." info= {'received_responses': 0, 'required_responses': 1, 'write_type': 0, 'consistency': 1}

Best practices on upgrading cassandra

柔情痞子 提交于 2019-12-02 10:11:04
I am getting errors from pyspark connecting to cassandra because it appears I am using a too old a cassandra: [idf@node1 python]$ nodetool -h localhost version ReleaseVersion: 2.0.17 [idf@node1 python]$ [idf@node1 cassandra]$ java --version Unrecognized option: --version Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. [idf@node1 cassandra]$ java -version java version "1.8.0_45" Java(TM) SE Runtime Environment (build 1.8.0_45-b14) Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode) [idf@node1 cassandra]$ I want to upgrade

How to Increase Transaction per second(TPS) in cassandra by using DataStax java Driver

十年热恋 提交于 2019-12-02 09:35:15
The setup: 2-node Cassandra 2.0.7.31 cluster replicas=1 DataStax java driver 2.0 Problem I am using Datastax java driver for load balancing. I and generating 50000+ thread load by Jmeter but getting very low TPS. near about 1700 tps I have not changed any performance related parameter In cassandra.yaml can any one suggest which parameter should I use to get satisfactory TPS. I herd Most of the Folks are getting 10000+ tps with Cassandra. Thanks in advance By TPS you mean Ligthweight Transaction Per Second or just Operation per second . If it is Operation Per Second . Figure out whats your

cassandra 2.2 CQl Shell supports python 2.7

喜欢而已 提交于 2019-12-02 08:28:18
问题 Error I am get when trying to start cql Shell >cqlsh CQL Shell supports only Python 2.7 > I have installed python2.7 but it is still giving the same error. do i have to set path some were? i have installed Cassandra 2.2 from datastax suing this command sudo yum install dsc22 回答1: Depending on your distribution and its version you cannot change the default python version of the system without breaking the system. If you have Python 2.7 installed then its interpreter is probably on your path as

Package for accessing Cassandra database in R

喜夏-厌秋 提交于 2019-12-02 06:27:54
I have tried RCassandra and RJDBC but unfortunately it seems that these bindings work only with the old Cassandra 1.x. Is there any binding for Cassandra 2.x in R language? This is not true, the current version of RJDBC works with Cassandra 2.X. Download latest release, with C* 2.x compatibility : cassandra-jdbc-2.1.1.jar However there's one caveat that you have to also download the java dependencies and put them into your JAVA ClassPath (MacOS: /Library/Java/Extensions), otherwise you would encounter the painful Error in .jfindClass(as.character(driverClass)[1]) : class not found when

cassandra 2.2 CQl Shell supports python 2.7

丶灬走出姿态 提交于 2019-12-02 05:29:15
Error I am get when trying to start cql Shell >cqlsh CQL Shell supports only Python 2.7 > I have installed python2.7 but it is still giving the same error. do i have to set path some were? i have installed Cassandra 2.2 from datastax suing this command sudo yum install dsc22 Depending on your distribution and its version you cannot change the default python version of the system without breaking the system. If you have Python 2.7 installed then its interpreter is probably on your path as python2.7 . Try running python2.7 --version . If that gives you an output like Python 2.7.x you are good.

Move production env cassandra cluster to AWS cassandra without downtime

拜拜、爱过 提交于 2019-12-02 04:40:42
I have cassandra cluster of 4 nodes running in production environment in on-premise DC. I have to move it to AWS cassandra. I don't want move cassandra to dynamoDB due to some reason. Cassandra version used is pretty old i.e. 1.2.9. How do I move cassandra from on-premise DC to AWS cassandra without data loss and zero downtime. Regards, Vivek Create a new DC in AWS. Configure inter DC sync between the both DCs. Decommision the old DC. https://docs.datastax.com/en/cassandra/3.0/cassandra/operations/opsAddDCToCluster.html I've done this before. As Alex Tbk said, you'll add nodes at AWS with a

How to read the cassandra nodetool histograms percentile and other columns?

只愿长相守 提交于 2019-12-01 20:36:31
How to read the cassandra nodetool histograms percentile and other coulmns? Percentile SSTables Write Latency Read Latency Partition Size Cell Count (micros) (micros) (bytes) 50% 1.00 14.24 4055.27 149 2 75% 35.00 17.08 17436.92 149 2 95% 35.00 24.60 74975.55 642 2 98% 86.00 35.43 129557.75 770 2 99% 103.00 51.01 186563.16 770 2 Min 0.00 2.76 51.01 104 2 Max 124.00 36904729.27 12359319.16 924 2 They show the distribution of the metrics. For example, in your data the write latency for 95% of the requests were 24.60 microseconds or less. 95% of the partitions are 642 bytes or less with 2 cells.

Cassandra - Overlapping Data Ranges

不想你离开。 提交于 2019-12-01 19:44:31
I have the following 'Tasks' table in Cassandra. Task_ID UUID - Partition Key Starts_On TIMESTAMP - Clustering Column Ends_On TIMESTAMP - Clustering Column I want to run a CQL query to get the overlapping tasks for a given date range. For example, if I pass in two timestamps (T1 and T2) as parameters to the query, I want to get the all tasks that are applicable with in that range (that is, overlapping records). What is the best way to do this in Cassandra? I cannot just use two ranges on Starts_On and Ends_On here because to add a range query to Ends_On, I have to have a equality check for