我試圖設置cassandra的用戶身份驗證,當我遇到以下問題時。試圖登錄到cassandra的控制檯(cqlsh),它拒絕我
首先我已經更新了cassandra.yaml
用:
authenticator: PasswordAuthenticator
然後創建的system_auth密鑰空間用3作爲一個replication_factor:
CREATE KEYSPACE system_auth WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 3};
然後重新運行卡桑德拉與命令:
bin/cassandra
然後,所有這一切,我繼續並確保修復IR我的節點(S)與(雖然我不知道如果我明白這是爲什麼重要/必要):
nodetool repair
即使做所有這些步驟後,卡桑德拉/ JAVA罵我用:
Traceback (most recent call last):
File "/home/tscobb/Documents/BM/apache-cassandra-2.0.5/bin/cqlsh", line 2044, in <module>
main(*read_options(sys.argv[1:], os.environ))
File "/home/tscobb/Documents/BM/apache-cassandra-2.0.5/bin/cqlsh", line 2030, in main
display_float_precision=options.float_precision)
File "/home/tscobb/Documents/BM/apache-cassandra-2.0.5/bin/cqlsh", line 480, in __init__
cql_version=cqlver, transport=transport)
File "/home/tscobb/Documents/BM/apache-cassandra-2.0.5/bin/../lib/cql-internal-only-1.4.1.zip/cql-1.4.1/cql/connection.py", line 143, in connect
File "/home/tscobb/Documents/BM/apache-cassandra-2.0.5/bin/../lib/cql-internal-only-1.4.1.zip/cql-1.4.1/cql/connection.py", line 59, in __init__
File "/home/tscobb/Documents/BM/apache-cassandra-2.0.5/bin/../lib/cql-internal-only-1.4.1.zip/cql-1.4.1/cql/thrifteries.py", line 157, in establish_connection
File "/home/tscobb/Documents/BM/apache-cassandra-2.0.5/bin/../lib/cql-internal-only-1.4.1.zip/cql-1.4.1/cql/cassandra/Cassandra.py", line 465, in login
File "/home/tscobb/Documents/BM/apache-cassandra-2.0.5/bin/../lib/cql-internal-only-1.4.1.zip/cql-1.4.1/cql/cassandra/Cassandra.py", line 486, in recv_login
cql.cassandra.ttypes.AuthenticationException: AuthenticationException(why='org.apache.cassandra.exceptions.UnavailableException: Cannot achieve consistency level QUORUM')
老實說,在這一點上,我不知道如何繼續。如果任何人有任何想法,將不勝感激。
我在Ubuntu vm中運行cassandra 2.0.5。不知道這是否有幫助。
而且,當我運行:
nodetool status
下出現:
nodetool status
Datacenter: datacenter1
=======================
Status=Up/Down
|/ State=Normal/Leaving/Joining/Moving
-- Address Load Tokens Owns Host ID Rack
UN 127.0.0.1 1.57 MB 256 100.0% 37ae1d4c-0df5-43d2-9593-4603ac68c34a rack1
集羣中有多少個節點? – Aaron
我如何找出這些信息? –
發佈'nodetool status'的輸出。 – Aaron