datastax-enterprise

How to store 6 digit precision double/float/decimal number in cassandra?

…衆ロ難τιáo~ 提交于 2021-02-11 14:24:15
问题 I am trying to store some strings of a dataframe in cassandra table. I tried with cassandra table columns defining as float/double/decimal. But every type only storing 2 precision , i.e. 8.00005 as stored as 8.00 69.345 as 69.34 , what is wrong with cassandra table? Why it is not holding all precision digits. How fix this issue ? Let me know if needed any more information of the problem. 回答1: This issue seeme to be with the precision settings for cqlsh. The cassandra is storing the values

Cannot start Cassandra - Snitch's Datacenter Differs from Previous

爷,独闯天下 提交于 2020-06-10 12:54:41
问题 Im trying to start DSE 5.0.1 Cassandra (Single node) in my local. Getting below error: CassandraDaemon.java:698 - Cannot start node if snitch's data center (Cassandra) differs from previous data center (Graph). Please fix the snitch configuration, decommission and rebootstrap this node or use the flag -Dcassandra.ignore_dc=true 回答1: If you are using GossipingPropertyFileSnitch, start Cassandra with the option -Dcassandra.ignore_dc=true If it starts successfully, execute: nodetool repair

Transferring data from one cluster to another in Cassandra

孤街醉人 提交于 2020-04-17 20:35:29
问题 I have an old Cassandra cluster that I want to get rid of, and want to transfer data from only few selected tables from old cluster to a new one that I have created. I have tried using Cassandra's COPY command on a table that has about 15 million rows (approx 20 columns for each row). When I try to import data from the csv file to the same table in our new cluster, I am getting this response constantly : Failed to import 20 rows: WriteTimeout - Error from server: code=1100 [Coordinator node

relevance search in Solr

我的未来我决定 提交于 2020-02-02 14:37:24
问题 I am using DSE5.0.2 version and Solr ( integrated with dse) . I have to do relevance search using solr on the below tables/ data . I have a table in cassandra on which we have created a solr core - CREATE TABLE fullsearch ( launchedtime bigint, hashtag text, solr_query text, PRIMARY KEY (launchedtime)) Now we have created a solr core and searching on the field hashtag . but i want those result which contains max no of hashtag i am searching . for ex : - if data in cassandra is - launchedtime

relevance search in Solr

你离开我真会死。 提交于 2020-02-02 14:35:08
问题 I am using DSE5.0.2 version and Solr ( integrated with dse) . I have to do relevance search using solr on the below tables/ data . I have a table in cassandra on which we have created a solr core - CREATE TABLE fullsearch ( launchedtime bigint, hashtag text, solr_query text, PRIMARY KEY (launchedtime)) Now we have created a solr core and searching on the field hashtag . but i want those result which contains max no of hashtag i am searching . for ex : - if data in cassandra is - launchedtime

IAM Policy for OpsCenter backup to S3 user

让人想犯罪 __ 提交于 2020-01-29 09:48:51
问题 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

Can I use regular Spark Core application library to talk to DSE Spark?

雨燕双飞 提交于 2020-01-25 21:11:29
问题 A couple of days ago we upgraded from DSE 4.6 to DSE 4.7. We're running Spark jobs from Java so I've upgraded spark-core_2.10 Maven dependency from 0.9.1 to 1.2.2 to support the newer Spark 1.2.2 that DSE bundles with. However, when I'm now submitting jobs to master it logs ERROR [sparkMaster-akka.actor.default-dispatcher-2] 2015-11-17 17:50:42,442 Slf4jLogger.scala:66 - org.apache.spark.deploy.ApplicationDescription; local class incompatible: stream classdesc serialVersionUID =