datastax

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

How can the seemingly odd behavior in Cassandra cluster be explained?

纵然是瞬间 提交于 2020-01-25 20:33:07
问题 I created an Apache Cassandra 2.1.2 cluster of 50 nodes. I named the cluster as "Test Cluster", the default. Then for some testing, I separated one node out of the 50 node cluster. I shut down Cassandra, deleted data dirs, flushed nodetool. Then I edited the single node cluster and called it as "Single Node Test Cluster" I edited seeds, cluster_name and listen_address fields appropriately. I also setup JMX correctly. Now here is what happens. 1. When I run nodetool status on the single node,

How do I disable autocompaction in `cassandra.yaml`?

给你一囗甜甜゛ 提交于 2020-01-25 09:41:08
问题 https://stackoverflow.com/a/47837940/260805 hints that it should be possible. I would like to disable it for a longer period of times (~2 days) when enabling incremental repairs. 回答1: (Disclaimer: I'm a ScyllaDB employee) As far as I know you can disable autocompaction in the following ways: For a column family (Table), by setting its strategy to NullCompactionStrategy. (I think this one is supported only in Scylla, but not in Cassandra) Using nodetool: $ nodetool <options>

Heap Memory default allocation in Cassandra

孤人 提交于 2020-01-24 20:10:35
问题 As per cassandra-env.sh the default heap memory allocation for a 440G Total RAM should be 32765M (Maximum CAP before JVM Swithches to 64 bit reference). So, why is it showing 32210157568 bytes(30718M) when I query "java -XX:+PrintCommandLineFlags -version" or "java -XX:+PrintFlagsFinal -version | grep -iE 'MaxHeapSize'" Why is there difference, of around 2G. FYI: jvm.options files was default & using DSE 5.1.3. 回答1: java -XX:+PrintFlagsFinal has nothing to do with Cassandra, and I don't know

how to query by vertex id in Datastax DSE 5.0 Graph in a concise way?

孤街浪徒 提交于 2020-01-23 13:33:27
问题 It seems that the unique id for vertices is community_id in DSE Graph. I have found that this works (id is long) : v = g.V().has("VertexLabel","community_id",id).next() none of those work: v = g.V("community_id",id).next() v = g.V("community_id","VertexLabel:"+id).next() v = g.V(id).next() v = g.V().hasId(id).next() v = g.V().hasId("VertexLabel:"+id).next() v = g.V("VertexLabel:"+id).next() Edit After some investigation I found that for a vertex v, v.id() returns a LinkedHashMap: Vertex v =

I have three node dse graph cluster. Two node graph enabled one is search enabled. The problem is when i run api request goes on it does not response

a 夏天 提交于 2020-01-16 03:29:08
问题 I have three node dse Cassandra cluster. One node is search enabled, Two node is graph enabled. When I run APIs(which is coded in scala play framework), POST or GET request keeps going and going it does gives a response. There is no any information in logs of Cassandra it is working normally. Earlier i used to use single node cluster where is graph enabled. 回答1: You need to have same workload on all nodes of the same data center, so you need to enable both graph and search on all nodes. 来源:

Cassandra php driver on MacOS - Class 'Cassandra\SimpleStatement' not found

徘徊边缘 提交于 2020-01-15 09:35:08
问题 Good day, everyone. Usually I just using this Official Docs in *nix OS But now i'm using MacOs and this instructions just doesn't work properly. In case of pecl install cassandra I got this message: checking for supported DataStax C/C++ driver version... awk: can't open file /include/cassandra.h source line number 1 configure: error: not supported. Driver version 2.4.2+ required (found ) ERROR: `/private/tmp/pear/install/cassandra/configure --with-php-config=/usr/bin/php-config' failed My

Using cqlsh with ssl

若如初见. 提交于 2020-01-14 11:57:12
问题 I have enabled ssl encryption in my cassandra node and I am trying to figure out how to connect to my node using cqlsh with ssl: When I run ./cqlsh --ssl I get the following error: Validation is enabled; SSL transport factory requires a valid certfile to be specified. Please provide path to the certfile in [ssl] section as 'certfile' option in /root/.cassandra/cqlshrc (or use [certfiles] section) or set SSL_CERTFILE environment variable. I followed the link on https://docs.datastax.com/en

Using cqlsh with ssl

我只是一个虾纸丫 提交于 2020-01-14 11:55:22
问题 I have enabled ssl encryption in my cassandra node and I am trying to figure out how to connect to my node using cqlsh with ssl: When I run ./cqlsh --ssl I get the following error: Validation is enabled; SSL transport factory requires a valid certfile to be specified. Please provide path to the certfile in [ssl] section as 'certfile' option in /root/.cassandra/cqlshrc (or use [certfiles] section) or set SSL_CERTFILE environment variable. I followed the link on https://docs.datastax.com/en