[GitHub] [pulsar] fanyunbojerry commented on issue #5713: avoid unsafe split when validate hostname which might be ipv6 address

2019-11-26 Thread GitBox
fanyunbojerry commented on issue #5713: avoid unsafe split when validate 
hostname which might be ipv6 address
URL: https://github.com/apache/pulsar/pull/5713#issuecomment-558534315
 
 
   run cpp tests


This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] [pulsar] Anonymitaet commented on a change in pull request #5741: [website]Add content of pulsar-manager in website(include release notes, download link)

2019-11-26 Thread GitBox
Anonymitaet commented on a change in pull request #5741: [website]Add content 
of pulsar-manager in website(include release notes, download link)
URL: https://github.com/apache/pulsar/pull/5741#discussion_r350608692
 
 

 ##
 File path: site2/docs/administration-pulsar-manager.md
 ##
 @@ -0,0 +1,128 @@
+---
+id: administration-pulsar-manager
+title: The 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`.
 
 Review comment:
   I've commented before but it is not changed
   
   
![image](https://user-images.githubusercontent.com/50226895/69614377-fe2c0980-106d-11ea-857d-c82bceb11a25.png)
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] [pulsar] Anonymitaet commented on a change in pull request #5741: [website]Add content of pulsar-manager in website(include release notes, download link)

2019-11-26 Thread GitBox
Anonymitaet commented on a change in pull request #5741: [website]Add content 
of pulsar-manager in website(include release notes, download link)
URL: https://github.com/apache/pulsar/pull/5741#discussion_r350607793
 
 

 ##
 File path: site2/docs/administration-pulsar-manager.md
 ##
 @@ -0,0 +1,128 @@
+---
+id: administration-pulsar-manager
+title: The Pulsar Manager
 
 Review comment:
   ```suggestion
   title: Pulsar Manager
   ```


This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] [pulsar] Anonymitaet commented on a change in pull request #5741: [website]Add content of pulsar-manager in website(include release notes, download link)

2019-11-26 Thread GitBox
Anonymitaet commented on a change in pull request #5741: [website]Add content 
of pulsar-manager in website(include release notes, download link)
URL: https://github.com/apache/pulsar/pull/5741#discussion_r350611467
 
 

 ##
 File path: site2/docs/administration-pulsar-manager.md
 ##
 @@ -0,0 +1,128 @@
+---
+id: administration-pulsar-manager
+title: The 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/)
+
+* Method 1: Use command-line tool
 
 Review comment:
   ```suggestion
   * Method 1: use command-line tool
   ```


This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] [pulsar] Anonymitaet commented on a change in pull request #5741: [website]Add content of pulsar-manager in website(include release notes, download link)

2019-11-26 Thread GitBox
Anonymitaet commented on a change in pull request #5741: [website]Add content 
of pulsar-manager in website(include release notes, download link)
URL: https://github.com/apache/pulsar/pull/5741#discussion_r350612884
 
 

 ##
 File path: site2/docs/administration-pulsar-manager.md
 ##
 @@ -0,0 +1,128 @@
+---
+id: administration-pulsar-manager
+title: The 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/)
+
+* Method 1: Use command-line tool
+
+```
+./build/distributions/pulsar-manager/bin/pulsar-manager 
--redirect.host=http://localhost --redirect.port=9527 
insert.stats.interval=60 --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, turn on token authentication and turn on 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 

[GitHub] [pulsar] Anonymitaet commented on a change in pull request #5741: [website]Add content of pulsar-manager in website(include release notes, download link)

2019-11-26 Thread GitBox
Anonymitaet commented on a change in pull request #5741: [website]Add content 
of pulsar-manager in website(include release notes, download link)
URL: https://github.com/apache/pulsar/pull/5741#discussion_r350613219
 
 

 ##
 File path: site2/docs/administration-pulsar-manager.md
 ##
 @@ -0,0 +1,128 @@
