lvs071103 opened a new issue #301:
URL: https://github.com/apache/pulsar-manager/issues/301


   broker settings:
   ```
   authenticationEnabled=true
   
authenticationProviders=org.apache.pulsar.broker.authentication.AuthenticationProviderToken
   authorizationEnabled=true
   
authorizationProvider=org.apache.pulsar.broker.authorization.PulsarAuthorizationProvider
   superUserRoles=zhoufr,admin,pulsar
   
brokerClientAuthenticationPlugin=org.apache.pulsar.client.impl.auth.AuthenticationToken
   
brokerClientAuthenticationParameters=token:eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhZG1pbiJ9.8Nv_-CV5Nt55PT6BElhIGryGD7IvMM1Mg6-V0RZgqBM
   tokenSecretKey=file:///opt/Apps/pulsar/admin.key
   ```
   
   start pular-manager:
   ```
   $ export 
JWT_TOKEN="eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhZG1pbiJ9.8Nv_-CV5Nt55PT6BElhIGryGD7IvMM1Mg6-V0RZgqBM"
   $ export SECRET_KEY="file:///opt/Apps/pulsar/admin.key"
   $ docker run -dit -p 9527:9527 -e REDIRECT_HOST=http://10.1.104.130 -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
   31c14661615f66a5240e67150cd4f3093ce9b88d38cf4c5a0c2a4df0cfcc6034
   [root@pulsar-shanghai-node01 data]# docker ps
   CONTAINER ID        IMAGE                                COMMAND             
     CREATED             STATUS              PORTS                    NAMES
   31c14661615f        apachepulsar/pulsar-manager:v0.1.0   
"/pulsar-manager/ent…"   6 seconds ago       Up 5 seconds        
0.0.0.0:9527->9527/tcp   quizzical_chandrasekhar
   ```
   
   
![image](https://user-images.githubusercontent.com/5029708/84583802-7a7e1280-ae2f-11ea-9b92-526fe82aae2b.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


Reply via email to