qianmoQ commented on issue #6807:
URL: https://github.com/apache/pulsar/issues/6807#issuecomment-618388237


   I don't recommend using it this way because it can cause serialization 
problems
   
   please init client :
   
   ```java
   val confData = new ClientConfigurationData()
       
confData.setAuthPluginClassName("org.apache.pulsar.client.impl.auth.AuthenticationToken")
       confData.setAuthParams("token:" + <please set token>)
   
       val src: SourceFunction[String] =
         PulsarSourceBuilder
           .builder(new SimpleStringSchema())
           .pulsarAllClientConf(confData)
           .serviceUrl(SERVICE_URL)
           .topic(INPUT_TOPIC)
           .subscriptionName(SUBSCRIPTION_NAME)
           .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:
us...@infra.apache.org


Reply via email to