cassandra: apache-cassandra-2.1.8Cassandra xác thực vấn đề
Gần đây tôi đã cấu hình cụm 2 nút với Authenticator
thiết lập để PasswordAuthenticator
. Khi một trong các nút là xuống Tôi không thể đăng nhập vào Cqlsh và bị lỗi dưới đây
Connection error: ('Unable to connect to any servers',
{'192.168.0.45': AuthenticationFailed(u'Failed to authenticate to 192.168.0.45: code=0100 [Bad credentials]
message="org.apache.cassandra.exceptions.UnavailableException: Cannot achieve consistency level QUORUM"',)})
RF hệ thống được đặt thành 2 là tôi có 2 nút.
C:\apache-cassandra-2.1.8-bin\apache-cassandra-2.1.8\bin>nodetool status
Starting NodeTool
Datacenter: DC1
================
Status=Up/Down
|/ State=Normal/Leaving/Joining/Moving
-- Address Load Tokens Owns Host ID Rack
UN 192.168.0.45 327.87 KB 256 ? 66a97a0a-d69c-4daf-b0f5-55cb8442d728 RAC1
UN 192.168.0.46 234.28 KB 256 ? 432031fc-eea3-4b02-8d79-f877bbd8afaf RAC1
KeySpace RF
[email protected]> select * from system.schema_keyspaces;
keyspace_name | durable_writes | strategy_class | strategy_options
---------------+----------------+---------------------------------------------+----------------------------
system_auth | True | org.apache.cassandra.locator.SimpleStrategy | {"replication_factor":"2"}
system | True | org.apache.cassandra.locator.LocalStrategy | {}
system_traces | True | org.apache.cassandra.locator.SimpleStrategy | {"replication_factor":"2"}
(3 rows)
Tôi có kèm theo Cassandra File, cassandra.yaml và cassandra-topology.properties nộp
Đáng yêu ... đến mức ... cảm ơn rất nhiều Jim – user2704472