+---
+id: administration-pulsar-manager
+title: The 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/)
+
+* Method 1: Use command-line tool
+
+```
+./build/distributions/pulsar-manager/bin/pulsar-manager 
--redirect.host=http://localhost --redirect.port=9527 
insert.stats.interval=60 --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, turn on token authentication and turn on 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 

[GitHub] [pulsar] Anonymitaet commented on a change in pull request #5741: [website]Add content of pulsar-manager in website(include release notes, download link)

2019-11-26 Thread GitBox
Anonymitaet commented on a change in pull request #5741: [website]Add content 
of pulsar-manager in website(include release notes, download link)
URL: https://github.com/apache/pulsar/pull/5741#discussion_r350611338
 
 

 ##
 File path: site2/docs/administration-pulsar-manager.md
 ##
 @@ -0,0 +1,128 @@
+---
+id: administration-pulsar-manager
+title: The 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/)
+
 
 Review comment:
   ```suggestion
   If you want to enable JWT authentication, use one of the following methods.
   ```
   
   Is this correct?


This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] [pulsar] Anonymitaet commented on a change in pull request #5741: [website]Add content of pulsar-manager in website(include release notes, download link)

2019-11-26 Thread GitBox
Anonymitaet commented on a change in pull request #5741: [website]Add content 
of pulsar-manager in website(include release notes, download link)
URL: https://github.com/apache/pulsar/pull/5741#discussion_r350610099
 
 

 ##
 File path: site2/docs/administration-pulsar-manager.md
 ##
 @@ -0,0 +1,128 @@
+---
+id: administration-pulsar-manager
+title: The 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/)
 
 Review comment:
   ```suggestion
   For more information, see [Token Authentication Admin of 
Pulsar](http://pulsar.apache.org/docs/en/security-token-admin/).
   ```


This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] [pulsar] Anonymitaet commented on a change in pull request #5741: [website]Add content of pulsar-manager in website(include release notes, download link)

2019-11-26 Thread GitBox
Anonymitaet commented on a change in pull request #5741: [website]Add content 
of pulsar-manager in website(include release notes, download link)
URL: https://github.com/apache/pulsar/pull/5741#discussion_r350611636
 
 

 ##
 File path: site2/docs/administration-pulsar-manager.md
 ##
 @@ -0,0 +1,128 @@
+---
+id: administration-pulsar-manager
+title: The 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/)
+
+* Method 1: Use command-line tool
+
+```
+./build/distributions/pulsar-manager/bin/pulsar-manager 
--redirect.host=http://localhost --redirect.port=9527 
insert.stats.interval=60 --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.
 
 Review comment:
   ```suggestion
   * Method 3: use Docker and turn on token authentication.
   ```


This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] [pulsar] Anonymitaet commented on a change in pull request #5741: [website]Add content of pulsar-manager in website(include release notes, download link)

2019-11-26 Thread GitBox
Anonymitaet commented on a change in pull request #5741: [website]Add content 
of pulsar-manager in website(include release notes, download link)
URL: https://github.com/apache/pulsar/pull/5741#discussion_r350611531
 
 

 ##
 File path: site2/docs/administration-pulsar-manager.md
 ##
 @@ -0,0 +1,128 @@
+---
+id: administration-pulsar-manager
+title: The 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/)
+
+* Method 1: Use command-line tool
+
+```
+./build/distributions/pulsar-manager/bin/pulsar-manager 
--redirect.host=http://localhost --redirect.port=9527 
insert.stats.interval=60 --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
 
 Review comment:
   ```suggestion
   * Method 2: configure the application.properties file
   ```


This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] [pulsar] Anonymitaet commented on a change in pull request #5741: [website]Add content of pulsar-manager in website(include release notes, download link)

2019-11-26 Thread GitBox
Anonymitaet commented on a change in pull request #5741: [website]Add content 
of pulsar-manager in website(include release notes, download link)
URL: https://github.com/apache/pulsar/pull/5741#discussion_r350611829
 
 

 ##
 File path: site2/docs/administration-pulsar-manager.md
 ##
 @@ -0,0 +1,128 @@
+---
+id: administration-pulsar-manager
+title: The 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/)
+
+* Method 1: Use command-line tool
+
+```
+./build/distributions/pulsar-manager/bin/pulsar-manager 
--redirect.host=http://localhost --redirect.port=9527 
insert.stats.interval=60 --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, turn on token authentication and turn on token 
management by private key and public key.
 
 Review comment:
   ```suggestion
   * Method 4: Use Docker and turn on **token authentication** and **token 
management** by private key and public key.
   ```


