kafkatopic getcontroller
Fetches details of the controller node from the available Apache Kafka Wire Protocol brokers in the Data Fabric cluster.
Syntax
IMPORTANT
Ensure that the mapr-kafka
package is installed on the
server node, before running the kafkatopic getcontroller
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 displays information about the Apache Kafka Wire Protocol controller on the Data Fabric cluster.
Use the command to understand which of the nodes in the cluster is the controller.$ maprcli kafkatopic getcontroller -json
- REST
-
http[s]://<host>:<port>/rest/kafkatopic/getcontroller
Example
Use the commandmaprcli kafkatopic
getcontroller
to display details of the Apache Kafka Wire Protocol broker
$ maprcli kafkatopic getcontroller -json
{
"timestamp":1687176345951,
"timeofday":"2023-06-19 05:05:45.951 GMT-0700 AM",
"status":"OK",
"total":1,
"data":[
{
"id":0,
"host":"m2-sm2027-14-n2.mip.storage.hpecorp.net",
"port":"9092",
"security.protocol":"SASL_PLAINTEXT",
"sasl.mechanism":"PLAIN",
"starttime":"1687008489078"
}
]
}