commit | c3fd41fa06a1decfcfc56196e86aafa412bc93f9 | [log] [tgz] |
---|---|---|
author | tuteng <guangning@apache.org> | Tue Nov 19 10:35:31 2019 +0800 |
committer | Sijie Guo <sijie@apache.org> | Tue Nov 19 10:35:31 2019 +0800 |
tree | 9949825a425e56544f7d1fb66064ba61c4f82d5d | |
parent | 30db68604ea6e1d86fbc1f1b43b7cff0db02c254 [diff] |
Update readme for start backend service (#211) * Update readme for start backend service
Apache Pulsar manager is a web-based GUI management tool for managing and monitoring Pulsar.
Use the default account (pulsar
) and the default password (pulsar
) to log in.
The puslar-manager supports multiple environment configurations and can manage multiple environments conveniently.
The pulsar-manager can monitor topics and subscriptions.
Start Pulsar standalone.
docker pull apachepulsar/pulsar:2.4.0 docker run -d -it -p 6650:6650 -p 8080:8080 -v $PWD/data:/pulsar/data --name pulsar-manager-standalone apachepulsar/pulsar:2.4.0 bin/pulsar standalone
Build an environment.
You can build an environment with Docker or build a local environment.
Build an environment with Docker
REDIRECT_HOST
: the IP address of the front-end server.
REDIRECT_PORT
: the port of the front-end server.
DRIVER_CLASS_NAME
: the driver class name of PostgreSQL.
URL
: the url of PostgreSQL jdbc, example: jdbc:postgresql://127.0.0.1:5432/pulsar_manager
USERNAME
: the username of PostgreSQL
PASSWORD
: the password of PostgreSQL
docker pull apache/pulsar-manager docker run -it -p 9527:9527 -e REDIRECT_HOST=front-end-ip -e REDIRECT_PORT=front-end-port -e DRIVER_CLASS_NAME=org.postgresql.Driver -e URL='jdbc-url' -e USERNAME=root -e PASSWORD=pulsar pulsar-manager /bin/sh
This is an example:
docker run -it -p 9527:9527 -e REDIRECT_HOST=http://192.168.0.104 -e REDIRECT_PORT=9527 -e DRIVER_CLASS_NAME=org.postgresql.Driver -e URL='jdbc:postgresql://127.0.0.1:5432/pulsar_manager' -e USERNAME=pulsar -e PASSWORD=pulsar -v $PWD:/data pulsar-manager:latest /bin/sh
Build a local environment
(1) Download the source code.
git clone https://github.com/apache/pulsar-manager
(2) Build and start the backend.
cd pulsar-manager ./gradlew build -x test cd build/distributions unzip pulsar-manager.zip or tar -zxvf pulsar-manager.tar ./pulsar-manager/bin/pulsar-manager
(3) Build and start the front end.
cd pulsar-manager/front-end npm install --save npm run dev
Access Pulsar manager website.
Use the account and the password to log in to the Pulsar manager website as below.
pulsar
pulsar
Pulsar Manager bundles JDBC Drivers for HerdDB. The default confguration starts and embedded in-memory only HerdDB database.
HerdDB can be used in production, you just have to use the correct JDBC URL. Follow the instructions in application.properties to switch the connection to a standalone HerdDB service or cluster.
The JDBC URL will look like this: jdbc:herddb:server:localhost:7000
In cluster mode HerdDB uses Apache BookKeeper and Apache ZooKeeper to store data and metadata, you can share your ZooKeeper cluster and the Bookies bundled with Pulsar.
The JDBC URL will look like this: jdbc:herddb:zookeeper:localhost:2181/herddb
In order to start and setup an HerdDB database follow the instructions on the HerdDB documentation.
For more information about the back end, see pulsar-manager-backend.
For more information about the front end, see pulsar-manager-frontend.