commit | c1cbe2688f2e286e619a7cca48343798ac388520 | [log] [tgz] |
---|---|---|
author | tuteng <eguangning@gmail.com> | Sun Sep 15 13:54:49 2019 +0800 |
committer | Sijie Guo <sijie@apache.org> | Sat Sep 14 22:54:49 2019 -0700 |
tree | f6a18903af2a3afde0dd624c4513f7dedcf9c184 | |
parent | 8e04bc59523394d7323177d2e02e64354e77868d [diff] |
### Modifications (#190) Currently, pulsar-manager supports pluggable databases, but some sql is different before different databases. For example, ` can be used in mysql and "" marks in postgresql. Therefore, this change ensures that sql can be executed in each database. ### Modifications * All fields in the database are lowercase, including table names and column names. * Replace the default database in docker from mysql to postgresql. * Add the configuration of backend log output to file. * Replace the database key that appears in the table. * Remove mysql related configuration.
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 dirver class name of MySQL.
URL
: the url of MySQL jdbc, example: jdbc:mysql://localhost:3306/pulsar_manager?useSSL=false
USERNAME
: the username of MySQL
PASSWORD
: the password of MySQL
docker pull streamnative/pulsar-manager docker run -it -p 9527:9527 -e REDIRECT_HOST=front-end-ip -e REDIRECT_PORT=front-end-port -e DRIVER_CLASS_NAME=com.mysql.jdbc.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/streamnative/pulsar-manager
(2) Build and start the backend.
cd pulsar-manager ./gradlew build -x test java -jar ./build/libs/pulsar-manager.jar
(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
For more information about the back end, see pulsar-manager-backend.
For more information about the front end, see pulsar-manager-frontend.