not able to connect to cassandra cluster: "no authenticator found in Cluster configuration"

3,640 views
Skip to first unread message

Sebastian Vagedes

unread,
Jul 14, 2017, 7:02:06 AM7/14/17
to KairosDB
Hi,

I'm currently giving the new beta a shot. It runs smoothly as long as I don't enable authentication and authorization in my C* cluster. I can't tell if this problem is "new" because I'm just starting here.

Here's my setup:
  • single C* instance, "authenticator: PasswordAuthenticator" and "authorizer: CassandraAuthorizer" set in cassandra.yaml
  • single K* instance with "kairosdb.datastore.cassandra.auth.user=x" and "kairosdb.datastore.cassandra.auth.password=y"
And here's the exception I get when I try to start K*:

com.google.inject.ProvisionException: Guice provision errors:

1) Error injecting constructor, com.datastax.driver.core.exceptions.AuthenticationException: Authentication error on host [...]/[...]:9042: Host [...]/[...]:9042 requires authentication, but no authenticator found in Cluster configuration
  at org.kairosdb.datastore.cassandra.CassandraDatastore.<init>(CassandraDatastore.java:136)
  at org.kairosdb.datastore.cassandra.CassandraModule.configure(CassandraModule.java:69)
  while locating org.kairosdb.datastore.cassandra.CassandraDatastore
  at org.kairosdb.datastore.cassandra.CassandraModule.configure(CassandraModule.java:67)
  while locating org.kairosdb.core.datastore.Datastore
    for parameter 0 at org.kairosdb.core.datastore.KairosDatastore.<init>(KairosDatastore.java:70)
  at org.kairosdb.core.CoreModule.configure(CoreModule.java:159)
  while locating org.kairosdb.core.datastore.KairosDatastore
    for parameter 1 at org.kairosdb.core.jobs.CacheFileCleaner.<init>(CacheFileCleaner.java:41)
  at org.kairosdb.core.CoreModule.configure(CoreModule.java:164)
  while locating org.kairosdb.core.jobs.CacheFileCleaner

1 error

Can anybody think of a solution here? User/Pass are correct, I double-checked of course. There are no trailing whitespaces @kairosdb.properties or anything like that...

Cheng Gf

unread,
Jan 19, 2018, 2:03:34 AM1/19/18
to KairosDB
Hi,

   I had the same problem with C* 3.11,did you solve it?

在 2017年7月14日星期五 UTC+8下午7:02:06,Sebastian Spiekermann写道:

Sebastian Spiekermann

unread,
Jan 19, 2018, 2:15:10 AM1/19/18
to KairosDB
Hi Cheng Gf,

yes, it's no big deal:
The property for the user is not labeled correctly. Brian merged my pull request about a month ago to the develop branch.
Here's the difference:
-#kairosdb.datastore.cassandra.auth.username=admin
+#kairosdb.datastore.cassandra.auth.user_name=admin

I'm connecting successfully to C* now.

Cheng Gf

unread,
Jan 19, 2018, 2:24:10 AM1/19/18
to KairosDB
I just found the issue on github, thanks all the same
Reply all
Reply to author
Forward
0 new messages