Is there a concept of a session

2011-01-18 Thread indika kumara
Hi All, Is there a concept of a session? I would like to log-in(authenticate) one time into the Cassandra, and then subsequently access the Cassandra without authenticating again. Thanks, Indika

Re: Is there a concept of a session

2011-01-18 Thread indika kumara
ue, Jan 18, 2011 at 3:07 PM, Aaron Morton wrote: > Yes, the client should maintain it's connection to the cluster. The > connection holds the login credentials and the keyspace to use. > > This is normally managed by the client, which one are you using? > > Aaron > On 1

Re: Is there a concept of a session

2011-01-18 Thread indika kumara
documentation here ? > http://www.riptano.com/sites/default/files/hector-v2-client-doc.pdf > > (also yes the session is server side, each connection has a thread on the > server it connects to) > > Aaron > > On 18/01/2011, at 10:40 PM, indika kumara wrote: > > Hi

Re: Is there a concept of a session

2011-01-18 Thread indika kumara
ong as the client > wants it to. > > Try the Hector mailing list for details on it's implementation. > Aaron > > On 18/01/2011, at 11:15 PM, indika kumara wrote: > > Thanks Aaron... Hector cannot uses strategies such as cookies for > maintaining session, so it has to

Re: Multi-tenancy, and authentication and authorization

2011-01-18 Thread indika kumara
gt; > If you want to continue to discussion let's move this to the user list. > > A > > > On 17/01/2011, at 7:44 PM, indika kumara wrote: > > > Hi Stu, > > > > In our app, we would like to offer cassandra 'as-is' to tenants. It that > &

Re: Multi-tenancy, and authentication and authorization

2011-01-18 Thread indika kumara
be an QName? Thanks, Indika On Tue, Jan 18, 2011 at 5:26 PM, indika kumara wrote: > Moving to user list > > > On Tue, Jan 18, 2011 at 4:05 PM, Aaron Morton wrote: > >> Have a read about JVM heap sizing here >> http://wiki.apache.org/cassandra/MemtableThresholds >> >

Re: Multi-tenancy, and authentication and authorization

2011-01-18 Thread indika kumara
Hi Aaron, I read some articles about the Cassandra, and now understand a little bit about trade-offs. I feel the goal should be to optimize memory as well as performance. I have to consider the number of column families, the columns per a family, the number of rows, the memtable’s threshold, and

Re: Multi-tenancy, and authentication and authorization

2011-01-19 Thread indika kumara
As the actual problem is mostly related to the number of CFs in the system (may be number of the columns), I still believe that supporting exposing the Cassandra ‘as-is’ to a tenant is doable and suitable though need some fixes. That multi-tenancy model allows a tenant to use the programming model

Re: Multi-tenancy, and authentication and authorization

2011-01-19 Thread indika kumara
iguration provided by tenant - third > priority) > > > On Wed, Jan 19, 2011 at 3:15 PM, indika kumara wrote: > >> As the actual problem is mostly related to the number of CFs in the system >> (may be number of the columns), I still believe that supporting exposing the >

Re: Multi-tenancy, and authentication and authorization

2011-01-20 Thread indika kumara
nds behavior > on the CF level will be stopped at the keyspace and server level before > doing any damage.) > > I don't think Cassandra needs to know about end-users. From Cassandra's > point of view the tenant is the user. > > On Thu, Jan 20, 2011 at 7:00 AM, indika k

Re: Multi-tenancy, and authentication and authorization

2011-01-20 Thread indika kumara
lso help for the issues that were discussed > before even though it will be built on averages which probably are no so > fine-grained but it can provide worse cases numbers to the application > that uses Cassandra > > Thanks, > Miriam > > > == > Miriam Allalo

Configurability of the implementation of the Cassandra.Iface

2011-01-20 Thread indika kumara
Hi all, Would it be worth the capability of configuring the implementation of the Cassandra.Iface?. I have to intercept the requests to the Cassandra server without modifying the existing code (CassandraServer.java). So, the server-side implementation of the Cassandra.Iface (CassandraServer) need

The authorize method of IAuthority

2011-01-21 Thread indika kumara
Hi All, Shouldn't the existing method be changed to the following? public boolean authorize(AuthenticatedUser user, List resource, Permission permission); // checks the authority for a given user for a given resource for a given permission The existing method: public EnumSet authorize(Authent

Re: The authorize method of IAuthority

2011-01-21 Thread indika kumara
Thanks Eric for the clarification. On Fri, Jan 21, 2011 at 11:11 PM, Eric Evans wrote: > On Fri, 2011-01-21 at 22:45 +0600, indika kumara wrote: > > Shouldn't the existing method be changed to the following? > > > > public boolean authorize(AuthenticatedUs

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: In the ‘Cassandra.Iface’ interface, is it correct to call ‘void set_keyspace()’ prior to ‘login()’?

2011-01-30 Thread indika kumara
appreciate the suggestions for implementing the aforementioned idea listed in the wiki. Thanks, Indika On Sun, Jan 30, 2011 at 10:21 PM, indika kumara wrote: > Hi All, > > I observed the behavior indicated in the subject of this email even the > ‘default User’ returned from authentica

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

2011-01-30 Thread indika kumara
; where things are checked. > > If you wanted to set the keyspace based on the login, you could do it in > the login() function on the ClientState. Then your client would not need to > call set_keyspace() . The keyspace has to exist though, it's used it lots of > places to identify the

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

2011-01-30 Thread indika kumara
27;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 A

A Question about authorize method of IAuthority

2011-01-31 Thread indika kumara
Hi All, Currently, there are two permissions - read and write, and there is no way to know the current operation being performed such as add, update, etc. If the operation is 'add', as the user is already logged into the system, I would like to authorize the user for the resource going to add. I t

Re: A Question about authorize method of IAuthority

2011-01-31 Thread indika kumara
e we don't (and probably can't, without locking?) look for an > existing value while doing an insert. This would probably be a larger patch > than you think. > > On Mon, Jan 31, 2011 at 1:54 AM, indika kumara wrote: > >> Hi All, >> >> Currently, there are t