how to start a embed cassandra instance?

2016-07-12 Thread Stone Fang
Hi, how to start a embed cassandra instance?so we can do a unit test on local,dont need to start a cassandra server. https://github.com/jsevellec/cassandra-unit this project is good,but the license is not suitable. how do you achieve this? thanks in advance stone

Re: Exclude a host from the repair process

2016-07-14 Thread Stone Fang
dont think it is necessary to remove the down node. the repair will continue comparing with other up node.ignore the down node. On Wed, Jul 13, 2016 at 9:44 PM, Jean Carlo wrote: > If a node is down in my cluster. > > Is it possible to exclude him from the repair

Re: Exclude a host from the repair process

2016-07-21 Thread Stone Fang
n the racks you are using etc. > > > > This being said, if a node was supposed to be part of a repair process, > the repair of all the subranges including the down node will fail. That's > what I have seen happening so far. @Stone Fang, not sure who is right on > this (I might have miss

multi datacenter improvement

2016-07-21 Thread Stone Fang
Hi All, I am thinking about the issue of cassandra multi datacenter. open a ticket to track this.welcome to your point. https://issues.apache.org/jira/browse/CASSANDRA-12257 *Environment* active-active cassandra datacenter. set write consistency level=local_quorum to get a high resquest response.

Re: Exclude a host from the repair process

2016-07-21 Thread Stone Fang
paired between the 2 other > replicas that are up (considering RF=3). The work is to be done, you can > follow that, vote for it or even develop it if it is something that is > worth it for you Jean. > > C*heers > --- > Alain Rodriguez - al...@thelastpickle.com &

CassandraDaemon&

2016-07-19 Thread Stone Fang
Hi All, there are two questions CassandraDaemon. 1. I do confuse about the EmbededCassandraService.java think it should provide a CassandraDaemon stop method.find a ticket about this https://issues.apache.org/jira/browse/CASSANDRA-7595. but it not accepted in C * 3.x.anyone know why? 2. I have

Re: how to start a embed cassandra instance?

2016-07-14 Thread Stone Fang
t;>> https://github.com/doanduyhai/Achilles/wiki/CQL-embedded-cassandra-server >>> >>> On Tue, Jul 12, 2016 at 12:56 PM, Peddi, Praveen <pe...@amazon.com> >>> wrote: >>> >>>> We do something similar by starting CassandraDaemon class directly (yo

Re: whats the default .yaml file that cassandra-stress uses

2016-07-07 Thread Stone Fang
there is a simple config file for testing."cqlstress-example.yaml" under the tool folder. you can customize this file to achieve your test stone. On Thu, Jul 7, 2016 at 4:28 PM, Daiyue Weng wrote: > Hi, I am wondering what's the default .yaml file that cassandra-stress >

archive cassandra data

2016-07-10 Thread Stone Fang
Hi all, Have some thought on this issue . https://issues.apache.org/jira/browse/CASSANDRA-8460 but still have not received reply after comment for several days,it is a old ticket,created on 11/Dec/14.anybody know how to go on this ticket. thanks in advance! stone

Re: How to get current value of commitlog_segment_size_in_mb?

2016-07-07 Thread Stone Fang
commitlog_segment_size_in_mb is configed in cassandra.yaml.dont think that it wolud be stored in Cassandra system table. the following is the introduction of Cassandra System table. https://docs.datastax.com/en/cql/3.1/cql/cql_using/use_query_system_c.html On Fri, Jul 8, 2016 at 4:23 AM,

Re: a solution of getting cassandra cross-datacenter latency at a certain time

2016-08-08 Thread Stone Fang
er as more measurements are recorded. >> >> Regards, >> >> Ryan Svihla >> >> On Aug 8, 2016, at 2:58 AM, Stone Fang <cnstonef...@gmail.com> wrote: >> >> *objective*:get cassandra cross-datacenter latency in time >> >> *existing tick

a solution of getting cassandra cross-datacenter latency at a certain time

2016-08-08 Thread Stone Fang
*objective*:get cassandra cross-datacenter latency in time *existing ticket:* there is a ticket [track cross-datacenter latency]( https://issues.apache.org/jira/browse/CASSANDRA-11569) but it is a statistics value from node starting,i want to get the instantaneous value in a certain time.

Re: cassandra database design

2016-08-31 Thread Stone Fang
t; Carlos Alonso | Software Engineer | @calonso <https://twitter.com/calonso> > > On 31 August 2016 at 11:47, Stone Fang <cnstonef...@gmail.com> wrote: > >> Hi all, >> have some questions on how to define clustering key. >> >> have a table like this >> >

cassandra unit test

2016-09-05 Thread Stone Fang
Call QueryProcessor.execute method to insert data into table in cassandra unit test file. public static UntypedResultSet execute(String query, ConsistencyLevel cl, Object... values) throws RequestExecutionException { return execute(query, cl, internalQueryState(), values); }

Re: cassandra database design

2016-09-01 Thread Stone Fang
ize, number of partitions and read strategy to find the sweet spot for > your use case. > > Regards > > Carlos Alonso | Software Engineer | @calonso <https://twitter.com/calonso> > > On 1 September 2016 at 02:58, Stone Fang <cnstonef...@gmail.com> wrote: > >> acce

cassandra database design

2016-08-31 Thread Stone Fang
Hi all, have some questions on how to define clustering key. have a table like this CREATE TABLE datacenter{ datacentername varchar, publish timestamp, value varchar, PRIMARY KEY(datacentername,publish) } *issues:* there are only two datacenter,so the data would only have two

Hintedhandoff mutation

2016-08-17 Thread Stone Fang
Hi All, I want to differ hintedhandoff mutation and normal write mutation when i receive a mutation. how to get this in cassandra source code.have not found any attribute about this in Mutation class. or there is no way to get this. thanks stone

Re: DataStax Spark driver performance for analytics workload

2017-10-10 Thread Stone Fang
@kurt greaves doubt that need to read all the data.it is common that there are so many records in cassandra cluster. if loading all the data,how to analyse? On Mon, Oct 9, 2017 at 9:49 AM, kurt greaves wrote: > spark-cassandra-connector will provide the best way to