Get cassandra SuperColumn only!

2010-09-16 Thread Saurabh Raje
Hi, I have a cassandra datastore as follows: key:{ supercol (utf8) : { subcol (timuuid) : data } } Now, for a particular usecase I want to do slice on 2 levels. Firstly on supercols & then from the selected supercols results slice subcols (mostly to restrict no of items fetched in mem). I ha

0.7 live schema updates

2010-09-16 Thread Marc Canaleta
Hi! I like the new feature of making live schema updates. You can add, drop and rename columns and keyspaces via thrift, but how do you modify column attributes like key_cache_size or rows_cached? Thank you.

Re: 0.7 live schema updates

2010-09-16 Thread Oleg Anastasyev
You can change these attrs using JMX interface. Take a look at org.apache.cassandra.tools.NodeProbe setCacheCapacities method.

busy thread on IncomingStreamReader

2010-09-16 Thread Joseph Mermelstein
Hi - has anyone made any progress with this issue? We are having the same problem with our Cassandra nodes in production. At some point a node (and sometimes all 3) will jump to 100% CPU usage and stay there for hours until restarted. Stack traces reveal several threads in a seemingly endless loop

Getting client only example to work

2010-09-16 Thread Asif Jan
Hi I am using 0.7.0-beta1 , and trying to get the contrib/client_only example to work. I am running cassandra on host1, and trying to access it from host2. When using thirft (via cassandra-cli) and in my application; I am able to connect and do all operations as expected. But I am not a

RE: 0.7 live schema updates

2010-09-16 Thread Viktor Jevdokimov
But you'll loose these settings after Cassandra restart. -Original Message- From: Oleg Anastasyev [mailto:olega...@gmail.com] Sent: Thursday, September 16, 2010 11:21 AM To: user@cassandra.apache.org Subject: Re: 0.7 live schema updates You can change these attrs using JMX interface. Tak

Indexing&Locking in Cassandra

