Re: Cassandra Agent

2013-10-11 Thread Ran Tavory
--DRS > >> On Oct 11, 2013, at 6:55 AM, Edward Capriolo wrote: >> >> Stick sandra on the end. Restsandra. >> >>> On Friday, October 11, 2013, Ran Tavory wrote: >>> Seems like the greeks are all used out, how about moving the the japanes

Re: Cassandra Agent

2013-10-10 Thread Ran Tavory
Seems like the greeks are all used out, how about moving the the japanese mythology? it's a brand new pool of names... http://en.wikipedia.org/wiki/Japanese_mythology On Fri, Oct 11, 2013 at 8:29 AM, Blair Zajac wrote: > On 10/10/2013 10:28 PM, Blair Zajac wrote: > >> On 10/10/2013 08:53 PM, S

Re: AssertionError: DecoratedKey(... ) != DecoratedKey (...)

2013-10-06 Thread Ran Tavory
Update: I've reverted hinted_handoff_enabled back to its default value of true and the errors stopped. Is this just a coincidence, or could be related? On Sun, Oct 6, 2013 at 7:23 PM, Ran Tavory wrote: > Pardon me, now with the appropriate subject line... > > Hi, I have a sm

com.datastax.driver.core.exceptions.WriteTimeoutException: Cassandra timeout during write query

