Re: Cassandra slow on some reads

2014-03-15 Thread Batranut Bogdan
Whooops  On one of the nodes when running my tests I found an exception java FileNotFoundException : file -Data.db not found at org.apache.cassandra.io.compress.CompressedThrottledReader.open(CompressedThrottledReader.java:52 also got another one coming from java.io.RandomAccessFile.o

Re: Cassandra slow on some reads

2014-03-15 Thread Benedict Elliott Smith
Post the server logs and traces of one of the lengthy queries? On 15 Mar 2014 20:49, "Batranut Bogdan" wrote: > Hello, > > Yes for the first query the server can be slow but no matter what is > should not take 10 seconds to get one key from a column family. I can see > this happening if I have ti

Re: Cassandra slow on some reads

2014-03-15 Thread Batranut Bogdan
Hello, Yes for the first query the server can be slow but no matter what is should not take 10 seconds to get one key from a column family. I can see this happening if I have times like 20 ms for some queries and let's say 300 ms for uncached ones. But I have responses that take from 8 to 20 ms

Re: Serial Consistency and Thrift API

2014-03-15 Thread Panagiotis Garefalakis
Thanks for all your replies. I was thinking to modify YCSB to support lightweight transactions in order to measure the overhead introduced. Since YCSB extends thrift api this is the only way to do it. I am not quite sure how to use CAS but I am now looking at it. If there is an easier way to measur

Re: Scala Driver?

2014-03-15 Thread Joe Stein
Here is an example wrapper how to use the DataStax java driver in scala https://github.com/stealthly/scala-cassandra /*** Joe Stein Founder, Principal Consultant Big Data Open Source Security LLC http://www.stealth.ly Twitter: @allthingshadoop ***

Re: Scala Driver?

2014-03-15 Thread Sergey Murylev
Hi, You can use one of following libs: * https://github.com/Shimi/cascal * https://github.com/newzly/phantom On 15/03/14 21:42, NORD SC wrote: > Hi all, > > I am building a system using the Play 2 Framework with Scala and wonder what > driver I should use or whether I should wrap the Datas

Scala Driver?

2014-03-15 Thread NORD SC
Hi all, I am building a system using the Play 2 Framework with Scala and wonder what driver I should use or whether I should wrap the Datastax java-driver myself? Can you share any experience with the available drivers? I have looked a Phantom briefly which seems to use java-driver internally -

Relation between Atomic Batches and Consistency Level

2014-03-15 Thread Drew Kutcharian
Hi Guys, How do Atomic Batches and Consistency Level relate to each other? More specifically: - Is consistency level set/applicable per statement in the batch or the batch as a whole? - Say if I write a Logged Batch at QUORUM and read it back at QUORUM, what can I expect at normal, single nod

Re: Serial Consistency and Thrift API

2014-03-15 Thread Peter Lin
thanks for sharing that info. I haven't needed to use CAS yet and haven't bothered to look at it. I'll have to document that for hector. On Sat, Mar 15, 2014 at 5:45 AM, Sylvain Lebresne wrote: > On Fri, Mar 14, 2014 at 7:59 PM, Panagiotis Garefalakis < > panga...@gmail.com> wrote: > >> >> Hello

Re: Serial Consistency and Thrift API

2014-03-15 Thread Sylvain Lebresne
On Fri, Mar 14, 2014 at 7:59 PM, Panagiotis Garefalakis wrote: > > Hello all, > > I am running some tests in my cluster and I wanted to try some of the new > features of Cassandra like lightweight transactions and Serial Writes. > Surprisingly I found out that Serial writes are not supported by th