Support for Cassandra authentication ? (InvalidRequestException(why:You have not logged in))

74 views
Skip to first unread message

Florent D

unread,
Feb 10, 2015, 10:01:02 AM2/10/15
to cumulus...@googlegroups.com
Hello

I'm a first time user of CumulusRdf.
I've been trying to set up an instance of the CumulusRdf Web application over a pre-existing Cassandra instance (meaning I did not install a new cassandra for my test : it was already there for another purpose)

The set-up is the following :
- cumulusrdf 1.0.1
- apache tomcat 7.0.59
- cassandra 1.1.6

The installation of Apache went apparently well. I can access cumulusrdf at localhost:8080/cumulusrdf-1.0.1, but on this homepage, I get the warning message "CumulusRDF is not open".
In the "context" tab, I see :
1     error     me.prettyprint.hector.api.exceptions.HInvalidRequestException: InvalidRequestException(why:You have not logged in)

My hypothesis is that CumulusRdf does indeed try to connect to the cassandra database (the host:port of cassandra in cumulus.yaml seem correct to me) but is denied access.
The cassandra instances uses authentication. Read and write access are protected by login/password. It is a feature of cassandra itself (see "configuring authentication and authorization at http://planetcassandra.org/blog/a-quick-tour-of-internal-authentication-and-authorization-security-in-datastax-enterprise-and-apache-cassandra/).
If I try to access my Cassandra with cqlsh and read anything, I get the error "Bad Request: You have not logged in", which is similar to the one CumulusRdf gives me. Whereas if I try to access Cassandra with cqlsh -u'login' -p'password', all works well.

Which bring me to my questions : does cumulusRdf support Cassandra authentication ? The example of cassandra.yaml at http://code.google.com/p/cumulusrdf/wiki/ConfigParameters does not seem to contain a "cassandra-login" of "cassandra-password" item.

Is there something I missed in the documentation ?
Have you seen this error before and know of another possible cause ?

Thank you for your help
and best regards

Reply all
Reply to author
Forward
0 new messages