Skip to content

Commit

Permalink
Update SimpleConsumerExample.java
Browse files Browse the repository at this point in the history
Bug fix: args number should be 5.
  • Loading branch information
asnir committed Mar 16, 2016
1 parent 0843b38 commit 6de4fd6
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,12 +200,12 @@ public void run(long maxReads, String topic, int partition, List<String> seedBro
}

public static void main(String args[]) {
if (args.length != 4) {
System.out.println("Please provide command line arguments: maxReads partitionId broker port");
if (args.length != 5) {
System.out.println("Please provide command line arguments: maxReads topic partitionId broker port");
System.exit(-1);
}

long maxReads = Long.parseLong(args[0]);
long maxReads = Long.parseLong(args[0]);
String topic = args[1];
int partition = Integer.parseInt(args[2]);
List<String> seeds = new ArrayList<>();
Expand Down

0 comments on commit 6de4fd6

Please sign in to comment.