2010-09-16 Thread Sandor Molnar
Hello, I have a few questions about indexing and locking in Cassandra: - if I understood well only row level indexing exists prior to v0.7. I mean only the primary keys are indexed. Is that true? - is it possible to use composite primary keys? For instance I have a user object: User(name,birthda

Re: Indexing&Locking in Cassandra

2010-09-16 Thread Juho Mäkinen
Hello, > I have a few questions about indexing and locking in Cassandra: > - if I understood well only row level indexing exists prior to v0.7. I mean > only the primary keys are indexed. Is that true? Yes and no. The row name is the key which you use to fetch the row from cassandra. There are m

RE: Indexing&Locking in Cassandra

2010-09-16 Thread Sandor Molnar
Thanks for your fast answer. Regarding to the composite keys: that's what I thought by default I just needed some confirmation. Unfortunately I can not use this approach in our application so I will figure out something else. I will check out Zookeeper to see if I can use it. Thanks again! Hel

Re: Getting client only example to work

2010-09-16 Thread Gary Dusbabek
I discovered some problems with the fat client earlier this week when I tried using it. It needs some fixes to keep up with all the 0.7 changes. Gary. On Thu, Sep 16, 2010 at 05:48, Asif Jan wrote: > > Hi > I am using 0.7.0-beta1 , and trying to get the contrib/client_only example > to work. >

Re: 0.7 live schema updates

2010-09-16 Thread Gary Dusbabek
beta-2 will include the ability to set these values and others. Look for the system_update_column_family() and system_update_keyspace() methods. Gary. On Thu, Sep 16, 2010 at 02:38, Marc Canaleta wrote: > Hi! > I like the new feature of making live schema updates. You can add, drop and > rename

Re: Build an index to for join query

2010-09-16 Thread Rock, Paul
Alvin - assuming I understand what you're after correctly, why not make a CF Name_Address(name, address). Modifying the Cassandra methods to do the "join" you describe seems like overkill to me... -Paul On Sep 15, 2010, at 7:34 PM, Alvin UW wrote: Hello, I am going to build an index to join t

Pb with memtable_throughput_in_mb?

2010-09-16 Thread Thomas Boucher
Hi, I am trying out the latest trunk version and I get an error when starting Cassandra with -Xmx3G: Fatal error: memtable_operations_in_millions must be a positive double I guess it is caused by line 76 in org/apache/cassandra/config/Config.java [0]: public Integer memtable_throughput_in_mb

Re: Pb with memtable_throughput_in_mb?

2010-09-16 Thread Brandon Williams
On Thu, Sep 16, 2010 at 11:00 AM, Thomas Boucher wrote: > Hi, > > I am trying out the latest trunk version and I get an error when > starting Cassandra with -Xmx3G: > Fatal error: memtable_operations_in_millions must be a positive double > > I guess it is caused by line 76 in org/apache/cassandra

Buildding a Ubuntu / Debian package for Cassandra

2010-09-16 Thread Francois Richard
Guys, I am trying to build a debian package in order to deploy Cassandra 0.6.5 on Ubuntu. I see that you have a ./debian directory in the source builds, do you have a bit more background on how it is used and build? P.S. I am new to Ubuntu/Debian packaging so any type of pointer will help. Th

Re: Buildding a Ubuntu / Debian package for Cassandra

2010-09-16 Thread Dave Viner
Hi Francois, Any reason http://wiki.apache.org/cassandra/DebianPackaging isn't working for you? Dave Viner On Thu, Sep 16, 2010 at 10:30 AM, Francois Richard wrote: > Guys, > > > > I am trying to build a debian package in order to deploy Cassandra 0.6.5 on > Ubuntu. I see that you have a ./de

Secondary Index Null Pointer Error

2010-09-16 Thread Colin Britton
Hi, I am using Casandra 0.7 trunk (r997357) and am having issues with a secondary index. I have a ColumnFamily with a secondary index on column "X". Not every row of data has column X. It looks like when I write a row that does not have column X, Cassandra throws the following NPE when it writes

Re: Buildding a Ubuntu / Debian package for Cassandra

2010-09-16 Thread Clint Byrum
Hello Francois, There are already .debs available here: http://wiki.apache.org/cassandra/DebianPackaging I've also setup a PPA to build the packages on Ubuntu here: https://launchpad.net/~cassandra-ubuntu/+archive/stable Its currently still at v0.6.4, but I am in the process of uploading 0.6.

Re: Get cassandra SuperColumn only!

2010-09-16 Thread Aaron Morton
AFAIK there is no way to get a list of the super columns, without also getting the sub columns. I do not know if there is a technical reason that would prevent this from being added. In general it's more efficient to make 1 request that pulls back more data, than two or more than pull back just eno

RE: Buildding a Ubuntu / Debian package for Cassandra

2010-09-16 Thread Francois Richard
Thanks Clint, I am going to look-up the links below, I am pretty new on the DEB packaging in general and from what I have seen so far, a lot of the tutorial on the web are mostly based on classic [ .configure | make | make install ] of an application built in C. In this case I wanted to figure

Re: Getting client only example to work

2010-09-16 Thread Asif Jan
ok, did something about the message service changed in the initClient method; essentially now one can not call initClient when a cassandra instance is running on the same machine. thanks On Sep 16, 2010, at 3:48 PM, Gary Dusbabek wrote: I discovered some problems with the fat client earlier

Re: Bootstrapping stays stuck

2010-09-16 Thread Gurpreet Singh
Thanks to driftx from cassandra IRC channel for helping out. This was resolved by increasing the rpc timeout for the bootstrap process. On Wed, Sep 15, 2010 at 11:43 AM, Gurpreet Singh wrote: > This problem still stays unresolved despite numerous restarts to the > cluster. I cant seem to find a w

Re: Buildding a Ubuntu / Debian package for Cassandra

2010-09-16 Thread Clint Byrum
On Sep 16, 2010, at 2:03 PM, Francois Richard wrote: > Thanks Clint, > > I am going to look-up the links below, I am pretty new on the DEB packaging > in general and from what I have seen so far, a lot of the tutorial on the web > are mostly based on classic [ .configure | make | make install

questions on cassandra (repair and multi-datacenter)

2010-09-16 Thread Gurpreet Singh
Hi, I have a few questions and was looking for an answer. I have a cluster of 7 Cassandra 0.6.5 nodes in my test setup. RF=2. Original data size is about 100 gigs, with RF=2, i see the total load on the cluster is about 200 gigs, all good. 1. I was looking to increase the RF to 3. This process e

What the thrift version cassandra 0.7 beta uses?

2010-09-16 Thread Ying Tang
What the thrift version cassandra 0.7 beta uses? -- Best regards, Ivy Tang

Re: What the thrift version cassandra 0.7 beta uses?

2010-09-16 Thread Jeremy Hanna
It doesn't use a specific version - it uses a specific subversion revision. The revision number is appended to the thrift jar in the cassandra lib folder. On Sep 16, 2010, at 9:10 PM, Ying Tang wrote: > What the thrift version cassandra 0.7 beta uses? > > -- > Best regards, > > Ivy Tang > >

Re: What the thrift version cassandra 0.7 beta uses?

2010-09-16 Thread Ying Tang
So the thrift.lib will maybe change while the cassandra is updating? On Thu, Sep 16, 2010 at 10:36 PM, Jeremy Hanna wrote: > It doesn't use a specific version - it uses a specific subversion revision. > The revision number is appended to the thrift jar in the cassandra lib > folder. > > On Sep 1

Re: questions on cassandra (repair and multi-datacenter)

2010-09-16 Thread Benjamin Black
On Thu, Sep 16, 2010 at 3:19 PM, Gurpreet Singh wrote: > 1.  I was looking to increase the RF to 3. This process entails changing the > config and calling repair on the keyspace one at a time, right? > So, I started with one node at a time, changed the config file on the first > node for the keysp

Re: questions on cassandra (repair and multi-datacenter)

2010-09-16 Thread Gurpreet Singh
Thanks Benjamin. I realised that, i have reverted using cleanup, got it back to old state and testing the scenario exactly the way you put it. On Thu, Sep 16, 2010 at 10:56 PM, Benjamin Black wrote: > On Thu, Sep 16, 2010 at 3:19 PM, Gurpreet Singh > wrote: > > 1. I was looking to increase the