我安裝了datastax cassandra企業版,並且它不允許我更改默認密碼。無法編輯cassandra用戶密碼
ALTER USER cassandra WITH PASSWORD 'newpassword' SUPERUSER ;
我越來越低於錯誤。
未經授權:錯誤從服務器:代碼= 2100 [未授權]消息=「只有超級用戶可以創建具有超級用戶狀態的作用」
任何幫助高度讚賞。
感謝, 阿什溫
我安裝了datastax cassandra企業版,並且它不允許我更改默認密碼。無法編輯cassandra用戶密碼
ALTER USER cassandra WITH PASSWORD 'newpassword' SUPERUSER ;
我越來越低於錯誤。
未經授權:錯誤從服務器:代碼= 2100 [未授權]消息=「只有超級用戶可以創建具有超級用戶狀態的作用」
任何幫助高度讚賞。
感謝, 阿什溫
即使你是在cqlsh作爲默認卡桑德拉/ Cassandra的用戶,我的猜測是,它被絆倒,旨在防止給「SUPERUSER」給自己的邏輯。嘗試沒有在最後的 「SUPERUSER」:
卡桑德拉2.1或更低:
ALTER USER cassandra WITH PASSWORD 'new password';
卡桑德拉2.2或更高版本:
ALTER ROLE cassandra WITH PASSWORD='new password';
感謝阿龍。
我使用卡桑德拉3.10.0.1652和DSE 5.1.0
它的工作我在dse.yaml文件中啓用內部驗證
authentication_options:
enabled: true
default_scheme: internal
authorization_options:
enabled: true
role_management_options:
mode: internal
感謝, 阿什溫後。
您正在使用哪個版本的Cassandra? – Aaron