incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pablo D. Salgado" <pdsalg...@gmail.com>
Subject Authentication
Date Wed, 20 Oct 2010 14:44:32 GMT
Hello everybody,

I'm working with Hector 0.6.0_12 and Cassandra 0.6.6 with
SimpleAuthenticator.
How could I login to Cassandra using Hector? - With the standard operation
(without sending login information to Hector) I'm getting this exception:

INFO  me.prettyprint.cassandra.service.CassandraClientPoolImpl  - Creating a
CassandraClientPool
 Exception in thread "main" InvalidRequestException(why:Login is required
before any other API calls)
    at
org.apache.cassandra.thrift.Cassandra$get_slice_result.read(Cassandra.java:4661)
    at
org.apache.cassandra.thrift.Cassandra$Client.recv_get_slice(Cassandra.java:382)
    at
org.apache.cassandra.thrift.Cassandra$Client.get_slice(Cassandra.java:356)
    at
me.prettyprint.cassandra.service.KeyspaceImpl$8.execute(KeyspaceImpl.java:263)
    at
me.prettyprint.cassandra.service.KeyspaceImpl$8.execute(KeyspaceImpl.java:259)
    at
me.prettyprint.cassandra.service.Operation.executeAndSetResult(FailoverOperator.java:354)
    at
me.prettyprint.cassandra.service.FailoverOperator.operateSingleIteration(FailoverOperator.java:171)
    at
me.prettyprint.cassandra.service.FailoverOperator.operate(FailoverOperator.java:84)
    at
me.prettyprint.cassandra.service.KeyspaceImpl.operateWithFailover(KeyspaceImpl.java:151)
    at
me.prettyprint.cassandra.service.KeyspaceImpl.getSlice(KeyspaceImpl.java:276)

How could I login to Cassandra using Hector?

Thanks in advance,

Pablo D. Salgado

Mime
View raw message