thatdot / quine

Quine • a streaming graph • https://quine.io • Discord: https://discord.gg/GMhd8TE4MR
https://quine.io
Other
301 stars 40 forks source link

Cassandra requires authentication #26

Closed tungtt1006 closed 1 year ago

tungtt1006 commented 1 year ago

Describe the bug Hi, my Cassandra DB (Helm bitnami/cassandra) requires authentication with username, password. How can I configure it in quine.conf ? Thanks.

maglietti commented 1 year ago

Hi @tungtt1006,

Quine uses the DataStax Java Driver for Apache Cassandra for connections. You can configure authentication by adding datastax-java-driver configuration to your local quine.conf file as described on the Authentication page.

For example, adding the following into a quine.conf file will set up basic authentication.

quine.store {
  # Store data in a local Bitnami Apache Cassandra instance
  type = cassandra
}
datastax-java-driver {
  advanced {
    auth-provider {
      class = PlainTextAuthProvider
      username = cassandra
      password = cassandra
    }
  }
}

Then launch Quine with the following command line:

java -Dconfig.file=quine.conf -jar quine.jar