stream topic list

Lists the topics that are in a stream, as well as the number of partitions in each topic.

Permissions Required

To run this command, your user ID must have the following permissions:
  • readAce on the volume
  • lookupdir on directories in the path
  • adminperm, consumeperm, produceperm, or topicperm permission on the stream
NOTE The mapr user is not treated as a superuser. HPE Ezmeral Data Fabric Streams does not allow the mapr user to run this command unless that user is given the relevant permission or permissions with access-control expressions.

Syntax

CLI
maprcli stream topic list
	 -path <Stream Path> 
REST http[s]://<host>:<port>/rest/stream/topic/list?path=<path>

Parameters

Parameter Description
path The path and name of the stream for which you want to list the topics.

Sample Output

# maprcli stream topic list -path /s1 -json
{
	"timestamp":1441882201851,
	"timeofday":"2015-09-10 03:50:01.851 GMT-0700",
	"status":"OK",
	"total":2,
	"data":[
		{
			"topic":"topic0",
			"partitions":4,
			"consumers":8,
			"physicalsize":148373504,
			"logicalsize":1009713152,
			"maxlag":6314
		},
		{
			"topic":"topic1",
			"partitions":4,
			"consumers":8,
			"physicalsize":148373504,
			"logicalsize":1009713152,
			"maxlag":6385
		}
	]
}