I'm trying to connect cassandraDB
using python. I have used authentication as PlainTextAuthProvider
. This is my code snippet.
auth_provider = PlainTextAuthProvider(username="foo", password="bar")
cluster = Cluster([1.1.1.1], protocol_version=2, auth_provider=auth_provider)
session = cluster.connect()
session.set_keyspace('keyspace')
cluster.connect()
It's throwing following error:
An authentication challenge was not sent, this is suspicious because the driver expects authentication (configured authenticator = PlainTextAuthenticator)