Re: Cassandra 1.1.1 on Java 7

2012-09-09 Thread dong.yajun
ruuning for a while, you should set the -Xss to more than 160k when you using jdk1.7. On Sun, Sep 9, 2012 at 3:39 AM, Peter Schuller wrote: > > Has anyone tried running 1.1.1 on Java 7? > > Have been running jdk 1.7 on several clusters on 1.1 for a while now. > > -- > / Peter Schuller (@scode, ht

Consistency QUORUM does not work anymore (hector:Could not fullfill request on this host)

2012-12-11 Thread dong.yajun
hi list, I am using Cassandra with 3 data centers, each DC has more than 10 nodes. the schema for a keyspace: {DC1:3, DC2:3, DC3:3} now, I put some rows using hector with CL Local_Quorum in DC1 ,and then I get a row with the same CL Local_Quorum in DC1,some exceptions were occured: Cassandra wit

Re: Consistency QUORUM does not work anymore (hector:Could not fullfill request on this host)

2012-12-11 Thread dong.yajun
t asking for too much data. > > Cheers > > - > Aaron Morton > Freelance Cassandra Developer > New Zealand > > @aaronmorton > http://www.thelastpickle.com > > On 11/12/2012, at 10:13 PM, dong.yajun wrote: > > > hi list, > > I am using Cass

Re: Consistency QUORUM does not work anymore (hector:Could not fullfill request on this host)

2012-12-11 Thread dong.yajun
); sliceRangeQuery.setRowCount(1); current family has only abort 1 rows, each row has ~10columns, the data abort 25k. On Wed, Dec 12, 2012 at 11:13 AM, dong.yajun wrote: > Thanks aaron. > > more information is I can read data correctly using Aqulies with > Local_Quorum. > > I just check the s

Re: How Cassandra guarantees the replicas if any node is down?

2013-01-29 Thread dong.yajun
and repair –pr operations) > > There should be a ton of information on this you can easily Google. > > Best, > Michael > > From: "dong.yajun" > Reply-To: "user@cassandra.apache.org" > Date: Tuesday, January 29, 2013 7:29 PM > To: "user@cassandra.apa

Is there any way to fetch all data efficiently from a column family?

2013-01-29 Thread dong.yajun
hey List, I consider a way that can read all data from a column family, the following is my thoughts: 1. make a snapshot for all nodes at the same time with a special column family in a cluster, 2. copy these sstables to local disk from cassandra nodes. 3. compact these sstables to a single one

Re: Is there any way to fetch all data efficiently from a column family?

2013-01-29 Thread dong.yajun
1 sstable you can do major compactions but that's not > recommended as it will take a while to get a new sstable big enough to > merge with the other big sstable. So avoid that unless you really know what > you're doing which is what it sounds like your proposing in point 3 ;

Re: Is there any way to fetch all data efficiently from a column family?

2013-01-30 Thread dong.yajun
ons. It is just a somewhat sane idea I > thought of to let you iterate over a large amount of data stored in C*, and > conveniently C* provides Input and Output formats to Hadoop so you can do > fun things like iterate over 500w rows with 1k columns each. > > Honestly, th

Could not connect to cassandra 1.0.9

2012-06-20 Thread dong.yajun
Hi list I'd like to connect to remote Cassandra using Java client, the following code I use, but ImcompatibleClassChangeError was occured, the source that was just dependent on the following jars: apache-cassandra-1.0.9.jar, apache-cassandra-clientutil-1.0.9.jar, apache-cassandra-thrift-1.0.9.jar

Re: Could not connect to cassandra 1.0.9

2012-06-20 Thread dong.yajun
Thanks. I just fix my problem, I missing a jar named libthrift-0.6.jar. On Thu, Jun 21, 2012 at 10:10 AM, dong.yajun wrote: > Hi list > > I'd like to connect to remote Cassandra using Java client, the following > code I use, but ImcompatibleClassChangeError was occured, the

Re: composite key

2012-06-22 Thread dong.yajun
Hi I think you can use an ordered partitioner to store the rows in order, then, you can refer to the implementation of openTSDB which solves the timeseries data using composite key in Hbase. schema design in openTSDB: http://opentsdb.net/schema.html On Sat, Jun 23, 2012 at 9:51 AM, Derek Willia

Re: Java client options for C* v1.2

2013-03-21 Thread dong.yajun
Hello, Any suggestion abort it? whether you use which one, they both contact Cassandra via thrift. I'd suggest you to take look at RingCache, it can help you to compute the endpoint of data on Client side since Cassandra will forward your request on coordinator node. and another solution is tha

Cassandra - conflict resolution for column updates with identical timestamp

2013-03-23 Thread dong.yajun
Hello, I would like to know which write wins in case of two updates with the same client timestamp in Cassandra. Initial data: KeyA: { col1:"val AA", col2:"val BB", col3:"val CC"} Client 1 sends update: KeyA: { col1:"val C1", col2:"val B1"} on Sx Client 2 sends update: KeyA: { col1:"val C2", co

Re: Cassandra - conflict resolution for column updates with identical timestamp

2013-03-23 Thread dong.yajun
Thanks Capriolo, Umm.. so is there any background or history abort this issue? On Sun, Mar 24, 2013 at 2:32 AM, Edward Capriolo wrote: > The value that sorts higher, this way it is deterministic. > > > On Sat, Mar 23, 2013 at 12:12 PM, dong.yajun wrote: > >> Hello, >&

Re: cassandra performance

2013-03-24 Thread dong.yajun
Hello, I'd suggest you to take look at the difference between Nosql and RDMS. Best, On Sun, Mar 24, 2013 at 5:15 PM, 张刚 wrote: > Hello, > I am new to Cassandra.I do some test on a single machine. I install > Cassandra with a binary tarball distribution. > I create a CF to store the data that

(info) Abort the seek op in SSTableIdentityIterator class.

2013-04-11 Thread dong.yajun
Hello, I read the source code of SSTableIdentityIterator with v-1.0.9, and I thought the following code is not necessary, did I miss anything? RandomAccessReader file = (RandomAccessReader) input; file.seek(this.dataStart); here, the value of dataStart is assigned