1. 程式人生 > >Apache Pulsar-Docker安裝

Apache Pulsar-Docker安裝

Docker安裝

Step 1 docker 安裝 apachepulsar/pulsar-all

docker run --name pulsar -dit -p 8080:8080 -p 6650:6650 apachepulsar/pulsar-all bin/pulsar standalone

Step 2 docker 安裝 apachepulsar/pulsar-dashboard

docker run --name pulsar-dashboard -dit -p 80:80 -e SERVICE_URL=http://pulsar:8080 --link pulsar apachepulsar/pulsar-dashboard

Step 3 測試pulsar叢集

docker exec -it pulsar bash bin/pulsar-client produce my-topic --messages "hello-pulsar"

  如果訊息已成功釋出到主題,您應該在pulsar-client日誌中看到如下確認

[main] INFO  org.apache.pulsar.client.cli.PulsarClientTool - 1 messages successfully produced

Step 4 訪問pulsar儀表盤

參考