Skip to content

Commit

Permalink
Set subscribe pattern to wildcard prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
shydefoo committed Dec 19, 2024
1 parent 190eec2 commit 287758b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ object StreamingPipeline extends BasePipeline with Serializable {
sparkSession.readStream
.format("kafka")
.option("kafka.bootstrap.servers", source.bootstrapServers)
.option("subscribe", source.topic)
// .option("subscribe", source.topic)
.option("subscribePattern", s".*\\.${source.topic}")
.load()
case source: MemoryStreamingSource =>
source.read
Expand Down

0 comments on commit 287758b

Please sign in to comment.