InvalidRequest: code=2200 [无效查询] message="unconfigured table credentials"
InvalidRequest: code=2200 [Invalid query] message="unconfigured table credentials"
我正尝试按照建议重设 cassandra
用户的密码 here:
UPDATE system_auth.credentials SET salted_hash = 'a$H46haNkcbxlbamyj0OYZr.v4e5L08WTiQ1scrTs9Q3NYy.6B..x4O' WHERE username='cassandra';
我收到以下错误:
InvalidRequest: code=2200 [Invalid query] message="unconfigured table credentials"
我的客户端是cqlsh 5.0.1.
如何重置 cassandra 密码?
Cassandra 是从 datastax-ddc-3.7.0-1.noarch.rpm
安装的
Cassandra 版本为 3.7.0
在 Cassandra 2.2 中 table 名称已更改
检查 Cassandra Release News
新增table角色
CREATE TABLE system_auth.roles (
role text PRIMARY KEY,
can_login boolean,
is_superuser boolean,
member_of set<text>,
salted_hash text
);
使用以下查询:
UPDATE system_auth.roles SET salted_hash = 'aPzCxcMNKgsBEcI1lf.ndut24xyO0N2LzRdRF1tzaMaSH9KFLz/0u' WHERE role = 'cassandra';
要更改密码,请使用此命令:
ALTER USER <user_name> WITH PASSWORD <enter_new_password>
见http://docs.datastax.com/en/cql/3.1/cql/cql_reference/alter_user_r.html
我正尝试按照建议重设 cassandra
用户的密码 here:
UPDATE system_auth.credentials SET salted_hash = 'a$H46haNkcbxlbamyj0OYZr.v4e5L08WTiQ1scrTs9Q3NYy.6B..x4O' WHERE username='cassandra';
我收到以下错误:
InvalidRequest: code=2200 [Invalid query] message="unconfigured table credentials"
我的客户端是cqlsh 5.0.1.
如何重置 cassandra 密码?
Cassandra 是从 datastax-ddc-3.7.0-1.noarch.rpm
Cassandra 版本为 3.7.0
在 Cassandra 2.2 中 table 名称已更改
检查 Cassandra Release News
新增table角色
CREATE TABLE system_auth.roles (
role text PRIMARY KEY,
can_login boolean,
is_superuser boolean,
member_of set<text>,
salted_hash text
);
使用以下查询:
UPDATE system_auth.roles SET salted_hash = 'aPzCxcMNKgsBEcI1lf.ndut24xyO0N2LzRdRF1tzaMaSH9KFLz/0u' WHERE role = 'cassandra';
要更改密码,请使用此命令:
ALTER USER <user_name> WITH PASSWORD <enter_new_password>
见http://docs.datastax.com/en/cql/3.1/cql/cql_reference/alter_user_r.html