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 achieve what you > want, howe

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
rtition > size, 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 wrote: > >> access pattern

Re: cassandra database design

2016-08-31 Thread Stone Fang
ware Engineer | @calonso <https://twitter.com/calonso> > > On 31 August 2016 at 11:47, Stone Fang wrote: > >> Hi all, >> have some questions on how to define clustering key. >> >> have a table like this >> >> CREATE TABLE datacenter{ >> &g

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 partitions.an

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: a solution of getting cassandra cross-datacenter latency at a certain time

2016-08-08 Thread Stone Fang
Mon, Aug 8, 2016 at 8:50 AM, Ryan Svihla wrote: > >> The first issue I can think of is the Latency table, if I understand you >> correctly, has an unbounded size for the partition key of DC and will over >> time just get larger as more measurements are recorded. >&

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. *thoug

Re: Exclude a host from the repair process

2016-07-21 Thread Stone Fang
er > 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 > France

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
> > 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 missed some information about t

user@cassandra.apache.org

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 st

Re: how to start a embed cassandra instance?

2016-07-14 Thread Stone Fang
server >>> >>> On Tue, Jul 12, 2016 at 12:56 PM, Peddi, Praveen >>> wrote: >>> >>>> We do something similar by starting CassandraDaemon class directly (you >>>> would need to provide a yaml file though). You can start and stop >>>

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 process in order to continue > w

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

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, Jaydeep

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 > uses when testing write