datastax-enterprise

Datastax Mismatch for Key Issue

落花浮王杯 提交于 2019-12-01 01:46:41
Our current setup contain DSE 5.0.2 version with 3 node cluster.Currently we are facing issue with heavy load and node failure issue.Debug.log details is given below: DEBUG [ReadRepairStage:8] 2016-09-27 14:11:58,781 ReadCallback.java:234 - Digest mismatch: org.apache.cassandra.service.DigestMismatchException: Mismatch for key DecoratedKey(5503649670304043860, 343233) (45cf191fb10d902dc052aa76f7f0b54d vs ffa7b4097e7fa05de794371092c51c68) at org.apache.cassandra.service.DigestResolver.resolve(DigestResolver.java:85) ~[cassandra-all-3.0.7.1159.jar:3.0.7.1159] at org.apache.cassandra.service

IAM Policy for OpsCenter backup to S3 user

余生长醉 提交于 2019-12-01 00:35:41
Using OpsCenter 5.1.0 and trying to add S3 as a location for snapshot backups. What are the necessary permissions in AWS IAM for the opscenter user? So far, I have the following policy: "Statement": [ { "Effect": "Allow", "Action": [ "s3:ListAllMyBuckets", "s3:GetBucketLocation" ], "Resource": "arn:aws:s3:::*" }, { "Effect": "Allow", "Action": [ "s3:ListBucket", "s3:GetBucketLocation" ], "Resource": [ "arn:aws:s3:::cassandra-bkup" ] }, { "Effect": "Allow", "Action": [ "s3:DeleteObject", "s3:GetObject", "s3:PutObject" ], "Resource": [ "arn:aws:s3:::cassandra-bkup/*" ] } ] but backups are still

Starting cassandra as a service does not work for 2.0.5, sudo cassandra -f works

情到浓时终转凉″ 提交于 2019-11-30 23:06:08
When I try to start cassandra on ubuntu 12.04 (installed via Datastax's dsc20 package) as a service as follows : $ sudo service cassandra start it says *could not access pidfile for Cassandra & no other messages or anything in logs. But when I try to run as a root user( sudo cassandra -f ) it just works properly & cassandra is started. While trying to debug I found that when trying to run as a non-root user I was getting these messages: ERROR 17:48:08,432 Exception encountered during startup java.lang.AssertionError: Directory /var/lib/cassandra/data is not accessible. .. java.io

Datastax Mismatch for Key Issue

陌路散爱 提交于 2019-11-30 20:52:08
问题 Our current setup contain DSE 5.0.2 version with 3 node cluster.Currently we are facing issue with heavy load and node failure issue.Debug.log details is given below: DEBUG [ReadRepairStage:8] 2016-09-27 14:11:58,781 ReadCallback.java:234 - Digest mismatch: org.apache.cassandra.service.DigestMismatchException: Mismatch for key DecoratedKey(5503649670304043860, 343233) (45cf191fb10d902dc052aa76f7f0b54d vs ffa7b4097e7fa05de794371092c51c68) at org.apache.cassandra.service.DigestResolver.resolve

Cassandra Datastax Enterprise using Amazon Elastic IP

浪尽此生 提交于 2019-11-30 15:34:13
问题 I would like to run Cassandra Datastax Enterprise on Amazon EC2 instances using not the node private IP address but Elastic Public IPs My current configuration looks as follows: /etc/dse/cassandra/cassandra.yaml seed_provider: - class_name: org.apache.cassandra.locator.SimpleSeedProvider parameters: seeds: "publicIP" listen_address: "publicIP" endpoint_snitch:Ec2Snitch rpc_address: "publicIP" The "dse" service is not starting properly. /var/log/cassandra/system.log is showing the following

Cassandra Datastax Enterprise using Amazon Elastic IP

烈酒焚心 提交于 2019-11-30 13:57:56
I would like to run Cassandra Datastax Enterprise on Amazon EC2 instances using not the node private IP address but Elastic Public IPs My current configuration looks as follows: /etc/dse/cassandra/cassandra.yaml seed_provider: - class_name: org.apache.cassandra.locator.SimpleSeedProvider parameters: seeds: "publicIP" listen_address: "publicIP" endpoint_snitch:Ec2Snitch rpc_address: "publicIP" The "dse" service is not starting properly. /var/log/cassandra/system.log is showing the following error: org.apache.cassandra.exceptions.ConfigurationException: Unable to bind to address /<publicIP>:7000

Getting sometimes NullPointerException while saving into cassandra

老子叫甜甜 提交于 2019-11-30 09:58:33
问题 I have following method to write into cassandra some time it saving data fine. When I run it again , sometimes it is throwing NullPointerException Not sure what is going wrong here ... Can you please help me. ' @throws(classOf[IOException]) def writeDfToCassandra(o_model_family:DataFrame , keyspace:String, columnFamilyName: String) = { logger.info(s"writeDfToCassandra") o_model_family.write.format("org.apache.spark.sql.cassandra") .options(Map( "table" -> columnFamilyName, "keyspace" ->

How do I set the consistency level of an individual CQL query in CQL3?

懵懂的女人 提交于 2019-11-30 06:52:29
In the earlier beta releases of CQ L, there was a command I could use to set the read / write consistency of an individual CQL operation. It looked like this: SELECT * FROM users WHERE state='TX' USING CONSISTENCY QUORUM; I use CQL3 regularly and have a use-case where I need to be able to perform a read with a higher consistency level than the rest of our application. I looked through the CQL3 reference and didn't find any mention of any CQL syntax that allows me to change the consistency settings on a per-query basis, unless I'm using cqlsh (not useful for application development.) How am I

Get current date in cassandra cql select

佐手、 提交于 2019-11-30 02:44:38
问题 In SQL, I am able to do: select getdate(), getdate() - 7 Which returns the current date as well as current date - 7 days. I want to achieve the same in Cassandra CQL. I tried: select dateof(now()) But that does not work. It works only on insert and not in select. How can I get the same? Any help would be appreciated. 回答1: select dateof(now()) On its own, you are correct, that does not work. But if you have a table that you know only has one row (like system.local ): aploetz@cqlsh

Getting sometimes NullPointerException while saving into cassandra

杀马特。学长 韩版系。学妹 提交于 2019-11-29 18:07:52
I have following method to write into cassandra some time it saving data fine. When I run it again , sometimes it is throwing NullPointerException Not sure what is going wrong here ... Can you please help me. ' @throws(classOf[IOException]) def writeDfToCassandra(o_model_family:DataFrame , keyspace:String, columnFamilyName: String) = { logger.info(s"writeDfToCassandra") o_model_family.write.format("org.apache.spark.sql.cassandra") .options(Map( "table" -> columnFamilyName, "keyspace" -> keyspace )) .mode(SaveMode.Append) .save() } ' 18/10/29 05:23:56 ERROR BMValsProcessor: java.lang