これを設定するには?レプリケーション ファクター 3 の 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')