[GitHub] [pulsar] Anonymitaet commented on a change in pull request #5741: [website]Add content of pulsar-manager in website(include release notes, download link)

2019-11-26 Thread GitBox
Anonymitaet commented on a change in pull request #5741: [website]Add content 
of pulsar-manager in website(include release notes, download link)
URL: https://github.com/apache/pulsar/pull/5741#discussion_r350614330
 
 

 ##
 File path: site2/docs/administration-pulsar-manager.md
 ##
 @@ -0,0 +1,128 @@
+---
+id: administration-pulsar-manager
+title: The 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/)
+
+* Method 1: Use command-line tool
+
+```
+./build/distributions/pulsar-manager/bin/pulsar-manager 
--redirect.host=http://localhost --redirect.port=9527 
insert.stats.interval=60 --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, turn on token authentication and turn on 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 

[GitHub] [pulsar] codelipenghui commented on a change in pull request #5745: Add document for sticky consumer

2019-11-26 Thread GitBox
codelipenghui commented on a change in pull request #5745: Add document for 
sticky consumer 
URL: https://github.com/apache/pulsar/pull/5745#discussion_r350613050
 
 

 ##
 File path: site2/docs/client-libraries-java.md
 ##
 @@ -607,6 +607,19 @@ consumer 2 will receive:
 ("key-4", "message-4-2")
 ```
 
+By default, consumer in `Key_Shared` subscription will be assigned a fixed 
hash range of key automatically. If you want to specify the hash ranges of a 
consumer, you can using the key shared policy:
 
 Review comment:
   We'd better keep `Key_Shared`, since other places also use `Key_Shared` and 
we have already publish the `Key_Shared` subscription in 2.4.0 release. 
   A consumer can specify with multiple key hash ranges, is it ok to use `key 
hash ranges` instead `hash range of keys`


This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] [pulsar] codelipenghui opened a new pull request #5748: Fix NPE and release already released ByteBuf in batch message container

2019-11-26 Thread GitBox
codelipenghui opened a new pull request #5748: Fix NPE and release already 
released ByteBuf in batch message container
URL: https://github.com/apache/pulsar/pull/5748
 
 
   Fixes #5746 #5747
   
   ### Motivation
   
   Fix NPE and release an already released ByteBuf when publish an oversize 
