forked from apache/pulsar
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[website]Add content of pulsar-manager in website(include release not…
…es, download link) (apache#5741) ### Motivation As a sub-project of the pulsar, pulsar-manager should update relevant content on the website after the first release is completed, so as to facilitate users' use. ### Modifications * Add pulsar-manager release notes page * Add pulsar-manager download page * Add a document in sidebar ### Verifying this change yarn build pass
- Loading branch information
Showing
6 changed files
with
246 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,132 @@ | ||
--- | ||
id: administration-pulsar-manager | ||
title: Pulsar Manager | ||
sidebar_label: Pulsar Manager | ||
--- | ||
|
||
Pulsar Manager is a web-based GUI management and monitoring tool that helps administrators and users manage and monitor tenants, namespaces, topics, subscriptions, brokers, clusters, and so on, and supports dynamic configuration of multiple environments. | ||
|
||
## Install | ||
|
||
The easiest way to use the Pulsar Manager is to run it inside a [Docker](https://www.docker.com/products/docker) container. | ||
|
||
|
||
``` | ||
docker pull apachepulsar/pulsar-manager:v0.1.0 | ||
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 -e LOG_LEVEL=DEBUG -v $PWD:/data apachepulsar/pulsar-manager:v0.1.0 /bin/sh | ||
``` | ||
|
||
* 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, For example, `jdbc:postgresql://127.0.0.1:5432/pulsar_manager`. | ||
|
||
* USERNAME: the username of PostgreSQL. | ||
|
||
* PASSWORD: the password of PostgreSQL. | ||
|
||
* LOG_LEVEL: level of log. | ||
|
||
You can find the in the [Docker](https://github.com/apache/pulsar-manager/tree/master/docker) directory and build an image from scratch as well: | ||
|
||
``` | ||
git clone https://github.com/apache/pulsar-manager | ||
cd pulsar-manager | ||
./gradlew build -x test | ||
cd front-end | ||
npm install --save | ||
npm run build:prod | ||
cd .. | ||
docker build -f docker/Dockerfile --build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` --build-arg VCS_REF=`latest` --build-arg VERSION=`latest` -t apachepulsar/pulsar-manager . | ||
``` | ||
|
||
### Use custom databases | ||
|
||
If you have a large amount of data, you can use a custom database. The following is an example of PostgreSQL. | ||
|
||
1. Initialize database and table structures using the [file](https://github.com/apache/pulsar-manager/tree/master/src/main/resources/META-INF/sql/postgresql-schema.sql). | ||
|
||
2. Modify the [configuration file](https://github.com/apache/pulsar-manager/blob/master/src/main/resources/application.properties) and add PostgreSQL configuration. | ||
|
||
``` | ||
spring.datasource.driver-class-name=org.postgresql.Driver | ||
spring.datasource.url=jdbc:postgresql://127.0.0.1:5432/pulsar_manager | ||
spring.datasource.username=postgres | ||
spring.datasource.password=postgres | ||
``` | ||
|
||
3. Compile to generate a new executable jar package. | ||
|
||
``` | ||
./gradlew -x build -x test | ||
``` | ||
|
||
### Enable JWT authentication | ||
|
||
If you want to turn on JWT authentication, configure the following parameters: | ||
|
||
* `backend.jwt.token`: token for the superuser. You need to configure this parameter during cluster initialization. | ||
* `jwt.broker.token.mode`: two modes of generating token, SECRET and PRIVATE. | ||
* `jwt.broker.public.key`: configure this option if you are using the PRIVATE mode. | ||
* `jwt.broker.private.key`: configure this option if you are using the PRIVATE mode. | ||
* `jwt.broker.secret.key`: configure this option if you are using the SECRET mode. | ||
|
||
For more information, see [Token Authentication Admin of Pulsar](http://pulsar.apache.org/docs/en/security-token-admin/). | ||
|
||
|
||
If you want to enable JWT authentication, use one of the following methods. | ||
|
||
|
||
* Method 1: use command-line tool | ||
|
||
``` | ||
./build/distributions/pulsar-manager/bin/pulsar-manager --redirect.host=http://localhost --redirect.port=9527 insert.stats.interval=600000 --backend.jwt.token=token --jwt.broker.token.mode=PRIVATE --jwt.broker.private.key=file:///path/broker-private.key --jwt.broker.public.key=file:///path/broker-public.key | ||
``` | ||
|
||
* Method 2: configure the application.properties file | ||
|
||
``` | ||
backend.jwt.token=token | ||
jwt.broker.token.mode=PRIVATE | ||
jwt.broker.public.key=file:///path/broker-public.key | ||
jwt.broker.private.key=file:///path/broker-private.key | ||
or | ||
jwt.broker.token.mode=SECRET | ||
jwt.broker.secret.key=file:///path/broker-secret.key | ||
``` | ||
|
||
* Method 3: use Docker and turn on token authentication. | ||
|
||
``` | ||
export JWT_TOKEN="your-token" | ||
docker run -it -p 9527:9527 -e REDIRECT_HOST=http://192.168.55.182 -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 -e LOG_LEVEL=DEBUG -e JWT_TOKEN=$JWT_TOKEN -v $PWD:/data apachepulsar/pulsar-manager:v0.1.0 /bin/sh | ||
``` | ||
|
||
* Method 4: use Docker and turn on **token authentication** and **token management** by private key and public key. | ||
|
||
``` | ||
export JWT_TOKEN="your-token" | ||
export PRIVATE_KEY="file:///private-key-path" | ||
export PUBLIC_KEY="file:///public-key-path" | ||
docker run -it -p 9527:9527 -e REDIRECT_HOST=http://192.168.55.182 -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 -e LOG_LEVEL=DEBUG -e JWT_TOKEN=$JWT_TOKEN -e PRIVATE_KEY=$PRIVATE_KEY -e PUBLIC_KEY=$PUBLIC_KEY -v $PWD:/data -v $PWD/private-key-path:/pulsar-manager/private-key-path -v $PWD/public-key-path:/pulsar-manager/public-key-path apachepulsar/pulsar-manager:v0.1.0 /bin/sh | ||
``` | ||
|
||
* Method 5: use Docker and turn on **token authentication** and **token management** by secret key. | ||
|
||
``` | ||
export JWT_TOKEN="your-token" | ||
export SECRET_KEY="file:///secret-key-path" | ||
docker run -it -p 9527:9527 -e REDIRECT_HOST=http://192.168.55.182 -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 -e LOG_LEVEL=DEBUG -e JWT_TOKEN=$JWT_TOKEN -e PRIVATE_KEY=$PRIVATE_KEY -e PUBLIC_KEY=$PUBLIC_KEY -v $PWD:/data -v $PWD/secret-key-path:/pulsar-manager/secret-key-path apachepulsar/pulsar-manager:v0.1.0 /bin/sh | ||
``` | ||
|
||
* For more information about backend configurations, see [here](https://github.com/apache/pulsar-manager/blob/8b1f26f7d7c725e6d056c41b98235fbc5deb9f49/src/README.md). | ||
* For more information about frontend configurations, see [here](https://github.com/apache/pulsar-manager/blob/master/front-end/README.md). | ||
|
||
## Log in | ||
|
||
Visit http://localhost:9527 to log in. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
const React = require('react'); | ||
|
||
const CompLibrary = require('../../core/CompLibrary'); | ||
const MarkdownBlock = CompLibrary.MarkdownBlock; /* Used to read markdown */ | ||
const Container = CompLibrary.Container; | ||
const GridBlock = CompLibrary.GridBlock; | ||
|
||
const CWD = process.cwd(); | ||
|
||
const siteConfig = require(`${CWD}/siteConfig.js`); | ||
|
||
const releaseNotes = require('fs').readFileSync(`${CWD}/pulsar-manager-release-notes.md`, 'utf8') | ||
|
||
class ReleaseNotes extends React.Component { | ||
render() { | ||
|
||
return ( | ||
<div className="pageContainer"> | ||
<Container className="mainContainer documentContainer postContainer"> | ||
<div className="post"> | ||
<header className="postHeader"> | ||
<h1>Apache Pulsar Manager Release Notes</h1> | ||
<hr /> | ||
</header> | ||
<MarkdownBlock> | ||
{releaseNotes} | ||
</MarkdownBlock> | ||
</div> | ||
</Container> | ||
</div> | ||
); | ||
} | ||
} | ||
|
||
module.exports = ReleaseNotes; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
## Apache Pulsar Manager | ||
|
||
### 0.1.0 — 2019-11-25 <a id="0.1.0"></a> | ||
|
||
#### Fixes | ||
|
||
* Remove streamnative from the project [#213](https://github.com/apache/pulsar-manager/pull/213) | ||
* Add license file for pulsar-manager [#209](https://github.com/apache/pulsar-manager/pull/209) | ||
* Support management of jwt for pulsar-manager [#205](https://github.com/apache/pulsar-manager/pull/205) | ||
* Support redirect.scheme [#204](https://github.com/apache/pulsar-manager/pull/204) | ||
* Fix reset cursor by time [#179](https://github.com/apache/pulsar-manager/pull/179) | ||
* Fix wrong broker display error [#187](https://github.com/apache/pulsar-manager/pull/187) | ||
* Remove dependency package jszip [#189](https://github.com/apache/pulsar-manager/pull/189) | ||
* Add developer guide [#186](https://github.com/apache/pulsar-manager/pull/186) | ||
* Keep table and column name fields lowercase [#190](https://github.com/apache/pulsar-manager/pull/190) | ||
* Fix loggin level [#191](https://github.com/apache/pulsar-manager/pull/191) | ||
* Fix wrong place for license scan badge [#193](https://github.com/apache/pulsar-manager/pull/193) | ||
* Add support for HerdDB database [#183](https://github.com/apache/pulsar-manager/pull/183) | ||
* Make default environment persistent [#197](https://github.com/apache/pulsar-manager/pull/197) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[ | ||
"0.1.0" | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters