Re: In the ‘Cassandra.Iface’ interface, is it correct to call ‘void set_keyspace()’ prior to ‘login()’?

2011-01-30 Thread indika kumara
Aaron, thanks again for your help. In the first step, the user add the keyspace 'foo'. In the server side, it is modified prefixing the user's domain name if there is one. So after that, there is no keyspace with name 'foo' but 'bar.com_foo'. The client is not aware of this and he still refers it

Re: EOFException in ReadStage

2011-01-30 Thread aaron morton
Could you supply some more information on how to reproduce this please. Such as the schema, data inserted and the read command. Aaron On 31 Jan 2011, at 20:09, Narendra Sharma wrote: > Version: Cassandra 0.7.1 > > I am seeing following exception at regular interval (very frequently) in > Ca

Re: In the ‘Cassandra.Iface’ interface, is it correct to call ‘void set_keyspace()’ prior to ‘login()’?

2011-01-30 Thread aaron morton
I'm having trouble understanding the steps you've described in step 1. The error is raised because the Keyspace must exist in the system meta data. It's used as the container to find the CF definition, and as part of the Resource description when the request is Authorized . Hope that helps.

EOFException in ReadStage

2011-01-30 Thread Narendra Sharma
Version: Cassandra 0.7.1 I am seeing following exception at regular interval (very frequently) in Cassandra. I did a clean install of Cassandra 0.7.1 and deleted all old data. Any idea what could be the cause? The stack is same for all the occurrances. Thanks, Naren ERROR [ReadStage:11232] 2011-

Re: In the ‘Cassandra.Iface’ interface, is it correct to call ‘void set_keyspace()’ prior to ‘login()’?

2011-01-30 Thread indika kumara
Hi Aaron, Thank a lot for your help. I have still some questions to get clarified.. The issue happens in the following scenario. 1) Call add keyspace from a client API -The keyspace given by the client is modified and used for further operations. e.g Client's keysace = 'foo' and the his doma

Re: Cassandra + Thrift on RedHat Enterprise 5

2011-01-30 Thread Shashank Tiwari
Why wouldn't you leverage Lucandra/Solandra instead of starting from scratch? Thanks, Shashank Shashank Tiwari web: www.shanky.org | www.treasuryofideas.com 2011/1/30 Wangpei (Peter) > Hector document: > > http://www.riptano.com/sites/default/

Re: TSocket timing out

2011-01-30 Thread Dave Revell
Under heavy load, this could be the result of the server not accept()ing fast enough, causing the number of pending connections to exceed the listen backlog size in the kernel. I believe Cassandra uses the default of 50 backlogged connections. This is one of the reasons why a persistent connectio

Re: In the ‘Cassandra.Iface’ interface, is it correct to call ‘void set_keyspace()’ prior to ‘login()’?

2011-01-30 Thread Aaron Morton
AFAIK The order of calling login() and set_keyspace() is not important. set_keyspace() just stores the keyspace in the ClientState on the connection thread, and  login authenticates the user name and password and stores them in the ClientState. Functions on CassandraServer that require authorisatio

Re: In the ‘Cassandra.Iface’ interface, is it correct to call ‘void set_keyspace()’ prior to ‘login()’?

2011-01-30 Thread indika kumara
This issue came when I was trying to implement an idea listed at [ http://wiki.apache.org/cassandra/MultiTenant] – Namespaces. I thought the namespace can be the tenant’s domain name provided though username (e.g. f...@bar.com) or can be returned through authentication backend on login. For both ca

In the ‘Cassandra.Iface’ interface, is it correct to call ‘void set_keyspace()’ prior to ‘login()’?

2011-01-30 Thread indika kumara
Hi All, I observed the behavior indicated in the subject of this email even the ‘default User’ returned from authentication is null. Is this correct? Thanks, Indika

Re: Schema Design

2011-01-30 Thread Jonathan Ellis
fwiw, https://github.com/thobbs/logsandra is more recent. 2011/1/30 aaron morton : > This project may be what you are looking for, or provide some inspiration > https://github.com/jbohman/logsandra > > Cloud Kick has an example or rolling up time series data > https://www.cloudkick.com/blog/2010

Re: TSocket timing out

2011-01-30 Thread aaron morton
Am assuming these are client side side timeouts, you could increase the client side timeout when the TSocket is created. Are you using a higher level library or raw Thrift?. Alternatively you may be overloading the cluster. Are there are WARN messages in the cluster about Dropped Messages ?

Re: Node going down when streaming data, what next?

2011-01-30 Thread aaron morton
Just to check whats going on... You have a dead node 'A', it's turned off and still showing up in the nodetool ring results for other nodes but the token field is empty. And you've tried running nodetool removetoken on any other node in the cluster. Is that correct ? Can you include the the out

Re: Cassandra and count

2011-01-30 Thread aaron morton
There are two functions on the 0.7 API http://wiki.apache.org/cassandra/API to count the columns in a row, get_count() and multiget_count() (not listed on the wiki yet). Both of these will take a SlicePredicate which may have an empty start and end. The only way to count rows is to use get_ra

Re: Slow writes after migration to 0.7

2011-01-30 Thread aaron morton
Robert, Is this still an issue ? What to the write latency attributes say for the CF's in JConsole ? Aaron On 28 Jan 2011, at 05:34, Roberto Bentivoglio wrote: > Hi all, > we're moving our enviroment to the new version of Cassandra (from the 0.6.8). > We're using the default

Re: Cassandra + Thrift on RedHat Enterprise 5

2011-01-30 Thread Wangpei (Peter)
Hector document: http://www.riptano.com/sites/default/files/hector-v2-client-doc.pdf 发件人: Vedarth Kulkarni [mailto:vedar...@gmail.com] 发送时间: 2011年1月30日 14:03 收件人: user@cassandra.apache.org 主题: Re: Cassandra + Thrift on RedHat Enterprise 5 How can I use Hector please can you explain me in detail