You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2019/08/09 00:27:47 UTC

[GitHub] [pulsar] sijie commented on issue #4914: The requested URL /api/admin/org/apache/pulsar/client/admin/ClientConfiguration was not found on this server.

sijie commented on issue #4914: The requested URL /api/admin/org/apache/pulsar/client/admin/ClientConfiguration was not found on this server.
URL: https://github.com/apache/pulsar/issues/4914#issuecomment-519733741
 
 
   @Jennifer88huang @huangdx0726 
   
   We should change the example to the later form that @huangdx0726 commented, but use "PulsarAdmin.builder()". The link to ClientConfiguration should be changed to PulsarAdminBuilder.
   
   @Jennifer88huang when we are fixing the issue, we might consider fixing all the similar examples in the documentation.
   
   ```
   String url = "http://localhost:8080";
   // Pass auth-plugin class fully-qualified name if Pulsar-security enabled
   String authPluginClassName = "com.org.MyAuthPluginClass";
   // Pass auth-param if auth-plugin class requires it
   String authParams = "param1=value1";
   boolean useTls = false;
   boolean tlsAllowInsecureConnection = false;
   String tlsTrustCertsFilePath = null;
   PulsarAdmin admin = PulsarAdmin.builder()
   .authentication(authPluginClassName,authParams)
   .serviceHttpUrl(url)
   .tlsTrustCertsFilePath(tlsTrustCertsFilePath)
   .allowTlsInsecureConnection(tlsAllowInsecureConnection)
   .build();
   ```

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services