rpk cluster partitions enable

Enable partitions of a topic.

You may enable all partitions of a topic using the --all flag or you may select a set of topic/partitions to enable with the --partitions/-p flag.

The partition flag accepts the format {namespace}/{topic}/[partitions…​] where namespace and topic are optional parameters. If the namespace is not provided, rpk will assume kafka. If the topic is not provided in the flag, rpk will use the topic provided as an argument to this command.

Usage

rpk cluster partitions enable <topic> [flags]

Examples

This section provides examples of how to use rpk cluster partitions enable.

Enable all partitions in topic foo

rpk cluster partitions enable foo --all

Enable partitions 1,2 and 3 of topic bar in the namespace internal

rpk cluster partitions enable internal/bar --partitions 1,2,3

Enable partition 1, and 2 of topic foo, and partition 5 of topic bar in the internal namespace'

rpk cluster partitions enable -p foo/1,2 -p internal/bar/5

Flags

Value Type Description

-a, --all

bool

If true, enable all partitions for the specified topic.

-p, --partitions

stringArray

Comma-separated list of partitions you want to enable. Check help for extended usage.

Global flags

Value Type Description

--config

string

Redpanda or rpk config file; default search paths are ~/.config/rpk/rpk.yaml, $PWD/redpanda.yaml, and /etc/redpanda/redpanda.yaml.

-X, --config-opt

stringArray

Override rpk configuration settings; -X help for detail or -X list for terser detail.

--ignore-profile

bool

Ignore rpk.yaml and redpanda.yaml; use default settings.

--profile

string

rpk profile to use.

-v, --verbose

bool

Enable verbose logging.