diff options
Diffstat (limited to 'docs')
-rw-r--r-- | docs/streaming-programming-guide.md | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/streaming-programming-guide.md b/docs/streaming-programming-guide.md index 1eb3b30332..b784d59666 100644 --- a/docs/streaming-programming-guide.md +++ b/docs/streaming-programming-guide.md @@ -1937,6 +1937,14 @@ JavaPairDStream<String, String> unifiedStream = streamingContext.union(kafkaStre unifiedStream.print(); {% endhighlight %} </div> +<div data-lang="python" markdown="1"> +{% highlight python %} +numStreams = 5 +kafkaStreams = [KafkaUtils.createStream(...) for _ in range (numStreams)] +unifiedStream = streamingContext.union(kafkaStreams) +unifiedStream.print() +{% endhighlight %} +</div> </div> Another parameter that should be considered is the receiver's blocking interval, |