Now that you are familiar with the fundamental concepts of Pulsar, we take a look at how to run Pulsar before diving into the CLI. There are different ways to install Pulsar and we will provide instructions for the most popular ones.
Getting started with Pulsar can be difficult as a beginner, and before you can really use it you need some data too.
The easiest way to get started fast and easy is to use our All-In-One Docker solution which will setup Pulsar, some optional example data and a powerful UI for you with just a single command.
1.Prerequisite: Install the recommended Java JRE/JDK version.
2. Download the latest LTS version of Pulsar from https://pulsar.apache.org/download/.
3. Extract the contents of the downloaded .tar file.
4. Change into the unpacked directory and start Pulsar using ./bin/pulsar standalone
1. Prerequisite: Install the recommended Java JRE/JDK version.
2. Download the latest LTS version of Pulsar from https://pulsar.apache.org/download/.
3. Extract the contents of the downloaded .tar file.
4. Change into the unpacked directory and start Pulsar using ./bin/pulsar standalone
Currently Pulsar is not able to run locally on Windows. If you want to run Pulsar on Windows, please refer to How to run Pulsar using Docker? below.
1. Prerequisite: Install Docker according to the instructions.
2. Run the following command to start Pulsar inside a Docker container:
docker run -it -p 6650:6650 -p 8080:8080 --mount source=pulsardata,target=/pulsar/data --mount source=pulsarconf,target=/pulsar/conf apachepulsar/pulsar:4.0.0 bin/pulsar standalone
You might run into issues with the default RocksDB metadata store. If this is the case, you can add the following environment variable to the command above to instead use ZooKeeper as the metadata store: -e PULSAR_STANDALONE_USE_ZOOKEEPER=1
1. Prerequisites: A running Kubernetes cluster, kubectl, Helm
2. Add the Pulsar Helm chart repository
helm repo add pulsar https://pulsar.apache.org/charts
helm repo update
3. Clone the Pulsar helm chart GitHub repository
git clone https://github.com/apache/pulsar-helm-chart
cd pulsar-helm-chart
4. Prepare the secrets required for installing Pulsar
./scripts/pulsar/prepare_helm_release.sh -n pulsar -k pulsar-mini -c
5. Use Helm to install the Pulsar components into the created Kubernetes namespace
helm install --values examples/values-minikube.yaml -n pulsar pulsar-mini apache/pulsar
6. Check the status of all pods and wait until they are running
kubectl get pods -n pulsar