You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by td...@apache.org on 2014/04/25 22:20:05 UTC
git commit: Update KafkaWordCount.scala
Repository: spark
Updated Branches:
refs/heads/master 25a276dd2 -> 8aaef5c75
Update KafkaWordCount.scala
modify the required args number
Author: baishuo(白硕) <vc...@hotmail.com>
Closes #523 from baishuo/master and squashes the following commits:
0368ba9 [baishuo(白硕)] Update KafkaWordCount.scala
Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/8aaef5c7
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/8aaef5c7
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/8aaef5c7
Branch: refs/heads/master
Commit: 8aaef5c75624b48806a05943454f7b72f3ca1bdc
Parents: 25a276d
Author: baishuo(白硕) <vc...@hotmail.com>
Authored: Fri Apr 25 13:18:49 2014 -0700
Committer: Tathagata Das <ta...@gmail.com>
Committed: Fri Apr 25 13:18:49 2014 -0700
----------------------------------------------------------------------
.../scala/org/apache/spark/streaming/examples/KafkaWordCount.scala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/spark/blob/8aaef5c7/examples/src/main/scala/org/apache/spark/streaming/examples/KafkaWordCount.scala
----------------------------------------------------------------------
diff --git a/examples/src/main/scala/org/apache/spark/streaming/examples/KafkaWordCount.scala b/examples/src/main/scala/org/apache/spark/streaming/examples/KafkaWordCount.scala
index 3a18bd0..2aa4f14 100644
--- a/examples/src/main/scala/org/apache/spark/streaming/examples/KafkaWordCount.scala
+++ b/examples/src/main/scala/org/apache/spark/streaming/examples/KafkaWordCount.scala
@@ -71,7 +71,7 @@ object KafkaWordCount {
object KafkaWordCountProducer {
def main(args: Array[String]) {
- if (args.length < 2) {
+ if (args.length < 4) {
System.err.println("Usage: KafkaWordCountProducer <metadataBrokerList> <topic> " +
"<messagesPerSec> <wordsPerMessage>")
System.exit(1)