Re: Questions about using MD5 encryption with SimpleAuthenticator

2011-05-19 Thread Ted Zlatanov
On Wed, 18 May 2011 17:16:28 -0700 Sameer Farooqui wrote: SF> But even SSL/TLS is subject to attacks from tools like SSLSNIFF: SF> http://www.thoughtcrime.org/software/sslsniff For perfect security, unplug the server and remove the hard drive. Ted

Re: Questions about using MD5 encryption with SimpleAuthenticator

2011-05-18 Thread Ted Zlatanov
On Tue, 17 May 2011 15:52:22 -0700 Sameer Farooqui wrote: SF> Would still be nice though to use the bcrypt hash over MD5 for stronger SF> security. I used MD5 when I proposed SimpleAuthenticator for two reasons: 1) SimpleAuthenticator is supposed to be a demo of the authentication interface.

CQL transport (was: CQL DELETE statement)

2011-04-19 Thread Ted Zlatanov
On Tue, 19 Apr 2011 00:21:44 +0100 Courtney Robinson wrote: CR> Cool... Okay, the plan is to eventually not use thrift underneath, CR> for the CQL stuff right? Once this is done and the new transport is CR> in place, or evening while designing the new transport, is this not CR> something that's

Re: JVM Options for Production

2010-06-15 Thread Ted Zlatanov
On Mon, 14 Jun 2010 16:01:57 -0700 Anthony Molinaro wrote: AM> Now I would assume that for 'production' you want to remove AM>-ea AM> and AM>-XX:+HeapDumpOnOutOfMemoryError AM> as well as adjust -Xms and Xmx accordingly, but are there any others AM> which should be tweaked? Is there a

Re: Perl/Thrift/Cassandra strangeness

2010-06-08 Thread Ted Zlatanov
On Mon, 7 Jun 2010 17:20:56 -0500 Jonathan Shook wrote: JS> The point is to get the "last" super-column. ... JS> Is the Perl Thrift client problematic, or is there something else that JS> I am missing? Try Net::Cassandra::Easy; if it does what you want, look at the debug output or trace the cod

Re: Apache Cassandra and Net::Cassandra::Easy

2010-05-11 Thread Ted Zlatanov
On Tue, 11 May 2010 14:29:13 -0500 Jonathan Ellis wrote: JE> 2010/5/11 Ted Zlatanov : >> The latest N::C::Easy will not work with Cassandra 0.6.x, the only >> target is SVN trunk.  I can't discover the API version on the server so >> there's no way to anticip

Re: Apache Cassandra and Net::Cassandra::Easy

2010-05-11 Thread Ted Zlatanov
On Tue, 11 May 2010 09:40:02 -0700 Scott Doty wrote: SD> I'm trying to wrap my head around Net::Cassandra::Easy, and it's making SD> me cross-eyed. SD> My prototype app can be seen here: SD> http://bito.ponzo.net/Hatchet/ SD> The idea is to index logfiles by various keys, using Cassandra's ex

Re: how to get apache cassandra version with thrift client ?

2010-05-05 Thread Ted Zlatanov
On Tue, 27 Apr 2010 19:06:11 -0500 Jonathan Ellis wrote: JE> On Mon, Apr 26, 2010 at 9:46 PM, Shuge Lee wrote: >> I know I can get thrift API version. >> However, I writing a CLI for Cassandra in Python with readline support, >> and it will supports one-key deploy/upgrade cassandra+thrift remot

Re: [RELEASE] 0.6.0

2010-04-19 Thread Ted Zlatanov
On Mon, 19 Apr 2010 12:47:52 -0500 Eric Evans wrote: EE> On Mon, 2010-04-19 at 12:02 -0500, Ted Zlatanov wrote: >> EE> It's the first item on debian/TODO, but, you know, patches welcome >> and EE> all that. >> TZ> The appended patch has been sufficient for

Re: [RELEASE] 0.6.0

2010-04-19 Thread Ted Zlatanov
On Wed, 14 Apr 2010 13:09:13 -0500 Ted Zlatanov wrote: TZ> On Wed, 14 Apr 2010 12:23:19 -0500 Eric Evans wrote: EE> On Wed, 2010-04-14 at 10:16 -0500, Ted Zlatanov wrote: >>> Can it support a non-root user through /etc/default/cassandra? I've >>> been patching t

Re: SuperColumns

2010-04-15 Thread Ted Zlatanov
On Wed, 14 Apr 2010 23:34:52 -0700 Vijay wrote: V> On Wed, Apr 14, 2010 at 10:28 PM, Christian Torres wrote: >> I'm defining a ColumnFamily (Table) type Super, It's posible to have a >> SuperColumn inside another SuperColumn or SuperColumns can only have normal >> columns? V> Yes a super colum

Re: Time-series data model

2010-04-15 Thread Ted Zlatanov
On Thu, 15 Apr 2010 11:27:47 +0200 Jean-Pierre Bergamin wrote: JB> Am 14.04.2010 15:22, schrieb Ted Zlatanov: >> On Wed, 14 Apr 2010 15:02:29 +0200 "Jean-Pierre Bergamin" >> wrote: >> JB> The metrics are stored together with a timestamp. The queries we

Re: [RELEASE] 0.6.0

2010-04-14 Thread Ted Zlatanov
On Wed, 14 Apr 2010 12:23:19 -0500 Eric Evans wrote: EE> On Wed, 2010-04-14 at 10:16 -0500, Ted Zlatanov wrote: >> Can it support a non-root user through /etc/default/cassandra? I've >> been patching the init script myself but was hoping this would be >> standard.

Re: [RELEASE] 0.6.0

2010-04-14 Thread Ted Zlatanov
On Tue, 13 Apr 2010 15:54:39 -0500 Eric Evans wrote: EE> I leaned into it. An updated package has been uploaded to the Cassandra EE> repo (see: http://wiki.apache.org/cassandra/DebianPackaging). Thank you for providing the release to the repository. Can it support a non-root user through /etc/

Re: Time-series data model

2010-04-14 Thread Ted Zlatanov
On Wed, 14 Apr 2010 15:02:29 +0200 "Jean-Pierre Bergamin" wrote: JB> The metrics are stored together with a timestamp. The queries we want to JB> perform are: JB> * The last value of a specific metric of a device JB> * The values of a specific metric of a device between two timestamps t1 and

Re: writes to Cassandra failing occasionally

2010-04-09 Thread Ted Zlatanov
On Thu, 08 Apr 2010 11:50:38 -0700 Mike Gallamore wrote: MG> Yes I agree single threaded is probably not the best. I wonder how MG> much of a performance hit it is on a single CPU machine though? I MG> guess I still would be blocking on ram writes but isn't like there is MG> multiple CPUs I nee

Re: writes to Cassandra failing occasionally

2010-04-09 Thread Ted Zlatanov
On Thu, 08 Apr 2010 12:16:34 -0700 Mike Gallamore wrote: MG> Hopefully my fix helps others. I imagine it is something you'll run MG> into regardless of the language/interface you use, for example I'm MG> pretty sure that the C/C++ time function truncates values too. I'd MG> recommend anyone usi

Re: writes to Cassandra failing occasionally

2010-04-09 Thread Ted Zlatanov
On Thu, 8 Apr 2010 10:56:55 -0500 Jonathan Ellis wrote: JE> is N:C:E possibly ignoring thrift exceptions? I always pass them down to the user. The user is responsible for wrapping with eval(). Ted

Re: writes to Cassandra failing occasionally

2010-04-08 Thread Ted Zlatanov
On Wed, 07 Apr 2010 13:19:26 -0700 Mike Gallamore wrote: MG> As an aside I motified some other code to use Net::Cassandra instead MG> of Net::Cassandra::Easy and noticed that it seems to run 3-4X MG> slower. Both aren't stunningly fast. The test clients are running on MG> the same machine as Ca

Re: writes to Cassandra failing occasionally

2010-04-08 Thread Ted Zlatanov
On Thu, 08 Apr 2010 12:53:48 +0100 Philip Jackson wrote: PJ> At Wed, 07 Apr 2010 13:19:26 -0700, PJ> Mike Gallamore wrote: >> >> I have writes to cassandra that are failing, or at least a read shortly >> after a write is still getting an old value. I realize Cassandra is >> "eventually consi

Re: Net::Cassandra::Easy deletion failed

2010-04-07 Thread Ted Zlatanov
On Tue, 06 Apr 2010 14:14:55 -0700 Mike Gallamore wrote: MG> Great it works. Or at least the Cassandra/thrift part seems to MG> work. My tests don't pass but I think it is actual logic errors in the MG> test now, the column does appear to be getting cleared okay with the MG> new version of the

Re: Net::Cassandra::Easy deletion failed

2010-04-06 Thread Ted Zlatanov
On Tue, 06 Apr 2010 13:24:45 -0700 Mike Gallamore wrote: MG> Thanks for the reply. The newest version of the module I see on CPAN MG> is 0.08b. I actually had 0.07 installed and am using 0.6beta3 for MG> cassandra. Is there somewhere else I should look for the 0.09 version MG> of the module? I'

Re: Net::Cassandra::Easy deletion failed

2010-04-06 Thread Ted Zlatanov
On Tue, 06 Apr 2010 11:07:03 -0700 Mike Gallamore wrote: MG> Seems to be internal to java/cassandra itself. MG> I have some tests and I want to make sure that I have a "clean slate" MG> each time I run the test. Clean as far as my code cares is that MG> "value" is not defined. I'm running "bin

Re: multinode cluster wiki page

2010-04-05 Thread Ted Zlatanov
On Mon, 5 Apr 2010 13:10:38 -0500 Brandon Williams wrote: BW> 2010/4/5 Ted Zlatanov >> It would be nice if Cassandra looked at all the available interfaces and >> selected the one whose reverse DNS lookup returned ".*cassandra.*" (or >> some keyword the user p

Re: multinode cluster wiki page

2010-04-05 Thread Ted Zlatanov
On Sat, 3 Apr 2010 14:10:37 -0500 Jonathan Ellis wrote: JE> IMO the "right" way to do it is to configure your machines so that JE> autodetecting listenaddress Just Works, so you can deploy exactly the JE> same config to all nodes. It would be nice if Cassandra looked at all the available interf

Re: multinode cluster wiki page

2010-04-05 Thread Ted Zlatanov
On Sat, 3 Apr 2010 13:52:22 -0700 Benjamin Black wrote: BB> What happens if the IP I get back is for a seed that happens to be BB> down right then? And then that IP is cached locally by my resolver? You have to set the TTL to be the right number of seconds for your environment. With tinydns o

Net::Cassandra::Easy Perl interface (with cassidy.pl CLI) 0.08

2010-03-31 Thread Ted Zlatanov
You can find version 0.08 of the Net::Cassandra::Easy Perl module at: http://search.cpan.org/search?query=cassandra+easy&mode=all This version comes with cassidy.pl, a command-line interface that supports tab-completion. It's not finished (no docs yet, that's a TODO) but in its current form it wi

Re: How reliable is cassandra?

2010-03-30 Thread Ted Zlatanov
On Mon, 29 Mar 2010 10:31:06 -0700 Matthew Stump wrote: MS> Am I crazy to want to switch our server's primary data store from MS> postgres to cassandra? This is a system used by banks and MS> governments to store crypto keys which absolutely can not be lost. Run a test pilot for N months (depe

Re: renaming a SuperColumn

2010-03-18 Thread Ted Zlatanov
On Thu, 18 Mar 2010 19:26:06 +0100 Sylvain Lebresne wrote: SL> Given how Cassandra works, I don't think that the server can do much SL> better than the read, write, delete your client already do SL> (basically everything is immutable, you only 'add' new versions). As SL> this cannot be done effi

Re: renaming a SuperColumn

2010-03-18 Thread Ted Zlatanov
On Thu, 18 Mar 2010 11:50:53 -0500 Jonathan Ellis wrote: JE> 2010/3/18 Ted Zlatanov : >> I find it useful in one particular schema to have SuperColumns with >> specific names and rename them sometimes.  Rather than client-side >> (read, write, delete) it would b

renaming a SuperColumn

2010-03-18 Thread Ted Zlatanov
I find it useful in one particular schema to have SuperColumns with specific names and rename them sometimes. Rather than client-side (read, write, delete) it would be nice if there was a SuperColumnRename Mutation than encapsulated that sequence on the server side and perhaps implemented it more

Re: Storing large blobs

2010-03-18 Thread Ted Zlatanov
On Wed, 17 Mar 2010 22:42:13 -0400 Carlos Sanchez wrote: CS> We could have blob as large as 50mb compressed (XML compresses quite CS> well). Typical documents we would deal with would be between 500K CS> and 3MB When just starting to use Cassandra I had serious issues with 0.5 and blobs (comp

Re: Atomic Operations

2010-03-17 Thread Ted Zlatanov
On Wed, 17 Mar 2010 16:44:50 -0300 Juan Manuel García del Moral wrote: JMGdM> That's exactly what I need, Do you have an idea how can I JMGdM> implement this through the C++ API? Sorry, I've only worked with the Java and Perl interfaces. I'll have to use Cassandra with C++ later this year (lo

Re: Atomic Operations

2010-03-17 Thread Ted Zlatanov
On Wed, 17 Mar 2010 16:29:27 -0300 Juan Manuel García del Moral wrote: JMGdM> I have this: JMGdM> SocialAds.Anonimos['145']['Tag']['12'] = 13 JMGdM> I would need to to JMGdM> SocialAds.Anonimos['145']['Tag']['12'] += 1 JMGdM> for example JMGdM> with that, would be enough for now JMGdM>

Re: Atomic Operations

2010-03-17 Thread Ted Zlatanov
On Wed, 17 Mar 2010 16:05:48 -0300 Juan Manuel García del Moral wrote: JMGdM> So I would have to retrieve (client.get()) the value, then JMGdM> increment it and update it (client.set()) again? with the JMGdM> inconsistency risk this two operations imply... Can you explain what you are trying t

Re: bundled mutations (Deletion+insertion of the same SuperColumn)

2010-03-15 Thread Ted Zlatanov
On Mon, 15 Mar 2010 16:45:49 -0400 Jake Luciani wrote: JL> On Mar 15, 2010, at 4:41 PM, Ted Zlatanov wrote: >> Can there be any assurance that if I specify a Deletion and an >> insertion for a specific SuperColumn in the same batch_mutate() call, >> they will h

Net::Cassandra::Easy Perl interface to Cassandra 0.03

2010-03-15 Thread Ted Zlatanov
You can find version 0.03 of the Net::Cassandra::Easy Perl module at: http://search.cpan.org/search?query=cassandra+easy&mode=all (it may show 0.021 but that's the same as 0.03, I just uploaded with the incorrect version number accidentally) The docs explain how to use it with examples for the c

bundled mutations (Deletion+insertion of the same SuperColumn)

2010-03-15 Thread Ted Zlatanov
Can there be any assurance that if I specify a Deletion and an insertion for a specific SuperColumn in the same batch_mutate() call, they will happen atomically? In other words I want to make sure readers don't get a missing value for that SuperColumn if their read should occur after the Deletion