Namespaces in Pulsar are used as a logical grouping of topics that allows for organizational separation or applying policies, such as TTL or retention, to all topics within that namespace. Before you run the commands below, make sure you have started Pulsar.
To create a new namespace in Pulsar, we need to provide the mandatory parameters:
./bin/pulsar-admin namespaces create my-tenant/my-namespace
To list the available namespaces under a tenant in Pulsar, we need to provide the mandatory parameters:
./bin/pulsar-admin namespaces list my-tenant
To delete namespace in Pulsar, we need to provide the mandatory parameters:
./bin/pulsar-admin namespaces delete my-tenant/my-namespace