【问题标题】:Cassandra nodetool authenticationCassandra nodetool 身份验证
【发布时间】:2016-06-23 23:26:56
【问题描述】:

使用 DataStax Enterprise,我按照此处的说明对我的 JMX 会话进行了密码保护: https://support.datastax.com/hc/en-us/articles/204226179-Step-by-step-instructions-for-securing-JMX-authentication-for-nodetool-utility-OpsCenter-and-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)
.....

【问题讨论】:

标签: cassandra jmx datastax-enterprise


【解决方案1】:

我只需要查看命令的帮助。不要只是盲目地按照上面链接上的说明进行操作。在指定命令之前,您必须提供用户名和密码 ....

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-07-11
    • 1970-01-01
    • 2021-10-22
    • 1970-01-01
    • 2019-10-06
    • 2021-08-06
    • 2015-10-09
    • 2023-03-11
    相关资源
    最近更新 更多