Re: Is column update column-atomic or row atomic?

2011-03-16 Thread Peter Schuller
> Sorry for the rather primitive question, but it's not clear to me if I need > to fetch the whole row, add a column as a dictionary entry and re-insert it > if I want to expand the row by one column. Help will be appreciated. As was pointed you, reading and re-inserting is definitely not the way

Re: Getting list of active cassandra nodes

2011-03-16 Thread aaron morton
moving to user list. describe_ring() will give you a list of the token ranges and the nodes that are responsible for them http://wiki.apache.org/cassandra/API . It does not include information on which nodes are up or down or bootstrapping. Information about the state of the nodes is availabl

swap setting on linux

2011-03-16 Thread ruslan usifov
Dear community! Please share you settings for swap on linux box

Re: swap setting on linux

2011-03-16 Thread Maki Watanabe
According to Cassandra Wiki, best strategy is no swap at all. http://wiki.apache.org/cassandra/MemtableThresholds#Virtual_Memory_and_Swap 2011/3/16 ruslan usifov : > Dear community! > > Please share you settings for swap on linux box > -- w3m

recommission after a decommission

2011-03-16 Thread Jonathan Colby
How can a cassandra node be taken back into the ring after being decommissioned (with nodetool decommission for example)? Yes, I am aware that no data is removed and you have to clean the data directory if you want the node to pick up a different token range. I just want to know how to put back

Upgrade to a different version?

2011-03-16 Thread Jake Maizel
We are running 0.6.6 and are considering upgrading to either 0.6.8 or one of the 0.7.x releases. What is the recommended version and procedure? What are the issues we face? Are there any specific storage gotchas we need to be aware of? Are there any docs around this process for review? Thanks,

Re: where to find the stress testing programs?

2011-03-16 Thread Eric Gilmore
There are both Python and Java stress testing tools. I found the Java version easier to use. These directions (which echo the README for stress.java) may help get you going: http://www.datastax.com/docs/0.7/utilities/stress_java On Tue, Mar 15, 2011 at 9:25 AM, Jeremy Hanna wrote: > contrib is

Re: Upgrade to a different version?

2011-03-16 Thread Paul Pak
Hi Jake, I'm sending this privately, because I wanted to tell you my opinion frankly. I don't know about the .6 series or .74, but so far, all of the .7 series of cassandra has been a disaster. I would think twice about switching to anything in .7 series to production until things stabilize and

memory usage for secondary indexes

2011-03-16 Thread aaron morton
Was just reading through the code to get an understanding of the memory impact for secondary indexes. The index CF is created with the same memtable settings as the parent CF (in CFMetaData.newIndexMetadata). Does this mean that when estimating JVM heap size each index should be considered as

Re: On 0.6.6 to 0.7.3 migration, DC-aware traffic and minimising data transfer

2011-03-16 Thread Jonathan Ellis
That should work then, assuming SimpleStrategy/RackUnawareStrategy. Otherwise figuring out which machines share which data gets complicated. Note that if you have room on the machines, it's going to be faster to copy the entire data set to each machine and run cleanup, than to have repair fix 3 of

Re: Upgrade to a different version?

2011-03-16 Thread Paul Pak
Sorry guys, that was meant to be private. My opinion stands, but I didn't want to hurt any of the dev's feelings by being too frank. I think the progress has been good in new features, but I feel we have taken a step back in relability and scalability since so many features were added without ade

replace one node to onother

2011-03-16 Thread ruslan usifov
Hello For example if we want change one server to another with ip address change too. How can we that eases way? For now we do nodetool removetocken, then set autobootstrap: true on new server (with the token that was on old node)

Re: Upgrade to a different version?

2011-03-16 Thread Joshua Partogi
So did you downgraded it back to 0.6.x series? On Thu, Mar 17, 2011 at 6:36 AM, Paul Pak wrote: > Sorry guys, that was meant to be private.  My opinion stands, but I > didn't want to hurt any of the dev's feelings by being too frank.  I > think the progress has been good in new features, but I fe

Please help decipher /proc/cpuinfo for optimal Cassandra config

2011-03-16 Thread buddhasystem
Dear All, this is from my new Cassandra server. It obviously uses hyperthreading, I just don't know how to translate this to concurrent readers and writers in cassandra.yaml -- can somebody take a look and tell me what number of cores I need to assume for concurrent_reads and concurrent_writes. Is

Re: Is column update column-atomic or row atomic?

2011-03-16 Thread buddhasystem
Hello Peter, thanks for the note. I'm not looking for anything fancy. It's just when I'm looking at the following bit of Pycassa docs, it's not 100% clear to me that it won't overwrite the entire row for the key, if I want to simply add an extra column {'foo':'bar'} to the already existing row. I

Re: Upgrade to a different version?

2011-03-16 Thread Jeremy Hanna
Paul, Don't feel like you have to hold back when it comes to feedback. There is a place to vote on releases. If you have something that could potentially be critical that you can isolate, by all means chime in. Even if your vote isn't binding if you are not a committer, votes with something

Re: Please help decipher /proc/cpuinfo for optimal Cassandra config

2011-03-16 Thread Edward Capriolo
On Wed, Mar 16, 2011 at 9:58 PM, buddhasystem wrote: > Dear All, > this is from my new Cassandra server. It obviously uses hyperthreading, I > just don't know how to translate this to concurrent readers and writers in > cassandra.yaml -- can somebody take a look and tell me what number of cores >

