Re: Repair has now effect

2012-09-04 Thread Patricio Echagüe
embarrassing. Chef somehow ran in that box and updated the schema with a version of it that had RF=1. Sorry about that. On Mon, Sep 3, 2012 at 1:45 AM, Radim Kolar wrote: > > INFO [AntiEntropySessions:6] 2012-09-02 15:46:23,022 >> AntiEntropyService.java (line 663) [repair #%s] No neighbors

Repair has now effect

2012-09-02 Thread Patricio Echagüe
Hey folks, perhaps a dumb question but I ran into this situation and it's a bit unclear what's going on. We are running a 3 nodes cluster with RF 3 (cass 1.0.11). We had one issue with one node and it was down for like 1 hour. I brought the node up again as soon as I realized it was down (and gan

Re: Efficiency of hector's setRowCount (and setStartKey!)

2011-10-13 Thread Patricio Echagüe
for(Row row:rows ){ > if (row==null) { continue; } > totalCount++; > String key = row.getKey(); > > if (!startKey.equals(key

Re: Hector has a website

2011-10-13 Thread Patricio Echagüe
2011 at 12:51 AM, aaron morton > wrote: > > Thanks, will be handy for new peeps. > > A > > - > > Aaron Morton > > Freelance Cassandra Developer > > @aaronmorton > > http://www.thelastpickle.com > > On 7/10/2011, at 12:00 PM, Patricio

Re: Efficiency of hector's setRowCount

2011-10-13 Thread Patricio Echagüe
Hi Don. No it will not. IndexedSlicesQuery will read just the amount of rows specified by RowCount and will go to the DB to get the new page when needed. SetRowCount is doing indexClause.setCount(rowCount); On Mon, Oct 10, 2011 at 3:52 PM, Don Smith wrote: > Hector's IndexedSlicesQuery has a se

Re: Hector Problem Basic one

2011-10-13 Thread Patricio Echagüe
Hi, Hector does not retry on a down server. In the unit tests where you have just one server, Hector will pass the exception to the client. Can you tell us please what your test looks like ? 2011/10/12 Wangpei (Peter) > I only saw this error message when all Cassandra nodes are down. > > H

Hector has a website

2011-10-06 Thread Patricio Echagüe
Hi, I wanted to let you all know that Hector client has a website. http://hector-client.org There are links to documentation, Javadoc and resources from the community. If you have a personal blog and want us to include the link, let us know. Feedback is always welcome. Thanks! Hector Team.

Re: Write everywhere, read anywhere

2011-08-03 Thread Patricio Echagüe
On Wed, Aug 3, 2011 at 4:00 PM, Philippe wrote: > Hello, > I have a 3-node, RF=3, cluster configured to write at CL.ALL and read at > CL.ONE. When I take one of the nodes down, writes fail which is what I > expect. > When I run a repair, I see data being streamed from those column > families... t

Re: Counter Column in Cassandra

2011-06-13 Thread Patricio Echagüe
It's a column whose content represents a distributed counter. http://wiki.apache.org/cassandra/Counters On Mon, Jun 13, 2011 at 8:29 AM, Sijie YANG wrote: > Hi, All > > I am newbie to cassandra. I have a simple question but don't find any clear > answer by searching google: > What's the meaning

Re: Site Not Surviving a Single Cassandra Node Crash

2011-04-09 Thread Patricio Echagüe
What is the consistency level you are using ? And as Ed said, if you can provide the stacktrace that would help too. On Sat, Apr 9, 2011 at 7:02 PM, aaron morton wrote: > btw, the nodes are a tad out of balance was that deliberate ? > > http://wiki.apache.org/cassandra/Operations#Token_selection

Re: Re: Re: Re: Quorum, Hector, and datacenter preference

2011-03-25 Thread Patricio Echagüe
Glad it worked 2011/3/25 > very cool. thanks for the info. this is exactly what we need. > > > On Mar 25, 2011 8:22am, Patricio Echagüe wrote: > > > > It's a cassandra consistency level > > On Mar 24, 2011 11:44 PM, jonathan.co...@gmail.com> wrote:>

Re: is it possible to mutate Columns and CounterColumn in the same batch mutation?

2011-03-25 Thread Patricio Echagüe
DRA-2384 to merge > CounterMutation into Mutation. > > -- > Sylvain > > > 2011/3/24 Patricio Echagüe : > >> Hi folks, I'm modeling the partitioned counters into Hector and given > the > >> non-inheritance of Thrift, I don't see how to add a Co

Re: weird cassandra issue

2011-03-25 Thread Patricio Echagüe
could you paste the code that does that? On Fri, Mar 25, 2011 at 6:47 AM, Anurag Gujral wrote: > Hi All, > I am using cassandra 0.7.3 and thrift 0.0.5 when I am trying to > write to cassandra using batch_mutate I get the following error: > InvalidRequestException(why:Key may not be empt

is it possible to mutate Columns and CounterColumn in the same batch mutation?

2011-03-24 Thread Patricio Echagüe
Hi folks, I'm modeling the partitioned counters into Hector and given the non-inheritance of Thrift, I don't see how to add a ColumnCounter and a Column in the same batch mutation. Is it possible do achieve? or are both in fact different mutations? Thanks

Re: Re: Quorum, Hector, and datacenter preference

2011-03-24 Thread Patricio Echagüe
Doesn't CL=LOCAL_QUORUM solve your problem? On Thu, Mar 24, 2011 at 9:33 AM, wrote: > Hi Nate - > > That sounds really promising and I'm looking forward to trying that out. > > My original question came up while thinking how to achieve quorum (with > rf=3) with a loss of 1 of 2 data centers. My

Re: unique key generation

2011-02-07 Thread Patricio Echagüe
If you are a Hector user, TimeUUIDUtils can be used to create Time UUIDs. https://github.com/rantav/hector/blob/master/core/src/main/java/me/prettyprint/cassandra/utils/TimeUUIDUtils.java On Mon, Feb 7, 2011 at 2:11 PM, Kallin Nagelberg wrote: > Maybe I can just use java5's UUID.. Need to rese

Re: TSocket timing out

2011-01-29 Thread Patricio Echagüe
The recommendation is to wait few milliseconds and retry. For Example if you use Hector ( I don't think it is your case), Hector will retry to different nodes in your cluster and the retry mechanisms is tunable as well. On Sat, Jan 29, 2011 at 2:20 PM, buddhasystem wrote: > > When I do a lot of

Re: Basic question on a write operation immediately followed by a read

2011-01-24 Thread Patricio Echagüe
Roshan, when a client invoke a write, the write goes first to commit log and later to memtable. After that it returns to the client. After it reaches the memtable, that data is ready to be read. The reads consolidates de data from the memtables and sstables unless there is a hit in the row cache.

Re: Converting a TimeUUID to a long (timestamp) and vice-versa

2011-01-05 Thread Patricio Echagüe
support Hector should expose. Thoughts? On Wed, Jan 5, 2011 at 6:30 PM, Roshan Dawrani wrote: > Hi Patricio, > > Thanks for your comment. Replying inline. > > 2011/1/5 Patricio Echagüe > > Roshan, just a comment in your solution. The time returned is not a simple >> long.

Re: Converting a TimeUUID to a long (timestamp) and vice-versa

2011-01-05 Thread Patricio Echagüe
n comparing UUIDs. Then for the "long" timestamp chosen by > the > >>> client, I need to re-create the equivalent time UUID and go and filter > the > >>> data from Cassandra database. > >>> > >>> -- > >>> Roshan > >&

Re: Converting a TimeUUID to a long (timestamp) and vice-versa

2011-01-04 Thread Patricio Echagüe
In Hector framework, take a look at TimeUUIDUtils.java You can create a UUID using TimeUUIDUtils.getTimeUUID(long time); or TimeUUIDUtils.getTimeUUID(ClockResolution clock) and later on, TimeUUIDUtils.getTimeFromUUID(..) or just UUID.timestamp(); There are some example in TimeUUIDUtilsTest.jav

Re: Any GUI for Cassandra database on Windows?

2010-12-29 Thread Patricio Echagüe
The error you mentioned sounds like one of the server/client is using TFramedTransport and the other one TSocket. I saw the same error when that happened. On Mon, Dec 27, 2010 at 9:15 PM, Roshan Dawrani wrote: > Sorry. Will do that. > > I am using Cassandra 0.7.0-rc2. > > I will try this DB clien

Re: Is it possible to read from one row, several SuperColumns with all their Columns in one call?

2010-07-22 Thread Patricio Echagüe
performance issues i want to avoid moving a lot of data over the network? 2010/7/22 Patricio Echagüe : > Hi Aaron, the problem I have is that those UUIDs are random numbers. > 2,3,4 are not sequential unfortunately. I don't think there is an API > like mutiget_slice for key but for Supe

Re: Is it possible to read from one row, several SuperColumns with all their Columns in one call?

2010-07-22 Thread Patricio Echagüe
start and finish values are > empty strings. Set the count to an appropriate level to get them all (e.g. > 1000) or make multiple calls. > > > Aaron > > > On 22 Jul, 2010,at 12:05 PM, Patricio Echagüe wrote: > > Hi all, apologize before hand if this question sounds a b

Is it possible to read from one row, several SuperColumns with all their Columns in one call?

2010-07-21 Thread Patricio Echagüe
Hi all, apologize before hand if this question sounds a bit dumb but I don't see what API I should use (if there is any) this is my model: row key A: SC_UUID_1: Col1, Col2, Col3 SC_UUID_2:

Re: Understanding atomicity in Cassandra

2010-07-20 Thread Patricio Echagüe
Hi, regarding the retrying strategy, I understand that it might make sense assuming that the client can actually perform a retry. We are trying to build a fault tolerance solution based on Cassandra. In some scenarios, the client machine can go down during a transaction. Would it be bad design to

Re: Is there any way to detect when a node is down so I can failover more effectively?

2010-06-04 Thread Patricio Echagüe
to optimize for it so much. > > also see http://wiki.apache.org/cassandra/FAQ#node_clients_connect_to > > 2010/6/1 Patricio Echagüe : > > Hi all, I'm using Hector framework to interact with Cassandra and at > trying > > to handle failover more effectively I found it a

Is there any way to detect when a node is down so I can failover more effectively?

2010-06-01 Thread Patricio Echagüe
Hi all, I'm using Hector framework to interact with Cassandra and at trying to handle failover more effectively I found it a bit complicated to fetch all cassandra nodes that are up and running. My goal is to keep an up-to-date list of active/up Cassandra servers to provide HEctor every time I nee

Help to understand a strange behavior with DCQUORUM

2010-05-28 Thread Patricio Echagüe
Hi all, I need to help to understand how DCQUORUM works. This is my setup: - Cluster with 3 Cassandra Nodes - RF = 3 - ReplicatePlacementStrategy = RackUnawareStrategy My test: - I write/read with DCQUORUM Results: - While the 3 nodes are UP, all my writes and read succeed. (the nodes are reach

Re: Basic Architecture Question

2010-04-30 Thread Patricio Echagüe
Roger, if you include the last read key as the start key for the next API call, will that retrieve the same key/row twice? The documentation says that both keys (start, finish) are included. Thanks On Thu, Apr 29, 2010 at 1:31 PM, Brandon Williams wrote: > On Thu, Apr 29, 2010 at 10:19 AM, Davi

Re: Consistency Level of CLI

2010-03-22 Thread Patricio Echagüe
Hi all, is there any documentation for: ConsistencyLevel.DCQUORUM and ConsistencyLevel.DCQUORUMSYNC ? DC = Data Center ? Thanks On Thu, Feb 25, 2010 at 12:12 PM, Masood Mortazavi < masoodmortaz...@gmail.com> wrote: > From the code, it appears that for "get" the default is ONE. > Column co