0

尝试在本地运行 pulsar-client consume 命令时,出现错误:

无法加载身份验证插件

这是我运行的命令:

./pulsar-client consume persistent://data-log/ingest/data-log-kafka -s damo

我有一个client.conf配置,下面列出了来自 pulsar 的完整“堆栈跟踪”。我看不到我错过了什么

    Failed to load an authentication plugin
    Usage: pulsar-client [options] [command] [command options]
    Options:
    --auth-params
       Authentication parameters, e.g., "key1:val1,key2:val2".
       Default: token:eyJh##############################
    --auth-plugin
       Authentication plugin class name.
       Default: org.apache.pulsar.client.impl.auth.AuthenticationToken 
    -h, --help
       Show this help.
       Default: false
    --url
       Broker URL to which to connect.
       Default: pulsar+ssl://aaa-bbb-ccc-ms-tls.acme.com:6651
    Commands:
    consume      Consume messages from a specified topic
      Usage: consume [options] TopicName
        Options:
          --hex
             Display binary messages in hex.
             Default: false
          -n, --num-messages
             Number of messages to consume, 0 means to consume forever.
             Default: 1
          -r, --rate
             Rate (in msg/sec) at which to consume, value 0 means to consume
             messages as fast as possible.
             Default: 0.0
        * -s, --subscription-name
             Subscription name.
          -t, --subscription-type
             Subscription type: Exclusive, Shared, Failover.
             Default: Exclusive
             Possible Values: [Exclusive, Shared, Failover]

任何提示表示赞赏!谢谢

4

1 回答 1

1

问题是我使用的是旧版本的 pulsar,并且在 2.5.0 上运行良好。哦!!!!

于 2020-04-04T12:40:03.057 回答