message.
   
   Here is error log:
   ```
   io.netty.util.IllegalReferenceCountException: refCnt: 0, decrement: 1
at 
io.netty.util.internal.ReferenceCountUpdater.toLiveRealRefCnt(ReferenceCountUpdater.java:74)
 ~[netty-common-4.1.43.Final.jar:4.1.43.Final]
at 
io.netty.util.internal.ReferenceCountUpdater.release(ReferenceCountUpdater.java:138)
 ~[netty-common-4.1.43.Final.jar:4.1.43.Final]
at 
io.netty.buffer.AbstractReferenceCountedByteBuf.release(AbstractReferenceCountedByteBuf.java:100)
 ~[netty-buffer-4.1.43.Final.jar:4.1.43.Final]
at io.netty.util.ReferenceCountUtil.release(ReferenceCountUtil.java:88) 
~[netty-common-4.1.43.Final.jar:4.1.43.Final]
at 
io.netty.util.ReferenceCountUtil.safeRelease(ReferenceCountUtil.java:113) 
[netty-common-4.1.43.Final.jar:4.1.43.Final]
at 
org.apache.pulsar.client.impl.BatchMessageKeyBasedContainer$KeyedBatch.discard(BatchMessageKeyBasedContainer.java:244)
 [classes/:?]
at 
org.apache.pulsar.client.impl.BatchMessageKeyBasedContainer.createOpSendMsg(BatchMessageKeyBasedContainer.java:125)
 [classes/:?]
at 
org.apache.pulsar.client.impl.BatchMessageKeyBasedContainer.createOpSendMsgs(BatchMessageKeyBasedContainer.java:145)
 [classes/:?]
at 
org.apache.pulsar.client.impl.ProducerImpl.batchMessageAndSend(ProducerImpl.java:1426)
 [classes/:?]
at 
org.apache.pulsar.client.impl.ProducerImpl.triggerFlush(ProducerImpl.java:1411) 
[classes/:?]
at 
org.apache.pulsar.client.impl.ProducerBase.send(ProducerBase.java:112) 
[classes/:?]
at 
org.apache.pulsar.client.impl.TypedMessageBuilderImpl.send(TypedMessageBuilderImpl.java:89)
 [classes/:?]
at 
org.apache.pulsar.client.impl.ProducerBase.send(ProducerBase.java:63) 
[classes/:?]
at 
org.apache.pulsar.broker.service.BatchMessageTest.testSendOverSizeMessage(BatchMessageTest.java:875)
 [test-classes/:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
~[?:1.8.0_201]
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
~[?:1.8.0_201]
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 ~[?:1.8.0_201]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_201]
at 
org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:124)
 [testng-6.14.3.jar:?]
at org.testng.internal.Invoker.invokeMethod(Invoker.java:583) 
[testng-6.14.3.jar:?]
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:719) 
[testng-6.14.3.jar:?]
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:989) 
[testng-6.14.3.jar:?]
at 
org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
 [testng-6.14.3.jar:?]
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109) 
[testng-6.14.3.jar:?]
at org.testng.TestRunner.privateRun(TestRunner.java:648) 
[testng-6.14.3.jar:?]
at org.testng.TestRunner.run(TestRunner.java:505) [testng-6.14.3.jar:?]
at org.testng.SuiteRunner.runTest(SuiteRunner.java:455) 
[testng-6.14.3.jar:?]
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:450) 
[testng-6.14.3.jar:?]
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:415) 
[testng-6.14.3.jar:?]
at org.testng.SuiteRunner.run(SuiteRunner.java:364) 
[testng-6.14.3.jar:?]
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52) 
[testng-6.14.3.jar:?]
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:84) 
[testng-6.14.3.jar:?]
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1208) 
[testng-6.14.3.jar:?]
at org.testng.TestNG.runSuitesLocally(TestNG.java:1137) 
[testng-6.14.3.jar:?]
at org.testng.TestNG.runSuites(TestNG.java:1049) [testng-6.14.3.jar:?]
at org.testng.TestNG.run(TestNG.java:1017) [testng-6.14.3.jar:?]
at org.testng.IDEARemoteTestNG.run(IDEARemoteTestNG.java:73) 
[testng-plugin.jar:?]
at org.testng.RemoteTestNGStarter.main(RemoteTestNGStarter.java:123) 
[testng-plugin.jar:?]
   
   
   
   16:19:13.850 [main:org.apache.pulsar.client.impl.ProducerImpl@1439] WARN  
org.apache.pulsar.client.impl.ProducerImpl - 
[persistent://prop/ns-abc/testSendOverSizeMessage-623833fc-d9f7-4b28-aead-27955928fae9]
 [test-0-0] error while create opSendMsg by batch message container
   java.lang.NullPointerException: null
at 
org.apache.pulsar.client.impl.ProducerImpl.releaseSemaphoreForSendOp(ProducerImpl.java:858)
 ~[classes/:?]
at 

[GitHub] [pulsar] codelipenghui opened a new issue #5747: Release ByteBuf failed when send a over size message in message batch container

2019-11-26 Thread GitBox
codelipenghui opened a new issue #5747: Release ByteBuf failed when send a over 
size message in message batch container
URL: https://github.com/apache/pulsar/issues/5747
 
 
   **Describe the bug**
   Here is the error log when publish a over size message:
   ```
   io.netty.util.IllegalReferenceCountException: refCnt: 0, decrement: 1
