Update KafkaWordCount.scala
modify the required args number Author: baishuo(白硕) <vc_java@hotmail.com> Closes #523 from baishuo/master and squashes the following commits: 0368ba9 [baishuo(白硕)] Update KafkaWordCount.scala
This commit is contained in:
parent
25a276dd21
commit
8aaef5c756
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue