简体   繁体   English

为Cassandra数据库设置用户名和密码

[英]Setting Username and Password For Cassandra database

I am Very much new to cassandra database. 我是cassandra数据库的新手。 I need to set up a username and password for the database ... Somebody please help me explaining how to do that.. 我需要为数据库设置用户名和密码......有人请帮我解释如何做到这一点..

You can create users with passwords that have ro or rw access at the column family level. 您可以使用在列族级别具有ro或rw访问权限的密码创建用户。 For Cassandra 0.7 or earlier, you can find an overview here: http://www.datastax.com/docs/0.7/configuration/authentication 对于Cassandra 0.7或更早版本,您可以在此处找到概述: http//www.datastax.com/docs/0.7/configuration/authentication

For 1.0 and later, authentication was moved into the examples directory. 对于1.0及更高版本,身份验证已移至examples目录中。 You can find an example of how to configure it (same as before) here: http://devblog.michalski.im/2012/04/05/adding-simple-authentication-to-cassandra/ 您可以在此处找到如何配置它的示例(与之前相同): http//devblog.michalski.im/2012/04/05/adding-simple-authentication-to-cassandra/

In general, Cassandra developers seem to recommend segregating your Cassandra database via firewall over relying on user/pass authentication. 通常,Cassandra开发人员似乎建议通过防火墙隔离您的Cassandra数据库,而不是依赖于用户/通过身份验证。 If you can go this route, it's much preferred. 如果你能走这条路,那就更受欢迎了。

For additional security, you can also encrypt inter-node communication: http://wiki.apache.org/cassandra/InternodeEncryption 为了提高安全性,您还可以加密节点间通信: http//wiki.apache.org/cassandra/InternodeEncryption

Here's some more on Cassandra's permissions too (after you setup authentication): http://devblog.michalski.im/2012/04/22/more-on-cassandra-simpleauthority-permissions/ 以下是关于Cassandra权限的更多信息(在您设置身份验证之后): http//devblog.michalski.im/2012/04/22/more-on-cassandra-simpleauthority-permissions/

So, there's a bit more than only the CF-level permission system. 因此,有一点不仅仅是CF级权限系统。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 通过Cassandra中的用户名和密码进行身份验证 - Authentication via username and password in Cassandra 如何找到cassandra的用户名​​密码 - How to Find Username Password of cassandra C#到Cassandra服务的用户名和密码 - C# to Cassandra service with username and password 可以在cassandra的连接URL中传递用户名和密码吗 - Can username and password be passed in connection url for cassandra 如何在python中将用户名和密码传递给cassandra - How to pass along username and password to cassandra in python 访问cassandra没有硬编码的用户名密码 - Accessing cassandra without hardcoded username password Phantom Scala Cassandra连接器:如何指定端口,用户名,节点密码 - Phantom Scala Cassandra connector: how to specify port, username, password of nodes 我应该如何使用 python 脚本将用户名和密码传递给 Cassandra - How should i pass username and password to Cassandra using python script 我应该为 Amazon Keyspaces(托管 Cassandra)使用哪个用户名和密码? - Which username and password should I use for Amazon Keyspaces (managed Cassandra)? 如何安装Cassandra以及如何为Netbeans设置Cassandra用户名和密码及其正确的连接器 - how to install Cassandra and how to set Cassandra username and password & its proper connector for netbeans
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM