实战-Cassandra之账号权限管理
密码认证器 默认的认证器是 org.apache.cassandra.auth.AllowAllAuthenticator。如果想要求客户端提供凭证,Cassandra提供另一种选择 org.apache.cassandra.auth.PasswordAuthenticatot 配置认证器 默认登录cqlsh不需要密码,修改cassandra.yaml 修改 # authenticator: AllowAllAuthenticator authenticator: PasswordAuthenticator Cassandra2.2或以后的版本,会看到使用 PasswordAuthenticator必须使用CassandraRoleManager,是Cassandra授权功能的一部分。 增加用户 修改之后登录提示需要账号密码,默认账号密码都是 cassandra [cassandra@node2 bin]$ ./cqlsh node2 Connection error: ('Unable to connect to any servers', {'192.168.56.12': AuthenticationFailed('Remote end requires authentication.',)}) [cassandra@node2 bin]$ ./cqlsh node2 -u