首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

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

2014-01-17 
Cassandra2.0和OpsCenter4.0登录权限配置?上面用户名、密码为Cassandra用户名、密码,而非Opscenter用户名、密

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

热点排行