Prerequisites
- Java 11 or higher
- At least 4GB of RAM
- Sufficient disk space for message storage
Quick Start
Start Pulsar standalone
Start Pulsar in standalone mode:This command starts all Pulsar services in a single process.
Configuration
Standalone mode uses theconf/standalone.conf configuration file. Key configuration parameters include:
Cluster Settings
Storage Settings
Message Retention
Load Balancer
Data Storage
By default, standalone mode stores data in thedata/ directory:
data/bookkeeper/ledgers- Message datadata/bookkeeper/journal- BookKeeper journaldata/zookeeper- ZooKeeper data
Advanced Configuration
Custom Configuration File
Create a custom configuration file and start standalone with it:Enable Functions Worker
To enable Pulsar Functions in standalone mode:WebSocket Service
Enable WebSocket API for real-time messaging:Authentication and Authorization
For testing authentication:Running in Background
To run standalone as a background service:Common Operations
Create a Tenant and Namespace
Produce and Consume Messages
Monitor Topics
Limitations
Migration to Cluster Mode
When ready to move to production, migrate to a full cluster deployment:- Export your configuration and schemas
- Set up a proper cluster with separate ZooKeeper, BookKeeper, and broker nodes
- Restore your tenants, namespaces, and schemas
- Migrate your applications to the new cluster
Troubleshooting
Port Already in Use
If ports 6650 or 8080 are already in use:Out of Memory
Increase JVM heap size by setting thePULSAR_MEM environment variable:
Log Files
Check logs in thelogs/ directory:
Next Steps
- Learn about Cluster Deployment for production setups
- Explore Docker Deployment for containerized environments
- Read about Kubernetes Deployment for cloud-native deployments