stream topic edit

Allows you to increase the number of partitions that are in the specified topic.

To run this command, your user ID must have the adminperm or topicperm permission on the stream.
NOTE: The mapr user is not treated as a superuser. MapR 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
stream topic edit
	 -path Stream Path 
	 -topic Topic Name 
	 -partitions Number of partitions 
REST http[s]://<host>:<port>/rest/stream/topic/edit?path=<path>&topic=<name>&partitions=<number>

Parameters

Parameter Description
path The path and name of the stream in which the topic is located.
topic The name of the topic to edit.
partitions The number of partitions to use for the topic. You cannot reduce the number of partitions.

To find out how many partitions a topic is currently using, run the command maprcli stream topic info.