kafkatopic info

Provides detailed information about a Kafka topic.

Syntax

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

The command provides details of an existing Kafka topic.

$ maprcli kafkatopic info -topic <topicname> -json
REST
http[s]://<host>:<port>/rest/kafkatopic/info?topic=<topicname>
Parameter Description
-topic The topic name . This is a mandatory parameter.

Examples

View topic information for a topic by the name day_temperature.
$ maprcli kafkatopic info -topic day_temperature -json
{
        "timestamp":1681933868166,
        "timeofday":"2023-04-19 12:51:08.166 GMT-0700 PM",
        "status":"OK",
        "total":1,
        "data":[
                {
                        "topic":"day_temperature",
                        "owner":"root",
                        "partitions":1,
                        "ttl":604800,
                        "compression":"off",
                        "size":0,
                        "ownvolume":false
                }
        ]
}