datastax

Upgrade cassandra cql spec

試著忘記壹切 提交于 2020-01-14 05:26:12
问题 Is there any way to upgrade cassandra cql spec version from 3.1.1 to 3.1.4 without upgrading cassandra itself? We are using cassandra version 2.0.9 and haven't found any documentation related to this issue. 来源: https://stackoverflow.com/questions/26386341/upgrade-cassandra-cql-spec

Unable to connect to Spark master

浪子不回头ぞ 提交于 2020-01-13 19:44:10
问题 I start my DataStax cassandra instance with Spark: dse cassandra -k I then run this program (from within Eclipse): import org.apache.spark.sql.SQLContext import org.apache.spark.SparkConf import org.apache.spark.SparkContext object Start { def main(args: Array[String]): Unit = { println("***** 1 *****") val sparkConf = new SparkConf().setAppName("Start").setMaster("spark://127.0.0.1:7077") println("***** 2 *****") val sparkContext = new SparkContext(sparkConf) println("***** 3 *****") } } And

What are the differences between a node, a cluster and a datacenter in a cassandra nosql database?

久未见 提交于 2020-01-11 14:49:26
问题 I am trying to duplicate data in a cassandra nosql database for a school project using datastax ops center. From what I have read, there is three keywords: cluster, node, and datacenter, and from what I have understand, the data in a node can be duplicated in another node, that exists in another cluster. And all the nodes that contains the same (duplicated) data compose a datacenter. Is that right? If it is not, what is the difference? 回答1: The hierarchy of elements in Cassandra is: Cluster

datastax Opscenter can't add nodes, “Error provisioning cluster: Request ID is invalid” ,

廉价感情. 提交于 2020-01-11 07:19:40
问题 Update 2 There was a bug in Opscenter not matching dsc22 configuration with cassandra community version, this solved one problem. Update After reading the opscenter log again I think there actually something wrong with the 4 authentication fields or some ssh configuration, but I still don't know what exactly should be done, The field says "Local node credentials (sudo) private key (optional) the scenario is as following: I installed 4 nodes with vagrant and ansible where each has dsc22

How can I restore Cassandra snapshots?

杀马特。学长 韩版系。学妹 提交于 2020-01-10 07:58:10
问题 I'm building a backup and restore process for a Cassandra database so that it's ready when I need it, and so that I understand the details in order to build something that will work for production. I'm following Datastax's instructions here: http://www.datastax.com/documentation/cassandra/2.0/cassandra/operations/ops_backup_restore_c.html. As a start, I'm seeding the database on a dev box then attempting to make the backup/restore work. Here's the backup script: #!/bin/bash cd /opt/apache

dse-driver connection refused

◇◆丶佛笑我妖孽 提交于 2020-01-07 06:14:15
问题 I am trying to connect to my Datastax enterprise Cassandra install on a server. When I try to connect I receive an error: Cassandra connection error { [Error: All host(s) tried for query failed. First host tried, XX.XX.XX.XX:9042: Error: connect ECONNREFUSED XX.XX.XX.XX:9042. See innerErrors.] innerErrors: { 'XX.XX.XX.XX:9042': { Error: connect ECONNREFUSED XX.XX.XX.XX:9042 at Object.exports._errnoException (util.js:896:11) at exports._exceptionWithHostPort (util.js:919:20) at TCPConnectWrap

How is sorting done in cassandra? [closed]

拜拜、爱过 提交于 2020-01-07 05:29:27
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago . I am a newbie in Cassandra. Does Cassandra follow any specified sorting algorithm like bubble sort , binary sort , etc.? If not, How does it sort in order by command? 回答1: It doesn't, or at least it shouldn't. In Cassandra you build your data model around your use cases. So if you

Need to querying into a column (or collection) in Cassandra

僤鯓⒐⒋嵵緔 提交于 2020-01-06 20:19:45
问题 everyone :D I'm working with Cassandra (Datastax version) and I have an issue. I want to modeling a column who (always) gonna change. That's very hard, because I can't just create a column family with 1,2,3,4..10 columns. Because, tomorrow probably can change. I think in collections, but I got to query into these. I mean, I need query into this information every second. Ex: With map: <'col1':'val1','col2':'val2'> I need to query like this: SELECT * FROM example WHERE 'col1' = 'val1' AND 'col2

Getting only 10 rows in Solr Cassandra search

大城市里の小女人 提交于 2020-01-05 07:17:09
问题 I am working on Datastax Cassandra with Apache Solr for multiple partial search. Issue is, everytime I am getting only 10 rows even once I am doing count(*) query, I am able to check there are 1300 rows belong to particular query. nandan@cqlsh:testo> select id from empo where solr_query = 'isd:9*'; id -------------------------------------- 5ee5fca6-6f48-11e6-8b77-86f30ca893d3 27e3e3bc-6f48-11e6-8b77-86f30ca893d3 f3156e76-6f47-11e6-8b77-86f30ca893d3 f315ac74-6f47-11e6-8b77-86f30ca893d3

CQLSH is not recognized in google cloud datastax cluster nodes

元气小坏坏 提交于 2020-01-05 04:21:37
问题 I have deployed a 4 node datastax cluster in GCP. I can ssh into each of the VM nodes but cqlsh is not recognized.Can you please help me to understand where I am going wrong error: Connection error: ('Unable to connect to any servers', {'127.0.0.1': error(111, "Tried connecting to [('127.0.0.1', 9042)]. Last error: Connection refused")}) 回答1: If your cluster is working correctly, then the nodes must know about each other by their own IPs (internal or external). So Cassandra isn't configured