rmbellovin opened a new issue #6309: Attempting to use token authentication in 
pulsar standalone causes it to exit
URL: https://github.com/apache/pulsar/issues/6309
 
 
   **Describe the bug**
   I am trying to run pulsar standalone using token-based authentication.  But 
when I add the line
   
>authenticationProviders=org.apache.pulsar.broker.authentication.AuthenticationProviderToken
   to conf/standalone.conf, running `bin/pulsar standalone` causes it to exit 
almost immediately.
   
   **To Reproduce**
   Steps to reproduce the behavior:
   1. In conf/standalone.conf, add the lines
   >authenticationEnabled=true
   >authorizationEnabled=true
   
>authenticationProviders=org.apache.pulsar.broker.authentication.AuthenticationProviderToken
   >tokenSecretKey=file:///path/to/secret.key
   (as directed by https://pulsar.apache.org/docs/en/security-jwt/)
   2. Run `bin/pulsar standalone`.
   
   **Expected behavior**
   I expected pulsar to start in standalone mode.  Instead, it exited, and the 
log file contains errors such as
   >[main] ERROR org.apache.pulsar.functions.worker.WorkerService - Error 
Starting up in worker
   >org.apache.pulsar.client.admin.PulsarAdminException$NotAuthorizedException 
: HTTP 401 Unauthorized
   and 
   >java.lang.NoClassDefFoundError: Could not initialize class 
io.netty.channel.epoll.EpollEventLoop
   
   **Desktop (please complete the following information):**
   Ubuntu 18.04
   
   **Additional context**
   I have attached a log file (from running `bin/pulsar-daemon start 
standalone` instead):
   
[pulsar-standalone-gideon.log](https://github.com/apache/pulsar/files/4192750/pulsar-standalone-gideon.log)

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to