datastax

Datastax Cassandra odbc driver and starting cql2 on cqlsh 3 gives error as cqlsh: error: no such option: -2

别等时光非礼了梦想. 提交于 2019-12-12 02:15:50
问题 I have installed datastax ODBC driver for cassndra and also i have created keyspace and some tables using cql 3. But ODBC driver is not showing up those tables. Also in odbc documentation i read that the driver does not currently support version 3.0 of the Cassandra Query Language (CQL3) and the driver will not recognize keyspaces and column families that are defined with CQL 3. So in order to use cql 2 i am using following command which is suggested in driver documentation: ...\cqlsh” -2 But

DatastaxEnteprise: node vs instance, correct AMI image, why do I need storage

筅森魡賤 提交于 2019-12-12 01:09:58
问题 Currently, we are evaluating datastax enteprise as our provider of Cassandra and Spark.We consider deploying Datastax cluster on AWS. I have following questions: 1) In step 1 of Datastax on EC2 installation manual, I need to choose correct AMI Image: Currently there are 7 of them. Which is the correct one: (DataStax Auto-Clustering AMI 2.5.1-pv, DataStax Auto-Clustering AMI 2.6.3-1204-pv, DataStax Auto-Clustering AMI 2.6.3-1404-pv....) 2) The moment we launch the cluster, do we pay only for

Why does DevCenter of Datastax has row restrictions to 1000?

房东的猫 提交于 2019-12-11 23:36:13
问题 There is a limit of displaying 1000 rows for the tables in Datastax Devcenter. Any reason for having this option? Because when queried as SELECT count(*) FROM tablename; the performance from Cassandra is going to be same whether displaying 1000 records or complete records set. 回答1: DevCenter version 1.6.0 introduces result set paging which allows you to browse all the rows in your result set. In DevCenter 1.6.0 the "with limit" value sets the paging size, e.g. the number of records to view

Regular expression search or LIKE type feature in cassandra

淺唱寂寞╮ 提交于 2019-12-11 19:47:04
问题 I am using datastax cassandra ver 2.0. How do we search in cassandra column a value using regular expression.Is there way to achieve 'LIKE' ( as in sQL) functionality ? I have created table with below schema. CREATE TABLE Mapping ( id timeuuid, userid text, createdDate timestamp, createdBy text, lastUpdateDate timestamp, lastUpdateBy text, PRIMARY KEY (id,userid) ); I inserted few test records as below. id | userid | createdby -------------------------------------+----------+-----------

Joining streaming data on table data and update the table as the stream receives , is it possible?

我与影子孤独终老i 提交于 2019-12-11 19:46:33
问题 I am using spark-sql 2.4.1 , spark-cassandra-connector_2.11-2.4.1.jar and java8. I have scenario , where I need join streaming data with C*/Cassandra table data. If record/join found I need to copy the existing C* table record to another table_bkp and update the actual C* table record with latest data. As the streaming data come in I need to perform this. Is this can be done using spark-sql steaming ? If so , how to do it ? any caveats to take care ? For each batch how to get C* table data

Executing a LOGGED BATCH warning in Cassandra logs

自闭症网瘾萝莉.ら 提交于 2019-12-11 18:26:23
问题 Our Java Application doing a batch inserts on 1 of the table, That table schema is something like.. CREATE TABLE "My_KeySpace"."my_table" ( key text, column1 varint, column2 bigint, column3 text, column4 boolean, value blob, PRIMARY KEY (key, column1, column2, column3, column4) ) WITH CLUSTERING ORDER BY ( column1 DESC, column2 DESC, column3 ASC, column4 ASC ) AND COMPACT STORAGE AND bloom_filter_fp_chance = 0.1 AND comment = '' AND crc_check_chance = 1.0 AND dclocal_read_repair_chance = 0.0

connecting to cassandra nodes on a datastax cluster on EC2 Ruby on Rails

天大地大妈咪最大 提交于 2019-12-11 17:46:25
问题 I created a datastax cassandra Enterprise cluster with 2 cassandra nodes, 2 search nodes and 2 Analytics nodes. Everything seems to work correctly EXCEPT, I can't connect to it from outside. If I'm on node0 server I can run the cassandra-cli and connect to the cassandra nodes on port 9160 but when I tried to connect using datastax-rails gem, I get "No live servers" I also tried datastax devCenter which tries to connect to the native port 9042 but also didn't work. I'm really puzzled, any help

DataStax AMI hangs on

青春壹個敷衍的年華 提交于 2019-12-11 16:38:19
问题 I am installing Cassandra on Amazon AWS using this tutorial http://www.datastax.com/documentation/cassandra/2.0/cassandra/install/installAMILaunch.html So far I am using just one node ami-7f33cd08 of type m3-large put in subnet. From the AWS perspective the instance launches, but when I log in I get straight away Cluster started with these options: --clustername myDSCcluster --totalnodes 1 --version community Installation started.. And Installation started. just keeps there with newline being

How data will be consistent on cassandra cluster

允我心安 提交于 2019-12-11 14:45:42
问题 I have a doubt when i read datastax documentation about cassandra write consistency. I have a question on how cassandra will maintain consistent state on following scenario: Write consistency level = Quorum replication factor = 3 As per docs, When a write occurs coordinator node will send this write request to all replicas in a cluster. If one replica succeed and other fails then coordinator node will send error response back to the client but node-1 successfully written the data and that

cassandra, secondary indexes building during adding of a new node lasts forever

你离开我真会死。 提交于 2019-12-11 13:59:43
问题 I'm trying to add new node to our cluster (cassandra 2.1.11, 16 nodes, 32Gb ram, 2x3Tb hdd, 8core cpu, 1 datacenter, 2 racks, about 700Gb of data on each node). After start of new node, data (approx 600Gb total) from 16 existing nodes successfully transfered to new node and building of secondary indexes starts. The process of secondary indexes building looks normal, i see info about successfull completition of some secondary indexes building and some stream tasks: INFO [StreamReceiveTask:9]