簡體   English   中英

Cassandra NodeTool身份驗證

[英]Cassandra nodetool authentication

通過使用DataStax Enterprise,我按照以下說明對我的JMX會話進行了密碼保護: https : //support.datastax.com/hc/en-us/articles/204226179-Step-by-step-instructions-for-securing-JMX-驗證nodetool實用程序OpsCenter和JConsole

不幸的是,嘗試連接時總是出現身份驗證錯誤。

我確定我使用了正確的憑據,因為我可以使用我應用的憑據使用jmxconsole連接到服務器。

ubuntu@myServer:/etc/bps$ nodetool status -u cassandra -pw somepass
error: Authentication failed! Credentials required
-- StackTrace --
java.lang.SecurityException: Authentication failed! Credentials required
        at com.sun.jmx.remote.security.JMXPluggableAuthenticator.authenticationFailure(JMXPluggableAuthenticator.java:211)
.....

我只需要查看命令的幫助。 不要只是盲目按照上面鏈接上的指示進行操作。 在指定命令...之前,必須提供用戶名和密碼。

ubuntu@cgcassdev-search-uswest2a-5d51a186:/etc/bps$ nodetool help
usage: nodetool [(-pwf <passwordFilePath> | --password-file <passwordFilePath>)]
        [(-h <host> | --host <host>)] [(-pw <password> | --password <password>)]
        [(-u <username> | --username <username>)] [(-p <port> | --port <port>)]
        <command> [<args>]

所以這工作:

ubuntu@myServer:/etc/bps$ nodetool -u cassandra -pw somepass status

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM