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/07/03 01:45:50 UTC
[GitHub] [pulsar] zhouxin-116 commented on issue #7426: how to get messageId when use sparkstreaming
zhouxin-116 commented on issue #7426:
URL: https://github.com/apache/pulsar/issues/7426#issuecomment-653288585
val pulsarReceiver = new SparkStreamingPulsarReceiver(
serviceUrl,
pulsarConf,
new AuthenticationDisabled()
)
// receiver DStream
val pulsarDStream = ssc.receiverStream(pulsarReceiver)
// process
pulsarDStream.foreachRDD(rdd => {
rdd.foreachPartition(partition => {
partition.foreach (row=>{
})
})
})
----------------------------------------------------------------
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