kafkatopic listbrokers

Lists the Apache Kafka Wire Protocol brokers in a multi-node Data Fabric cluster.

Syntax

IMPORTANT Ensure that the mapr-kafka package is installed on the server node, before running the kafkatopic listbrokers command. When mapr-kafka package is not installed, the following error is encountered: Command execution failed! 'kafkatopic' commands requires 'mapr-kafka' package.
CLI

The maprcli command lists the Apache Kafka Wire Protocol brokers on the multi-node Kafka cluster.

$ maprcli kafkatopic listbrokers
REST
http[s]://<host>:<port>/rest/kafkatopic/listbrokers

Example

Use the command maprcli kafkatopic listbrokers to list brokers along with the broker details in the Data Fabric cluster.
$ maprcli kafkatopic listbrokers -json
   {
     "timestamp":1687251172651,
     "timeofday":"2023-06-20 01:52:52.651 GMT-0700 AM",
     "status":"OK",
     "total":3,
     "data":[
     {
         "id":0,
         "security.protocol":"SASL_PLAINTEXT",
         "sasl.mechanism":"PLAIN",
         "host":"m2-mapreng-dev10.mip.storage.hpecorp.net",
         "port":"9092",
         "starttime":"1687008286813"
     },
     {
         "id":1,
         "security.protocol":"SASL_PLAINTEXT",
         "sasl.mechanism":"PLAIN",
         "host":"m2-mapreng-dev09.mip.storage.hpecorp.net",
         "port":"9092",
         "starttime":"1687008287001"
     },
     {
         "id":2,
         "security.protocol":"SASL_PLAINTEXT",
         "sasl.mechanism":"PLAIN",
         "host":"m2-mapreng-dev11.mip.storage.hpecorp.net",
         "port":"9092",
         "starttime":"1687008285254"
     }
   ]
}