Github user srowen commented on a diff in the pull request:

    https://github.com/apache/spark/pull/6862#discussion_r32658252
  
    --- Diff: docs/streaming-programming-guide.md ---
    @@ -1937,6 +1937,16 @@ JavaPairDStream<String, String> unifiedStream = 
streamingContext.union(kafkaStre
     unifiedStream.print();
     {% endhighlight %}
     </div>
    +<div data-lang="python" markdown="1">
    +{% highlight python %}
    +numStreams = 5
    +kafkaStreams = []
    +for x in range (0, numStreams):
    +     kafkaStreams = x.map{ KafkaUtils.createStream(…)}
    --- End diff --
    
    Hm, I don't think this can be correct? x is an integer; you can't map it. 
Python collections don't map like that anyway. Are you just trying to `append` 
the new stream to `kafkaStreams`?
    
    Nit: use `...` instead of the ellipsis character. 
    
    Is the method really `show()` in Pyspark instead of `print()`?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to