Re: Is column update column-atomic or row atomic?

2011-03-16 Thread Tyler Hobbs
insert() will only overwrite (or insert) the columns that you supply in the dictionary. So, if you do: cf.insert('key', {'foo': 'bar'}) and the column 'foo' doesn't exist in that row yet, the column will simply be added to the other columns in the row. On Wed, Mar 16, 2011 at 9:00 PM, buddhas

Re: reduced cached mem; resident set size growth

2011-03-16 Thread Zhu Han
On Thu, Feb 3, 2011 at 1:49 AM, Ryan King wrote: > On Wed, Feb 2, 2011 at 6:22 AM, Chris Burroughs > wrote: > > On 01/28/2011 09:19 PM, Chris Burroughs wrote: > >> Thanks Oleg and Zhu. I swear that wasn't a new hotspot version when I > >> checked, but that's obviously not the case. I'll update

Re: Is column update column-atomic or row atomic?

2011-03-16 Thread buddhasystem
Thanks for clarification, Tyler, sorry again for the basic question. I've been doing straight inserts from Oracle so far but now I need to update rows with new columns. -- View this message in context: http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Is-column-update-column-atomi

Re: Please help decipher /proc/cpuinfo for optimal Cassandra config

2011-03-16 Thread buddhasystem
Thanks! Docs say it's good to set it to 8*Ncores, are saying you see 8 cores in this output? I know I need to go way above default 32 with this setup. -- View this message in context: http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Please-help-decipher-proc-cpuinfo-for-optimal-Ca

Re: reduced cached mem; resident set size growth

2011-03-16 Thread Zhu Han
On Thu, Mar 17, 2011 at 10:27 AM, Zhu Han wrote: > > > On Thu, Feb 3, 2011 at 1:49 AM, Ryan King wrote: > >> On Wed, Feb 2, 2011 at 6:22 AM, Chris Burroughs >> wrote: >> > On 01/28/2011 09:19 PM, Chris Burroughs wrote: >> >> Thanks Oleg and Zhu. I swear that wasn't a new hotspot version when I

super_column.name?

2011-03-16 Thread Michael Fortin
Hi, I've been working on a scala based api for cassandra. I've built it directly on top of thrift. I'm having a problem getting a slice of a superColumn. When I get a columnOrSuperColumn back, and call 'cos.super_column.name' and deserialize the bytes I'm not getting the expected output. He

Re: AW: problems while TimeUUIDType-index-querying with two expressions

2011-03-16 Thread Jonathan Ellis
Thanks for tracking that down, Roland. I've created https://issues.apache.org/jira/browse/CASSANDRA-2347 to fix this. On Wed, Mar 16, 2011 at 10:37 AM, Roland Gude wrote: > I have applied the suggested changes in my local source tree and did run all > my testcases (the supplied ones as well as t

Cassandra c++ client

2011-03-16 Thread Anurag Gujral
Hi All, Anyone knows about stable C++ client for cassandra? Thanks Anurag

insert during forced compaction

2011-03-16 Thread Jeffrey Wang
Hey all, I'm running 0.7.0 on a cluster of 5 machines. When I create a new column family after I run nodetool compact (but before it finishes), I see the error below. Seems like StorageService.getValidColumnFamilies() should make a copy of the set of column families in the case where cfNames.le

Re: Cassandra c++ client

2011-03-16 Thread Primal Wijesekera
You could try this, https://github.com/posulliv/libcassandra - primal From: Anurag Gujral To: user@cassandra.apache.org Sent: Wed, March 16, 2011 9:36:25 PM Subject: Cassandra c++ client Hi All, Anyone knows about stable C++ client for cassandra?

Re: Cassandra c++ client

2011-03-16 Thread Narendra Sharma
libcassandra isn't vary active. Since we already has a object pool library, we went for using raw thrift in C++ instead of using any other library. Thanks, Naren On Wed, Mar 16, 2011 at 10:03 PM, Primal Wijesekera < primalwijesek...@yahoo.com> wrote: > You could try this, > > https://github.com/

getting exception when cassandra 0.7.3 is starting

2011-03-16 Thread Anurag Gujral
I am getting exception when starting cassandra 0.7.3 ERROR 01:10:48,321 Exception encountered during startup. java.lang.NegativeArraySizeException at org.apache.cassandra.db.ColumnFamilyStore.readSavedCache(ColumnFamilyStore.java:274) at org.apache.cassandra.db.ColumnFamilyStore.(ColumnFam

Re: getting exception when cassandra 0.7.3 is starting

2011-03-16 Thread Narendra Sharma
Is this new install or upgrade? Thanks, Naren On Wed, Mar 16, 2011 at 11:15 PM, Anurag Gujral wrote: > I am getting exception when starting cassandra 0.7.3 > > ERROR 01:10:48,321 Exception encountered during startup. > java.lang.NegativeArraySizeException > at > org.apache.cassandra.db.Colum

Re: getting exception when cassandra 0.7.3 is starting

2011-03-16 Thread Anurag Gujral
New install. I created the saved_caches directory and I tried restarting cassandra now I am getting INFO 01:20:55,632 DiskAccessMode is standard, indexAccessMode is standard INFO 01:20:55,789 reading saved cache /var/lib/cassandra/saved_caches/system-IndexInfo-KeyCache ERROR 01:20:55,790 Exception