at 
io.netty.util.internal.ReferenceCountUpdater.toLiveRealRefCnt(ReferenceCountUpdater.java:74)
 ~[netty-common-4.1.43.Final.jar:4.1.43.Final]
at 
io.netty.util.internal.ReferenceCountUpdater.release(ReferenceCountUpdater.java:138)
 ~[netty-common-4.1.43.Final.jar:4.1.43.Final]
at 
io.netty.buffer.AbstractReferenceCountedByteBuf.release(AbstractReferenceCountedByteBuf.java:100)
 ~[netty-buffer-4.1.43.Final.jar:4.1.43.Final]
at io.netty.util.ReferenceCountUtil.release(ReferenceCountUtil.java:88) 
~[netty-common-4.1.43.Final.jar:4.1.43.Final]
at 
io.netty.util.ReferenceCountUtil.safeRelease(ReferenceCountUtil.java:113) 
[netty-common-4.1.43.Final.jar:4.1.43.Final]
at 
org.apache.pulsar.client.impl.BatchMessageKeyBasedContainer$KeyedBatch.discard(BatchMessageKeyBasedContainer.java:244)
 [classes/:?]
at 
org.apache.pulsar.client.impl.BatchMessageKeyBasedContainer.createOpSendMsg(BatchMessageKeyBasedContainer.java:125)
 [classes/:?]
at 
org.apache.pulsar.client.impl.BatchMessageKeyBasedContainer.createOpSendMsgs(BatchMessageKeyBasedContainer.java:145)
 [classes/:?]
at 
org.apache.pulsar.client.impl.ProducerImpl.batchMessageAndSend(ProducerImpl.java:1426)
 [classes/:?]
at 
org.apache.pulsar.client.impl.ProducerImpl.triggerFlush(ProducerImpl.java:1411) 
[classes/:?]
at 
org.apache.pulsar.client.impl.ProducerBase.send(ProducerBase.java:112) 
[classes/:?]
at 
org.apache.pulsar.client.impl.TypedMessageBuilderImpl.send(TypedMessageBuilderImpl.java:89)
 [classes/:?]
at 
org.apache.pulsar.client.impl.ProducerBase.send(ProducerBase.java:63) 
[classes/:?]
at 
org.apache.pulsar.broker.service.BatchMessageTest.testSendOverSizeMessage(BatchMessageTest.java:875)
 [test-classes/:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
~[?:1.8.0_201]
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
~[?:1.8.0_201]
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 ~[?:1.8.0_201]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_201]
at 
org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:124)
 [testng-6.14.3.jar:?]
