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 02:15:36 UTC

[GitHub] [pulsar] huangdx0726 opened a new pull request #4922: Update admin-api-overview.md

huangdx0726 opened a new pull request #4922: Update admin-api-overview.md
URL: https://github.com/apache/pulsar/pull/4922
 
 
   Fixes #4914
   
   ### Motivation
      1.Go to 'http://pulsar.apache.org/docs/en/admin-api-overview'
      2.Scroll down to 'Java admin client' and click ClientConfiguration link
      3.404 not found error is displayed "The requested URL /api/admin/org/apache/pulsar/client/admin/ClientConfiguration was not found on this server."
      4.the examples can't work.
   
   ### Modifications
   1.The link to ClientConfiguration  changed to PulsarAdminBuilder.
   2.The example changed to 
   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