如何设置这个?我有一个复制因子为 3 的三节点集群,在启动时出现以下错误:
WARN [NonPeriodicTasks:1] 2013-10-08 14:06:42,751 PasswordAuthenticator.java (line 242) PasswordAuthenticator skipped default user setup: some nodes were not ready
WARN [NonPeriodicTasks:1] 2013-10-08 14:06:42,763 Auth.java (line 223) Skipped default superuser setup: some nodes were not ready
没有创建默认用户,并且尝试使用例如 cqlsh 登录失败:
$ cqlsh mynode myport -u cassandra -p cassandra
Traceback (most recent call last):
File "/usr/opt/apache-cassandra-2.0.1/bin/cqlsh", line 2031, in <module>
main(*read_options(sys.argv[1:], os.environ))
File "/usr/opt/apache-cassandra-2.0.1/bin/cqlsh", line 2017, in main
display_float_precision=options.float_precision)
File "/usr/opt/apache-cassandra-2.0.1/bin/cqlsh", line 477, in __init__
cql_version=cqlver, transport=transport)
File "/usr/opt/apache-cassandra-2.0.1/bin/../lib/cql-internal-only-1.4.0.zip/cql-1.4.0/cql/connection.py", line 143, in connect
File "/usr/opt/apache-cassandra-2.0.1/bin/../lib/cql-internal-only-1.4.0.zip/cql-1.4.0/cql/connection.py", line 59, in __init__
File "/usr/opt/apache-cassandra-2.0.1/bin/../lib/cql-internal-only-1.4.0.zip/cql-1.4.0/cql/thrifteries.py", line 157, in establish_connection
File "/usr/opt/apache-cassandra-2.0.1/bin/../lib/cql-internal-only-1.4.0.zip/cql-1.4.0/cql/cassandra/Cassandra.py", line 455, in login
File "/usr/opt/apache-cassandra-2.0.1/bin/../lib/cql-internal-only-1.4.0.zip/cql-1.4.0/cql/cassandra/Cassandra.py", line 476, in recv_login
cql.cassandra.ttypes.AuthenticationException: AuthenticationException(why='Username and/or password are incorrect')