Prerequisites
To run these commands you’ll need the binaries installed…
Pulsar is developed for 64-bit Java. To run the binaries you need either the Java Runtime Environment(JRE) or Java Developer Kit(JDK) version 8 or later installed. Installers and more info available here.
With a Java environment in place, all popular 64-bit desktops are supported - Windows, Linux, and MacOS. The tarball is around 300mb, so please be patient while downloading.
Admin commands
List tenants
| |
List namespaces within a tenant
| |
List topics within a namespace
| |
Create a persistent topic
| |
Create a non-persistent topic
| |
Forcefully delete a topic (close all producers/consumers/replicators & delete schemas)
| |
Get stats about a topic (includes active subscriptions, active publishers, messages in, and other interesting things)
| |
List message for a subscription
| |
Get the latest message details
| |
Reset subscription cursor back to 0 (the first message in the queue), in ledger 0 (the first ledger)
| |
Troubleshooting
As you interact with the admin client, it helps to have messages loaded. Publish a message to a topic (the topic will be created as persistent, if it doesn’t exist)
| |