2013-10-06 Thread Ran Tavory
Hi all, when using the java-driver I see this error on the client, for reads (as well as for writes). Many of the ops succeed, however I do see a significant amount of errors. com.datastax.driver.core.exceptions.WriteTimeoutException: Cassandra timeout during write query at consistency ONE (1 repl

AssertionError: DecoratedKey(... ) != DecoratedKey (...)

2013-10-06 Thread Ran Tavory
Pardon me, now with the appropriate subject line... Hi, I have a small cluster of 1.2.6 and after some config changes I started seeing errors int the logs. Not sure that's related, but the changes I performed were to disable hinted handoff and disable auto snapshot. I'll try to reverte these, see

[no subject]

2013-10-06 Thread Ran Tavory
Hi, I have a small cluster of 1.2.6 and after some config changes I started seeing errors int the logs. Not sure that's related, but the changes I performed were to disable hinted handoff and disable auto snapshot. I'll try to reverte these, see if the picture changes. But anyway, that seems like

Re: 0.7.0 mx4j, get attribute

2011-02-03 Thread Ran Tavory
Try adding this to the end of the URL: ?template=identity On Thu, Feb 3, 2011 at 4:23 PM, Chris Burroughs wrote: > On 02/02/2011 01:41 PM, Ryan King wrote: > > On Wed, Feb 2, 2011 at 10:40 AM, Chris Burroughs > > wrote: > >> I'm using 0.7.0 and experimenting with the new mx4j support. > >> > >>

Re: Do you have a site in production environment with Cassandra? What client do you use?

2011-01-14 Thread Ran Tavory
Java On Jan 14, 2011 8:25 PM, "Ertio Lew" wrote: > what is the technology stack do you use? > > On 1/14/11, Ran Tavory wrote: >> I use Hector, if that counts. .. >> On Jan 14, 2011 7:25 PM, "Ertio Lew" wrote: >>> Hey, >>> >>>

Re: Do you have a site in production environment with Cassandra? What client do you use?

2011-01-14 Thread Ran Tavory
I use Hector, if that counts. .. On Jan 14, 2011 7:25 PM, "Ertio Lew" wrote: > Hey, > > If you have a site in production environment or considering so, what > is the client that you use to interact with Cassandra. I know that > there are several clients available out there according to the > lang

Re: maven cassandra plugin

2011-01-06 Thread Ran Tavory
Stephen, just FYI cassandra cannot be stopped cleanly. It's jvm must be taken down. So the plugin would need to probably fork a jvm and kill it when it's done. On Thursday, January 6, 2011, B. Todd Burruss wrote: > > > > > > > would u like some testers?  we were about to write one. > > On

Re: Bootstrapping taking long

2011-01-05 Thread Ran Tavory
nough that they were dropping messages > older than RPC_TIMEOUT to cope, it could lose part of the bootstrap > communication permanently. > > On Wed, Jan 5, 2011 at 10:01 AM, Ran Tavory wrote: >> OK, thanks, so I see we had the same problem (I too had multiple keyspace, >> not t

Re: Bootstrapping taking long

2011-01-05 Thread Ran Tavory
e problem (Don't know > if you have to redeploy your cluster though) > > http://www.mail-archive.com/user@cassandra.apache.org/msg07106.html > > > > On Wed, Jan 5, 2011 at 4:29 PM, Ran Tavory wrote: > >> @Thibaut wrong email? Or how's "Avoid dropping messages of

Re: Bootstrapping taking long

2011-01-05 Thread Ran Tavory
ve to use at least 0.6.7 > > > > On Wed, Jan 5, 2011 at 4:19 PM, Edward Capriolo wrote: > >> On Wed, Jan 5, 2011 at 10:05 AM, Ran Tavory wrote: >> > In storage-conf I see this comment [1] from which I understand that the >> > recommended way to bootstrap a new node is

Re: Bootstrapping taking long

2011-01-05 Thread Ran Tavory
me, seed list should be the same >> across the cluster. >> I'm just thinking of other things to try, non-boostrapped nodes should >> join the ring instantly but reads will fail if you aren't using quorum. >> >> >> On Wed, Jan 5, 2011 at 8:51 AM, Ran Tavory w

Re: Bootstrapping taking long

2011-01-05 Thread Ran Tavory
I haven't tried repair. Should I? On Jan 5, 2011 3:48 PM, "Jake Luciani" wrote: > Have you tried not bootstrapping but setting the token and manually calling > repair? > > On Wed, Jan 5, 2011 at 7:07 AM, Ran Tavory wrote: > >> My conclusion is lame: I tri

Re: Bootstrapping taking long

2011-01-05 Thread Ran Tavory
in their list of seeds - always did - and > everything works. (You may ask why I did this. I don't know, I must have > copied it from an example somewhere.) > > On Wed, Jan 5, 2011 at 9:42 AM, Ran Tavory wrote: > >> I was able to make the node join the ring but I'm

Re: Bootstrapping taking long

2011-01-04 Thread Ran Tavory
but if I do it in two phases it did work. So it's either my misunderstanding or a bug... On Wed, Jan 5, 2011 at 7:14 AM, Ran Tavory wrote: > The new node does not see itself as part of the ring, it sees all others > but itself, so from that perspective the view is consistent. > The

Re: Bootstrapping taking long

2011-01-04 Thread Ran Tavory
lhost streams > Mode: Bootstrapping > Not sending any streams. > Not receiving any streams. On Wed, Jan 5, 2011 at 1:20 AM, Nate McCall wrote: > Does the new node have itself in the list of seeds per chance? This > could cause some issues if so. > > On Tue, Jan 4, 2011 at

Re: Bootstrapping taking long

2011-01-04 Thread Ran Tavory
now if you think there is. Or any other advice... On Tuesday, January 4, 2011, Ran Tavory wrote: > Thanks Jake, but unfortunately the streams directory is empty so I don't > think that any of the nodes is anti-compacting data right now or had been in > the past 5 hours. It seems th

Re: Bootstrapping taking long

2011-01-04 Thread Ran Tavory
to monitor the anti-compaction > progress (it puts new SSTables for bootstrapping node in there) > > > On Tue, Jan 4, 2011 at 8:01 AM, Ran Tavory wrote: > >> Running nodetool decommission didn't help. Actually the node refused to >> decommission itself (b/c it wasn't pa

Re: Bootstrapping taking long

2011-01-04 Thread Ran Tavory
ter it had finished moving the data nothing happened for a long time (I'm still waiting, but nothing seems to be happening). Any hints how to analyze a "stuck" bootstrapping node?? thanks On Tue, Jan 4, 2011 at 1:51 PM, Ran Tavory wrote: > Thanks Shimi, so indeed anticompaction

Re: Bootstrapping taking long

2011-01-04 Thread Ran Tavory
the other nodes logs to see if there is any node doing > anticompaction. > I don't remember how much data I had in the cluster when I needed to > add/remove nodes. I do remember that it took a few hours. > > The node will join the ring only when it will finish the bootstrap. > &g

Bootstrapping taking long

2011-01-04 Thread Ran Tavory
I asked the same question on the IRC but no luck there, everyone's asleep ;)... Using 0.6.6 I'm adding a new node to the cluster. It starts out fine but then gets stuck on the bootstrapping state for too long. More than an hour and still counting. $ bin/nodetool -p 9004 -h localhost streams > Mod

Re: Hector version

2010-12-30 Thread Ran Tavory
Use 0.6.0-19 On Friday, December 31, 2010, Zhidong She wrote: > Hi guys, > > We are trying Cassandra 0.6.8, and could you please kindly tell me which > Hector Java client is suitable for 0.6.8? > The Hector 0.7.0 says it's for Cassandra 0.7.X, and shall we use Hector 0.6.0? > > Thanks, > Br > Zh

Re: The mutations to delete sub-columns can't be batched?

2010-12-27 Thread Ran Tavory
an oversight as well. as you can imagine, non of us is a fan of super columns... On Tue, Dec 28, 2010 at 6:28 AM, Roshan Dawrani wrote: > Hi, > > I think I may have found another oversight on the Hector API. > > OrderedRows has a convenient peekLast() method, but it is missing in > OrderedSuperRo

Re: Retrieving TimeUUID sub-columns in reverse order

2010-12-26 Thread Ran Tavory
Roshan, in cassandra.yaml did you define compare_subcolumns_with for the SCF? The subcolumn names are the timeuuid, not the subcolumn values, right? On Sun, Dec 26, 2010 at 9:14 AM, Roshan Dawrani wrote: > Hi, > > I have a super ColumnFamily that has a few super columns, with each having > a gro

Re: Cassandra Monitoring

2010-12-19 Thread Ran Tavory
are with the earlier jmx-to-rest bridge listed in the > operations page: > "JMX-to-REST bridge available > at http://code.google.com/p/polarrose-jmx-rest-bridge"; > > ThanksDave Viner > > > On Sun, Dec 19, 2010 at 7:01 AM, Ran Tavory wrote: > FYI, I just add

Re: Cassandra Monitoring

2010-12-19 Thread Ran Tavory
FYI, I just added an mx4j section to the bottom of this page http://wiki.apache.org/cassandra/Operations On Sun, Dec 19, 2010 at 4:30 PM, Jonathan Ellis wrote: > mx4j? https://issues.apache.org/jira/browse/CASSANDRA-1068 > > > On Sun, Dec 19, 2010 at 8:36 AM, Peter Schuller < > peter.schul...@i

Re: iterate over all the rows with RP

2010-12-12 Thread Ran Tavory
This should be the case, yes, semantics isn't affected by the connection and state isn't kept. What might happen if you read/write with low consistency levels then when you hit a different host on the ring it might have an inconsistent state in case of partition. On Sunday, December 12, 2010, shim

Re: understanding the cassandra storage scaling

2010-12-09 Thread Ran Tavory
> On Thu, Dec 9, 2010 at 11:35 AM, Ran Tavory wrote: > > there are two numbers to look at, N the numbers of hosts in the ring > > (cluster) and R the number of replicas for each data item. R is > configurable > > per column family. > > Typically for large clusters N >

Re: understanding the cassandra storage scaling

2010-12-09 Thread Ran Tavory
there are two numbers to look at, N the numbers of hosts in the ring (cluster) and R the number of replicas for each data item. R is configurable per column family. Typically for large clusters N >> R. For very small clusters if makes sense for R to be close to N in which case cassandra is useful s

Re: Taking down a node in a 3-node cluster, RF=2

2010-11-28 Thread Ran Tavory
to me it makes sense that if hinted handoff is off then cassandra cannot satisfy 2 out of every 3rd writes writes when one of the nodes is down since this node is the designated node of 2/3 writes. But I don't remember reading this somewhere. Does hinted handoff affect David's situation? (David, di

Re: Hector question under cassandra 0.7

2010-11-02 Thread Ran Tavory
u...@cass to bcc Indeed, the KeyspaceOperator isn't thread safe. (and in recent revisions it was extracted to an interface at http://github.com/rantav/hector/blob/master/src/main/java/me/prettyprint/hector/api/Keyspace.javaand implementation at http://github.com/rantav/hector/blob/master/src/main/

Cassandra users meetup in Israel

2010-11-01 Thread Ran Tavory
http://cassandra-il.eventbrite.com/ Hi all, I'm organizing a users meetup in Israel, if you happen to be around you're most welcome to join. Event Details: The first Cassandra users meetup in Israel will take place at outbrain, Natanya on Tuesday Nov 16th 4pm. Please register and get yourself a

Re: Cassandra 0.6.6

2010-10-12 Thread Ran Tavory
it's not official yet, in voting now. On Tue, Oct 12, 2010 at 8:41 PM, marinko pasic wrote: > Hi there, > I'm just wandering is the Cassandra 0.6.6 release, which I found on: > > http://people.apache.org/~eevans/ > > is an official release? If it is not, can you tell me where I can find > offici

Re: Nodes getting slowed down after a few days of smooth operation

2010-10-11 Thread Ran Tavory
Peter, you're my JVM GC hero! Thank you! On Tue, Oct 12, 2010 at 12:38 AM, Peter Schuller < peter.schul...@infidyne.com> wrote: > > My motivation was that since I don't have too much data (10G each node) > then > > why don't I cache the hell out of it, so I started with a cache size of > 100% > >

Re: Nodes getting slowed down after a few days of smooth operation

2010-10-11 Thread Ran Tavory
Thanks Peter, Robert and Brandon. So it seems that the only suspect by now is my excessive caching ;) I'll get a better look at the GC activity next time shit starts to happen, but in the mean time, as for the cache size (cassandra's internal cache), it's row cache capacity is set to 10,000,000. I

Re: Cassandra for graph data structure

2010-09-25 Thread Ran Tavory
Courtney this certainly sounds interesting and as Nate suggested we're always looking for valuable contributions. A few things to keep in mind: - I'm curious, as Lucas has asked - is it possible to create an efficient graph API over cassandra and what are the tradeoffs? - If the API is general enou

Re: Client developer mailing list

2010-08-30 Thread Ran Tavory
awesome, thanks, I'm subscribed :) On Mon, Aug 30, 2010 at 10:05 PM, Jeremy Hanna wrote: > There has been a new mailing list created for those who are working on > Cassandra clients above thrift and/or avro. You can subscribe by sending an > email to client-dev-subscr...@cassandra.apache.org or

Re: Calls block when using Thrift API

2010-08-27 Thread Ran Tavory
did you try connecting to a real cassandra instance, not an embedded one? I use an embedded one for testing and it works, but just to narrow down your problem. On Fri, Aug 27, 2010 at 6:13 PM, Ruben de Laat wrote: > Hi, > > I am new to cassandra, so maybe I am missing something obvious... > Vers

Re: Read before Write

2010-08-27 Thread Ran Tavory
I haven't benchmarked so it's purely theoretical. If there's no caching then I'm pretty sure just writing would yield better performance. If you do cache rows/keys it really depends on your hit ratio. Naturally if you have a small data set and high cache ratio and use row caching I'm pretty sure it

Re: File write errors but cassandra isn't crashing

2010-08-18 Thread Ran Tavory
an also come up with scenarios where you'd > > rather have it read-only than completely dead. > > > > On Wed, Aug 11, 2010 at 12:38 PM, Ran Tavory wrote: > >> Due to administrative error one of the hosts in the cluster lost > permission > >> to write to

Re: KeyRange.token in 0.7.0

2010-08-18 Thread Ran Tavory
orm generated by > TokenFactory.toString and fromString. You should not be generating > them yourself. > > On Wed, Aug 18, 2010 at 7:56 AM, Ran Tavory wrote: > > I'm a bit confused WRT KeyRange's tokens in 0.7.0 > > When making a range query you can either use KeyR

KeyRange.token in 0.7.0

2010-08-18 Thread Ran Tavory
I'm a bit confused WRT KeyRange's tokens in 0.7.0 When making a range query you can either use KeyRange.key or KeyRange.token. In 0.7.0 key was typed as byte[]. tokens remain strings. What does this string represent in case of a RP and in case of an OPP? Did this change in 0.7.0? AFAIK in 0.6.0 if

Re: [RELEASE] 0.7.0 beta1

2010-08-18 Thread Ran Tavory
[cross posting to u...@cass and hector-use...@googlegroups] Happy to announce hector's support in 0.7.0. Hector is a java client for cassandra which wraps the low level thrift interface with a nicer API, adds monitoring, connection pooling and more. I didn't do anything... The amazing 0.7.0 work w

Re: The entry of Cassandra

2010-08-16 Thread Ran Tavory
The common practice is to connect to a few hosts and send request in round robin or other lb tactic. The hosts are symmetric so any host will do. There are also higher lever libraries that help with that as well as connection pooling and other goodies On Mon, Aug 16, 2010 at 1:14 PM, Ying Tang wr

File write errors but cassandra isn't crashing

2010-08-11 Thread Ran Tavory
Due to administrative error one of the hosts in the cluster lost permission to write to it's data directory. So I started seeing errors in the log, however, the server continued serving traffic. It wasn't able to compact and do other write operations but it didn't crash. I was wondering wether that

Re: RuntimeException: Cannot service reads while bootstrapping!

2010-08-04 Thread Ran Tavory
reported https://issues.apache.org/jira/browse/CASSANDRA-1359 On Wed, Aug 4, 2010 at 9:51 PM, Jonathan Ellis wrote: > That's definitely a bug. > > On Wed, Aug 4, 2010 at 2:13 PM, Ran Tavory wrote: > > ok, so I don't send writes to bootstrapping or decommissioned node

Re: RuntimeException: Cannot service reads while bootstrapping!

2010-08-04 Thread Ran Tavory
that aren't part of the ring. Cassandra > rejecting requests when you do is a "feature." > > On Wed, Aug 4, 2010 at 6:52 AM, Ran Tavory wrote: > > Is this a known issue? > > Running 0.6.2 I moved a node to different token and eventually saw errors > in > &g

RuntimeException: Cannot service reads while bootstrapping!

2010-08-04 Thread Ran Tavory
Is this a known issue? Running 0.6.2 I moved a node to different token and eventually saw errors in the log. ERROR [ROW-READ-STAGE:116804] 2010-08-04 06:34:29,699 DebuggableThreadPoolExecutor.java (line 101) Error in ThreadPoolExecutor java.lang.RuntimeException: Cannot service reads while bootst

Re: about cassandra compression

2010-07-26 Thread Ran Tavory
cassandra doesn't compress before storing, no. It may be beneficial to compress, depending on the size of your data, network latency, disk size and data compressability... You'll need to test. I sometimes compress, depending on data size but it's done in the client, On Mon, Jul 26, 2010 at 1:31 PM

Re: CRUD test

2010-07-24 Thread Ran Tavory
n >> underneath. In some cases, the microseconds are generated simply as >> milliseconds * 1000, which doesn't actually fix any sequencing bugs. >> >> On Sat, Jul 24, 2010 at 3:46 PM, Ran Tavory wrote: >> > Hi Oleg, I didn't follow up the entire thread,

Re: CRUD test

2010-07-24 Thread Ran Tavory
Hi Oleg, I didn't follow up the entire thread, but just to let you know that the 0.6.* version of the CLI uses microsec as the time unit for timestamps. Hector also uses micros to match that, however, previous versions of hector (as well as the CLI) used milliseconds, not micro. So if you're using

Re: Question on Eventual Consistency

2010-07-19 Thread Ran Tavory
On Mon, Jul 19, 2010 at 10:43 PM, Peter Schuller < peter.schul...@infidyne.com> wrote: > > I'm using CL=QUORUM (=Hector default) for both reads and writes. Most of > the > > times, the test passes, but sometimes it fails because I get back the old > > value. Since the test is single-threaded, I gu

Re: Question on Eventual Consistency

2010-07-19 Thread Ran Tavory
if your test case is correct then it sounds like a bug to me. With one node, unless you're writing with CL=0 you should get full consistency. On Mon, Jul 19, 2010 at 10:14 PM, Hugo wrote: > Hi, > > Being fairly new to Cassandra I have a question on the eventual > consistency. I'm currently perfo

Re: RE: Using Pelops with Cassandra 0.7.X

2010-07-14 Thread Ran Tavory
a dependency on your library. J Dop *From:* Ran Tavory [mailto:ran...@gmail.com] *Sent:* Wednesday, July 14, 2010 6:36 AM *To:* user@cassandra.apache.org *Subject:* Re: Using Pelops with Cassandra 0.7.X Hector doesn't have 0.7 support yet > > On Jul 14, 2010 1:34 AM, "Peter Harrison"

Re: How to stop Cassandra running in embeded mode

2010-07-14 Thread Ran Tavory
e you doing > this? Thanks. > > > On Fri, Jul 9, 2010 at 10:33 PM, Ran Tavory wrote: > >> The workaround I do is fork always. Each test pulls up its own jvm. >> >> On Jul 9, 2010 9:51 PM, "Jonathan Ellis" wrote: >> >> there's some support

Re: Using Pelops with Cassandra 0.7.X

2010-07-13 Thread Ran Tavory
Hector doesn't have 0.7 support yet On Jul 14, 2010 1:34 AM, "Peter Harrison" wrote: I know Cassandra 0.7 isn't released yet, but I was wondering if anyone has used Pelops with the latest builds of Cassandra? I'm having some issues, but I wanted to make sure that somebody else isn't working on a

Re: Performance Issues

2010-07-13 Thread Ran Tavory
Since you're using hector hector-users@ is a good place to be, so u...@cassandra to bcc operateWithFailover is one stop before sending the request over the network and waiting, so it makes lots of sense that a significant part of the application is spent in it. On Tue, Jul 13, 2010 at 6:22 PM, Sa

Re: How to stop Cassandra running in embeded mode

2010-07-09 Thread Ran Tavory
The workaround I do is fork always. Each test pulls up its own jvm. On Jul 9, 2010 9:51 PM, "Jonathan Ellis" wrote: there's some support for this in 0.7 (see http://issues.apache.org/jira/browse/CASSANDRA-1018) but fundamentally it's not really designed to be started and stopped multiple times w

http://scale.metaoptimize.com/

2010-07-08 Thread Ran Tavory
Just found this site and thought it might be interesting to folks on this list. http://scale.metaoptimize.com/ It's a stack-overflow style qna site, in their words: > A community interested in scalability, high availability, data stores, > NoSQL, distributed computing, parallel computing, cloud co

Re: Hector Client Failover errors

2010-06-27 Thread Ran Tavory
ttransport exception usually happens when the server cannot respond or there's a network error. Can you send more context to from your code? More context from the exception? Is the insertion rate about the same in the thrift or hector versions? If insertion with hector is faster than thrift (conne

Re: Call for input of cassandra, thrift , hector, pelops example / sample / test code snippets

2010-06-26 Thread Ran Tavory
com/rantav/hector/downloads) > > On Sat, Jun 26, 2010 at 11:42 PM, Ran Tavory wrote: > >> these classes are from a newer version and they should not exist in >> version 14. >> >> >> On Fri, Jun 25, 2010 at 3:42 PM, Gavan Hood wrote: >> >>&g

Re: Call for input of cassandra, thrift , hector, pelops example / sample / test code snippets

2010-06-26 Thread Ran Tavory
d one of the released versions then lmk >> if I forgot to include one dependency or another... >> >>> >>> I noticed a file IterateOverKeysOnly.java on the site too, but that has >>> some issues, some undefined KeySpace entries and other syntax errors. >>

Re: Hector vs cassandra-java-client

2010-06-24 Thread Ran Tavory
maven > > repository. I've manually added the nonpublic artifacts to the cache > which > > makes life a great deal simpler. See http://archiva.apache.org/ > > Regards, > > --Jools > > > > On 24 June 2010 07:36, Ran Tavory wrote: > >> > >> He

Re: Call for input of cassandra, thrift , hector, pelops example / sample / test code snippets

2010-06-24 Thread Ran Tavory
fined KeySpace entries and other syntax errors. > It was contributed by another developer so I don't know. > > Gavan > On Thu, Jun 24, 2010 at 10:18 PM, Ran Tavory wrote: > >> Here's what we have for hector: >> >> wiki: http://wiki.github.com/rantav/hector/

Re: Call for input of cassandra, thrift , hector, pelops example / sample / test code snippets

2010-06-24 Thread Ran Tavory
Here's what we have for hector: wiki: http://wiki.github.com/rantav/hector/ blog posts: http://prettyprint.me/2010/02/23/hector-a-java-cassandra-client/ http://prettyprint.me/2010/03/03/load-balancing-and-improved-failover-in-hector/ http://prettyprint.me/2010/04/03/jmx-in-hector/ Examples: Exa

Re: Hector vs cassandra-java-client

2010-06-23 Thread Ran Tavory
Hector has a pom.xml which and deals with its dependencies as gracefully as it can, but the problem is that hector's dependencies such as cassandra and libthrift aren't in public maven repos. Any suggestions how to deal with that? On Thu, Jun 24, 2010 at 6:00 AM, Kenneth Bartholet < kennethbartho

Re: hector or pelops

2010-06-23 Thread Ran Tavory
of tests for each API call, do you have some > code that will help me build that. If my code ends up useful I intend to > publish it on my website for others to use. > > Regards > Gavan > > On Thu, Jun 24, 2010 at 4:43 AM, Ran Tavory wrote: > >> As the developer of

Re: hector or pelops

2010-06-23 Thread Ran Tavory
As the developer of hector I can only speak in favor of my child of love and I haven't tried pelops so take the following with a grain of salt... Hector sees wide adoption and has been coined the de-facto java client. It's been in use in production critical systems since version 0.5.0 by a few comp

Re: Hector - Java doc

2010-06-22 Thread Ran Tavory
There isn't an online javadoc page, but the code is online and well documented and there's a wiki and all sorts of documents and examples http://github.com/rantav/hector/blob/master/src/main/java/me/prettyprint/cassandra/service/Keyspace.java http://wiki.github.com/rantav/hector/ On Wed, Jun 23, 2

Re: Instability and memory problems

2010-06-20 Thread Ran Tavory
I don't have the answer but if you provide jmap output, cfstats output that may help. Are you using mmap files? Do you see swap? Gc in the logs? On Jun 20, 2010 7:25 PM, "James Golick" wrote: As I alluded to in another post, we just moved from 2-4 nodes. Since then, the cluster has been incredib

Re: what is the best way to truncate a column family

2010-06-18 Thread Ran Tavory
it will be immediate. But it will fail if not all hosts in the cluster are up, this is the tradeoff. We regard the truncate operation an admin api so I think it's a fair tradeoff. On Fri, Jun 18, 2010 at 11:50 PM, Phil Stanhope wrote: > In 0.6.x the iterating approach works ... but you need to f

Re: 3-node balanced system

2010-06-17 Thread Ran Tavory
+ user, - dev (bcc actually) If you use a random partitioner use the following InitialToken for your nodes: $ bc bc 1.06 Copyright 1991-1994, 1997, 1998, 2000 Free Software Foundation, Inc. This is free software with ABSOLUTELY NO WARRANTY. For details type `warranty'. (2^127)/3 *5671372782015641

Re: Cassandra questions

2010-06-17 Thread Ran Tavory
On Thu, Jun 17, 2010 at 9:09 PM, F. Hugo Zwaal wrote: > Hi, > > Being fairly new to Cassandra I have a couple of questions: > > 1) Is there a way to remove multiple keys/rows in one operation (batch) or > must keys be removed one by one? > yes, batch_mutate > 2) I see API references to version 0

Re: Best documentation for Java and Cassandra?

2010-06-17 Thread Ran Tavory
I can offer Hector which I've authored and maintain with the help of a few other folks http://wiki.github.com/rantav/hector/ http://github.com/rantav/hector Feel free to post questions to our mailing list http://groups.google.com/group/hector-users On Thu, Jun 17, 2010 at 10:04 AM, Anthony Ikeda

Re: Client connection and data distribution across nodes

2010-06-16 Thread Ran Tavory
On Thu, Jun 17, 2010 at 8:52 AM, Mubarak Seyed wrote: > Hi All, > > Regarding client thrift connection, i have 4 nodes which formed a ring, but > client only knows the IP address of an one node (and thrift RPC port > number), > how does client can connect to any one other node without getting rin

Re: batch_mutate atomic?

2010-06-14 Thread Ran Tavory
no, it's not atomic. it just shortens the roundtrip of many update requests. Some may fail and some may succeed On Mon, Jun 14, 2010 at 2:40 PM, Per Olesen wrote: > Can I expect batch_mutate to work in what I would think of as an atomic > operation? > > That either all the mutations in the batch

Re: Pelops - a new Java client library paradigm

2010-06-12 Thread Ran Tavory
Nice going, Dominic, having a clear API for cassandra is a big step forward :) Interestingly, at hector we came up with similar approach, just didn't find the time for code that, as production systems keep me busy at nights as well... We started with the implementation of BatchMutation, but the res

Re: cassandra out of heap space crash

2010-06-11 Thread Ran Tavory
Gary fwiw I get oom with Cl one quite commonly if I'm not careful with my writes On Jun 11, 2010 8:48 PM, "Jonathan Ellis" wrote: We give you enough rope to hang yourself. Don't use ZERO if that's not what you want. :) On Fri, Jun 11, 2010 at 9:23 AM, William Ashley wrote: > Would it be reas

Re: cassandra out of heap space crash

2010-06-10 Thread Ran Tavory
I can't say exactly how much memory is the correct amount, but surely 1G is very little. By replicating 3 times your cluster now makes 3 times more work than it used to do, both on reads and on writes while the readers/writers continue hammering it the same pace. So once you've upped your memory (

Re: Passing client as parameter

2010-06-10 Thread Ran Tavory
ansport, create a client, make some cassandra operations and then close the transport. On Wed, Jun 9, 2010 at 10:35 PM, Steven Haar wrote: > C# > > > On Wed, Jun 9, 2010 at 2:34 PM, Ran Tavory wrote: > >> Some languages have higher level clients that might help you. What >>

Re: Passing client as parameter

2010-06-09 Thread Ran Tavory
Some languages have higher level clients that might help you. What language are you using? On Jun 9, 2010 9:01 PM, "Steven Haar" wrote: What is the best way to pass a Cassandra client as a parameter? If you pass it as a parameter, do you also have to pass the transport in order to be able to clo

Re: Is ReplicationFactor values number of replicas or number of copies of data?

2010-06-07 Thread Ran Tavory
to have two copies you need RF=2. RF=0 doesn't make sense as far as I understand it. On Mon, Jun 7, 2010 at 2:16 PM, Per Olesen wrote: > Hi, > > I am unclear about what the ReplicationFactor value means. > > Does RF=1 mean that there is only one single node that has the data in the > cluster (ac

Re: Tree Search in Cassandra

2010-06-06 Thread Ran Tavory
s >> some level of atomic operations or locking, since updates are >> multi-step operations. From server side I guess it would be similar to >> work on allowing atomic multi-part operations (like ones being worked >> on to implement counters?). >> >> -+ Tatu +

Re: Tree Search in Cassandra

2010-06-06 Thread Ran Tavory
sounds interesting... btree on top of cassandra ;) On Sun, Jun 6, 2010 at 12:16 PM, David Boxenhorn wrote: > I'm still thinking about the problem of how to handle range queries on very > large sets of data, using Random Partitioning. > > Has anyone used tree search to solve this? What do you thi

Re: Embedded usage

2010-06-04 Thread Ran Tavory
Cassandra expects a config file and does not expose an alternative API, for this file, that's correct. I think it's not hard to add such API but so far the demand for it didn't exist. On Jun 4, 2010 8:01 PM, "Sten Roger Sandvik" wrote: 2010/6/4 Jonathan Ellis > > look at o.a.c.service.Embedd

Re: Number of client connections

2010-06-02 Thread Ran Tavory
as far as I know, only the os level limitations, e.g. typically ~60k On Thu, Jun 3, 2010 at 9:34 AM, Lev Stesin wrote: > Hi, > > Is there a limit on the number of client connections to a node? Thanks. > > -- > Lev >

Re: nodetool cleanup isn't cleaning up?

2010-06-02 Thread Ran Tavory
15 AM, Jonathan Ellis wrote: > Then the next step is to check StorageService.getRangeToEndpointMap via jmx > > On Tue, Jun 1, 2010 at 11:56 AM, Ran Tavory wrote: > > I'm using RackAwareStrategy. But it still doesn't make sense I think... > > let's see what di

Re: nodetool cleanup isn't cleaning up?

2010-06-01 Thread Ran Tavory
the same DC). On Tue, Jun 1, 2010 at 4:00 PM, Jonathan Ellis wrote: > I'm saying that .99 is getting a copy of all the data for which .124 > is the primary. (If you are using RackUnawarePartitioner. If you are > using RackAware it is some other node.) > > On Tue, Jun 1, 2010 at

Re: nodetool cleanup isn't cleaning up?

2010-05-31 Thread Ran Tavory
lis wrote: > well, there you are then. > > On Mon, May 31, 2010 at 2:34 PM, Ran Tavory wrote: > > yes, replication factor = 2 > > > > On Mon, May 31, 2010 at 10:07 PM, Jonathan Ellis > wrote: > >> > >> you have replication factor > 1 ? > >> &g

Re: nodetool cleanup isn't cleaning up?

2010-05-31 Thread Ran Tavory
yes, replication factor = 2 On Mon, May 31, 2010 at 10:07 PM, Jonathan Ellis wrote: > you have replication factor > 1 ? > > On Mon, May 31, 2010 at 7:23 AM, Ran Tavory wrote: > > I hope I understand nodetool cleanup correctly - it should clean up all > data > > that

Re: HintedHandoffEnabled

2010-05-31 Thread Ran Tavory
attempt to deliver existing ones unless you manually > delete the hint files in the system/ dir. > > On Mon, May 31, 2010 at 6:04 AM, Ran Tavory wrote: > > In 0.6.2 I disabled hinted handoff, however tpstats and cfstats report > seems > > odd. > > On all servers in t

Re: nodetool cleanup isn't cleaning up?

2010-05-31 Thread Ran Tavory
t. > ... > Here, we defined a constant, GCGraceSeconds, and had each node track > tombstone age locally. Once it has aged past the constant, it can be GC'd. > === > > > > On 31.05.2010 16:23, Ran Tavory wrote: > >> I hope I understand nodetool cleanup correctly -

nodetool cleanup isn't cleaning up?

2010-05-31 Thread Ran Tavory
I hope I understand nodetool cleanup correctly - it should clean up all data that does not (currently) belong to this node. If so, I think it might not be working correctly. Look at nodes 192.168.252.124 and 192.168.252.99 below 192.168.252.99Up 279.35 MB 35446079887597756610768188274

HintedHandoffEnabled

2010-05-31 Thread Ran Tavory
In 0.6.2 I disabled hinted handoff, however tpstats and cfstats report seems odd. On all servers in the cluster I have: false tpstats reports 5 completed handoffs. $ nodetool -h cass25 -p 9004 tpstats Pool NameActive Pending Completed FILEUTILS-DELETE-POOL

Re: How to drop a column family (Cassandra 6.1)

2010-05-31 Thread Ran Tavory
1. nodetool flush 2. stop server 3. delete all files (data, index, filter) 4. start server note that this will delete the data, not the CF definition (not like "drop table" in sql-ish). system_drop_column_family will drop the CF definition truncate (available from 0.7) will delete the data, whic

Re: Error reporting Key cache hit rate with cfstats or with JMX

2010-05-26 Thread Ran Tavory
> It sure sounds like you're seeing the "my row cache contains the > entire hot data set, so the key cache only gets the cold reads" > effect. > > On Wed, May 26, 2010 at 2:54 PM, Ran Tavory wrote: > > If I disable row cache the numbers look good - key cache

Re: Error reporting Key cache hit rate with cfstats or with JMX

2010-05-26 Thread Ran Tavory
On Tue, May 25, 2010 at 3:43 PM, Jonathan Ellis wrote: > What happens if you disable row cache? > > On Tue, May 25, 2010 at 4:53 AM, Ran Tavory wrote: > > It seems there's an error reporting the Key cache hit rate. The value is > > always 0.0 and I have a feeling it

Re: Questions regarding batch mutates and transactions

2010-05-26 Thread Ran Tavory
The summary of your question is: is batch_mutate atomic in the general sense, meaning when used with multiple keys, multiple column families etc, correct? On Wed, May 26, 2010 at 12:45 PM, Todd Nine wrote: > Hey guys, > I originally asked this on the Hector group, but no one was sure of the >

  1   2   >