读书人

Cassandra2.0跟OpsCenter4.0登录权限配

发布时间: 2014-01-17 15:01:00 作者: rapoo

Cassandra2.0和OpsCenter4.0登录权限配置
Cassandra2.0跟OpsCenter4.0登录权限配置

?上面用户名、密码为Cassandra用户名、密码,而非Opscenter用户名、密码。

?

四、使用datastax java driver
cluster = Cluster.builder().withCredentials("username", "password").addContactPoints("host").build();

?

要使用CQL,一定要打开Cassandra 9042端口,它是CQL服务端口。

?

start_native_transport: true
native_transport_port: 9042

?

否则会出现这个错误:

?

2014-01-16 14:52:47,241 ERROR [com.chinacache.core.SixShot] - <com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: /xxx.xx.xx.xx (com.datastax.driver.core.TransportException: [/xxx.xx.xx.xx] Cannot connect))

?

P.S. 更详细的对Table级别的权限认证参考这里:

http://www.datastax.com/documentation/cassandra/2.0/webhelp/index.html#cassandra/security/secure_config_native_authorize_t.html

?

参考:

http://www.datastax.com/documentation/cassandra/2.0/webhelp/index.html#cassandra/security/security_config_native_authenticate_t.html

http://www.datastax.com/documentation/opscenter/4.0/webhelp/index.html#opsc/configure/opscConfigureUserAccess_c.html

?

--end

读书人网 >软件架构设计

热点推荐