at org.testng.internal.Invoker.invokeMethod(Invoker.java:583) 
[testng-6.14.3.jar:?]
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:719) 
[testng-6.14.3.jar:?]
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:989) 
[testng-6.14.3.jar:?]
at 
org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
 [testng-6.14.3.jar:?]
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109) 
[testng-6.14.3.jar:?]
at org.testng.TestRunner.privateRun(TestRunner.java:648) 
[testng-6.14.3.jar:?]
at org.testng.TestRunner.run(TestRunner.java:505) [testng-6.14.3.jar:?]
at org.testng.SuiteRunner.runTest(SuiteRunner.java:455) 
[testng-6.14.3.jar:?]
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:450) 
[testng-6.14.3.jar:?]
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:415) 
[testng-6.14.3.jar:?]
at org.testng.SuiteRunner.run(SuiteRunner.java:364) 
[testng-6.14.3.jar:?]
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52) 
[testng-6.14.3.jar:?]
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:84) 
[testng-6.14.3.jar:?]
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1208) 
[testng-6.14.3.jar:?]
at org.testng.TestNG.runSuitesLocally(TestNG.java:1137) 
[testng-6.14.3.jar:?]
at org.testng.TestNG.runSuites(TestNG.java:1049) [testng-6.14.3.jar:?]
at org.testng.TestNG.run(TestNG.java:1017) [testng-6.14.3.jar:?]
at org.testng.IDEARemoteTestNG.run(IDEARemoteTestNG.java:73) 
[testng-plugin.jar:?]
at org.testng.RemoteTestNGStarter.main(RemoteTestNGStarter.java:123) 
[testng-plugin.jar:?]
   ```
   
   **To Reproduce**
   Steps to reproduce the behavior:
   1. Send a message which over than 5MB
   2. check the client log
   3. See error
   
   **Expected behavior**
   Don't release the ByteBuf since it is already released
   
   **Additional context**
   in master branch
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:

[GitHub] [pulsar] Jennifer88huang commented on issue #5728: [doc] Missing right Parentheses

2019-11-26 Thread GitBox
Jennifer88huang commented on issue #5728: [doc] Missing right Parentheses
URL: https://github.com/apache/pulsar/issues/5728#issuecomment-558522741
 
 
   @huangdx0726 @atlantic2099 Thank you very much for your contribution.


This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] [pulsar] Jennifer88huang commented on issue #5549: Fix documentation: how to start server for cpp tests

2019-11-26 Thread GitBox
Jennifer88huang commented on issue #5549: Fix documentation: how to start 
server for cpp tests
URL: https://github.com/apache/pulsar/pull/5549#issuecomment-558522247
 
 
   run java8 tests


This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] [pulsar] Anonymitaet commented on a change in pull request #5745: Add document for sticky consumer

2019-11-26 Thread GitBox
Anonymitaet commented on a change in pull request #5745: Add document for 
sticky consumer 
URL: https://github.com/apache/pulsar/pull/5745#discussion_r350597425
 
 

 ##
 File path: site2/docs/client-libraries-java.md
 ##
 @@ -607,6 +607,19 @@ consumer 2 will receive:
 ("key-4", "message-4-2")
 ```
 
+By default, consumer in `Key_Shared` subscription will be assigned a fixed 
hash range of key automatically. If you want to specify the hash ranges of a 
consumer, you can using the key shared policy:
 
 Review comment:
   ```suggestion
   By default, a consumer in the key_shared subscription is assigned a fixed 
hash range of keys automatically. If you want to specify the hash range of a 
consumer, you can use the key shared policy:
   ```
   
   Zero conditional sentences express general truths—situations in which one 
thing always causes another. When you use a zero conditional sentence, you’re 
talking about a general truth rather than a specific instance of something. 
   
   Example
   
   If you don’t brush your teeth, you get cavities.
   When people smoke cigarettes, their health suffers.


This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] [pulsar] sijie commented on issue #5735: Provide raw counters metrics

2019-11-26 Thread GitBox
sijie commented on issue #5735: Provide raw counters metrics
URL: https://github.com/apache/pulsar/issues/5735#issuecomment-558518305
 
 
   @PierreZ +1 
   
   Can I suggest using names like "pulsar_in_bytes_total" or 
"pulsar_in_bytes_counter", "pulsar_in_messages_total" or 
"pulsar_in_messages_counter"?


This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] [pulsar-translation] SylviaBABY opened a new pull request #11: Assign a new doc of trans

2019-11-26 Thread GitBox
SylviaBABY opened a new pull request #11: Assign a new doc of trans
URL: https://github.com/apache/pulsar-translation/pull/11
 
 
Motivation
   
   - Assign a new doc of trans


This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


<    1   2