datastax

Cassandra Unable to gossip with any seeds

筅森魡賤 提交于 2019-12-25 04:26:59
问题 At first I downloaded Cassandra 3.7 and installed it on a remote machine (still in the same network) But I wanted to run this as a service so I downloaded and installed the DataStax_DDC_Server 3.7.0 But when I try to connect remotely to the service I get the error: Unable to gossip with any seeds So i followed a couple solutions to that problem. Cassandra Cluster Set up - Unable to gossip with any seeds Apache Cassandra: Unable to gossip with any seeds I don't think its a firewall or port

Unable to launch opscenter due to error: Permission denied: './conf/definitions/opscenter_defs.tar.gz'

隐身守侯 提交于 2019-12-25 03:30:29
问题 When I start OpsCenter, I get following error message: File "build/lib/python2.6/site-packages/opscenterd/Definitions.py", line 271, in updateFiles File "/usr/share/opscenter/lib/py-redhat/2.6/shared/amd64/twisted/internet/defer.py", line 1018, in _inlineCallbacks result = result.throwExceptionIntoGenerator(g) File "/usr/share/opscenter/lib/py-redhat/2.6/shared/amd64/twisted/python/failure.py", line 349, in throwExceptionIntoGenerator return g.throw(self.type, self.value, self.tb) File "build

Why Cassandra TableWriter writing 0 records and how to fix it?

旧城冷巷雨未停 提交于 2019-12-25 03:24:49
问题 I am trying to write an RDD into a Cassandra table. As shown below TableWriter wrote 0 rows several times and finally writes to Cassandra. 18/10/22 07:15:50 INFO TableWriter: Wrote 0 rows to log_by_date in 0.171 s. 18/10/22 07:15:50 INFO Executor: Finished task 4.0 in stage 0.0 (TID 4). 622 bytes result sent to driver 18/10/22 07:15:50 INFO TableWriter: Wrote 0 rows to log_by_date in 0.220 s. 18/10/22 07:15:50 INFO Executor: Finished task 1.0 in stage 0.0 (TID 1). 665 bytes result sent to

Cassandra Timing out because of TTL expiration

久未见 提交于 2019-12-24 14:08:39
问题 Im using a DataStax Community v 2.1.2-1 (AMI v 2.5) with preinstalled default settings+ increased read time out to 10sec here is the issue create table simplenotification_ttl ( user_id varchar, real_time timestamp, insert_time timeuuid, read boolean, msg varchar, PRIMARY KEY (user_id, real_time, insert_time)); Insert Query: insert into simplenotification_ttl (user_id, real_time, insert_time, read) values ('test_3',14401440123, now(),false) using TTL 800; For same 'test_3' I inserted 33,000

Datastax OpsCenter OpenSource not showing “data size” in ring or list view

一曲冷凌霜 提交于 2019-12-24 13:59:10
问题 Using OpsCenter OpenSource version 5.2.1 on Ubuntu 14.04. I cannot see the "Data Size" Metric in Node Ring or List view however, if I click on a single node I can see it's disk usage. I'm not having any luck getting information from datastax agent logs or from opscenterd logs. I suspect that perhaps this is an enterprise only feature? Can provide additional information as requested. Screenshots for clarity can be found here. (sorry, I need more "reputation" to post them directly to this

Connecting to Cassandra sandbox from Windows

我的梦境 提交于 2019-12-24 11:37:43
问题 So I have the VMWare image of Cassandra which is running fine. I am trying to connect from the host OS which is Windows 7 and I am getting connection refused. I tried telnet ipaddress 9160 and the port does not seem to be open. Either the service is not running or a firewall is blocking it. Can someone help with troubleshooting? 回答1: How is your VM's network configured? And what OS are you running? These are details that we need to know. I've been able to get Cassandra to run on an Ubuntu VM

Cassandra CodecNotFoundException: Codec not found for requested operation

淺唱寂寞╮ 提交于 2019-12-24 09:25:10
问题 I have an enum field that i want to map to a column in cassandra public enum MyEnum { Aa, Bb, Cc, } and here is how i registered it CodecRegistry myCodecRegistry = new CodecRegistry(); myCodecRegistry.register(new EnumOrdinalCodec<MyEnum>(MyEnum.class)); cluster = Cluster.builder().addContactPoint(cassandraHosts).withPort(cassandraPort).withCodecRegistry(myCodecRegistry).build(); i am able to connect to cassandra just fine. Here is a snippet of the model class public class MyModel {

Cassandra sorting the results by non-clustering key

假装没事ソ 提交于 2019-12-24 06:03:44
问题 Our use case with Cassandra is to show top 10 recent visitors of a blogpost. Following is the Cassandra table definition CREATE TABLE blogs_by_visitor ( blogposturl text, visitor text, visited_ts timestamp, PRIMARY KEY (blogposturl, visitor) ); Now in order to show top 10 recent visitors for a given blogpost, there needs to be an explicit "order by" clause on timestamp desc. Since visted_ts isn't part of the clustering column in Cassandra, we aren't able to get this done. The reason for

Cassandra sorting the results by non-clustering key

人盡茶涼 提交于 2019-12-24 06:02:05
问题 Our use case with Cassandra is to show top 10 recent visitors of a blogpost. Following is the Cassandra table definition CREATE TABLE blogs_by_visitor ( blogposturl text, visitor text, visited_ts timestamp, PRIMARY KEY (blogposturl, visitor) ); Now in order to show top 10 recent visitors for a given blogpost, there needs to be an explicit "order by" clause on timestamp desc. Since visted_ts isn't part of the clustering column in Cassandra, we aren't able to get this done. The reason for

cassandra 2.1.8, adding new nodes(s), out of memory

匆匆过客 提交于 2019-12-24 05:17:16
问题 I have cassandra 2.1.8 cluster with 16 nodes (Centos 6.6, 1x4core xeon, 32Gb RAM, 3x3Tb HDD, java 1.8.0_65) and trying to add 16 more, one by one, but stuck with the first one. After starting cassandra process on the new node, 16 streams from previously existing nodes to newly added node are starting: nodetool netstats |grep Already Receiving 131 files, 241797656689 bytes total. Already received 100 files, 30419228367 bytes total Receiving 150 files, 227954962242 bytes total. Already received