Skip to content

Commit 1fe677a

Browse files
jerryshaosrowen
authored andcommitted
[Streaming][Minor]Fix some error docs in streaming examples
Small changes, please help to review, thanks a lot. Author: Saisai Shao <saisai.shao@intel.com> Closes #4837 from jerryshao/doc-fix and squashes the following commits: 545291a [Saisai Shao] Fix some error docs in streaming examples (cherry picked from commit d8fb40e) Signed-off-by: Sean Owen <sowen@cloudera.com>
1 parent 6a2fc85 commit 1fe677a

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

examples/scala-2.10/src/main/scala/org/apache/spark/examples/streaming/DirectKafkaWordCount.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ import org.apache.spark.SparkConf
3030
* <topics> is a list of one or more kafka topics to consume from
3131
*
3232
* Example:
33-
* $ bin/run-example streaming.KafkaWordCount broker1-host:port,broker2-host:port topic1,topic2
33+
* $ bin/run-example streaming.DirectKafkaWordCount broker1-host:port,broker2-host:port \
34+
* topic1,topic2
3435
*/
3536
object DirectKafkaWordCount {
3637
def main(args: Array[String]) {

examples/src/main/python/streaming/kafka_wordcount.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
http://kafka.apache.org/documentation.html#quickstart
2424
2525
and then run the example
26-
`$ bin/spark-submit --driver-class-path external/kafka-assembly/target/scala-*/\
26+
`$ bin/spark-submit --jars external/kafka-assembly/target/scala-*/\
2727
spark-streaming-kafka-assembly-*.jar examples/src/main/python/streaming/kafka_wordcount.py \
2828
localhost:2181 test`
2929
"""

python/pyspark/streaming/kafka.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def createStream(ssc, zkQuorum, groupId, topics, kafkaParams={},
8282
8383
2. Download the JAR of the artifact from Maven Central http://search.maven.org/,
8484
Group Id = org.apache.spark, Artifact Id = spark-streaming-kafka-assembly, Version = %s.
85-
Then, innclude the jar in the spark-submit command as
85+
Then, include the jar in the spark-submit command as
8686
8787
$ bin/spark-submit --jars <spark-streaming-kafka-assembly.jar> ...
8888

0 commit comments

Comments
 (0)