Namespaces represent a collection of topics to which policies can be applied. This section describes how to manage namespaces in the Streamlio Cloud.

The namespace is the basic administrative unit for a tenant, for which you can set ACLs, fine-tune replication settings, manage geo-replication of message data across clusters, control message expiry, and perform critical operations. A tenant can have multiple namespaces For instance, consider a team in an enterprise or organization responsible for multiple applications. Data and functions for each application can be aggregated under a separate namespace in a single tenant corresponding to the team.

Create a namespace

An administrator can create a namespace NAMESPACE in TENANT using the following command

pulsar-admin namespaces create TENANT/NAMESPACE

For example, the command to create the namespace my-namespace in my-tenant is as follows:

pulsar-admin namespaces create my-tenant/my-namespace

Delete a namespace

One can delete a namespace when it is not required using the command

pulsar-admin namespaces delete TENANT/NAMESPACE

For example, if you want to delete the namespace called my-namespace in my-tenant issue the following command

pulsar-admin namespaces delete my-tenant/my-namespace

List all namespaces

A tenant can have multiple namespaces. You can list all the namespaces for a given tenant using the following command

pulsar-admin namespaces list TENANT

The output will list all the namespaces under TENANT

_____ Copyright 2019 Streamlio, Inc. Apache, Apache BookKeeper, Apache Pulsar and associated open source project names are trademarks of the Apache Software Foundation.