Skip to content

Commit

Permalink
add position_file parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Osheroff committed Mar 9, 2015
1 parent 25e5c59 commit 6339da9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/com/zendesk/maxwell/MaxwellConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ private void parseOptions(String [] argv) {
parser.accepts( "user" ).withRequiredArg();
parser.accepts( "port" ).withRequiredArg();
parser.accepts( "producer" ).withRequiredArg();
parser.accepts( "position_file" ).withRequiredArg();
parser.accepts( "kafka.bootstrap.servers" ).withRequiredArg();

OptionSet options = parser.parse(argv);
Expand All @@ -91,6 +92,8 @@ private void parseOptions(String [] argv) {
this.mysqlPort = Integer.valueOf((String) options.valueOf("port"));
if ( options.has("producer"))
this.producerType = (String) options.valueOf("producer");
if ( options.has("position_file"))
this.currentPositionFile = (String) options.valueOf("position_file");

if ( options.has("kafka.bootstrap.servers"))
this.kafkaProperties.setProperty("bootstrap.servers", (String) options.valueOf("kafka.bootstrap.servers"));
Expand Down

0 comments on commit 6339da9

Please sign in to comment.