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 2020/04/23 12:59:19 UTC
[GitHub] [pulsar] qianmoQ edited a comment on issue #6807: errors met when Using sparkstreaming with token to consume
qianmoQ edited a comment 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 egg:
```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:
users@infra.apache.org