-
-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Advanced Settings for cassandra connection #11
Comments
Hi Dominick, thanks for your input! I'll implement support for auth_provider in very near future. Stay tuned! |
In the meantime you can add PlainTextAuthProvider (described here: http://datastax.github.io/python-driver/api/cassandra/auth.html#cassandra.auth.PlainTextAuthProvider) to connection options. Let me know if it solves your problem. I'll add this option automatically if USER and PASSWORD options are set. |
Yes I saw that this morning. I hadn't time yet to implement it completely Thanks |
Here is how to get it to work:
Once the Authenticator class is imported you can tweak your database connection like the following.
In my case the
Thanks for your help, I am closing the issue. Best |
Try the new version 0.1.4. Just add USER and PASSWORD, no need to define auth_provider in connection options. |
I confirm this works using the following connection pattern:
No more need to import Thanks |
Thanks Rafal the fast fix is really appreciated. |
Hi,
I am looking for help in setting the connection to cassandra. I can't find what are the proper options to get it connected with my django settings.
I can tell that my cassandra setup is working fine because I can connect from OpsCenter and DevCenter and query the system tables. But I can't figure out how to initiate the connection for django-cassandra -engine.
I would really appreciate if you could help.
The following code is in my settings.py
If I leave the username and password in the connection options list I get the following message:
I didn't found anything talking about
auth_provider
and yes in my /etc/cassandra/cassandra.yaml I have it set toauthenticator: PasswordAuthenticator
.Where can I find how to correctly set the connection options?
Any help is appreciated.
Regards
Dominick
The text was updated successfully, but these errors were encountered: