forked from ilimi-in/secor
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request pinterest#109 from HenryCaiHaiying/master
Adding support for hourly s3 data ingestion from secor:
- Loading branch information
Showing
14 changed files
with
664 additions
and
192 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
include=secor.dev.properties | ||
|
||
secor.kafka.group=secor_hr_partition | ||
secor.message.parser.class=com.pinterest.secor.parser.ThriftMessageParser | ||
|
||
secor.s3.path=secor_dev/hr_partition | ||
secor.local.path=/tmp/secor_dev/message_logs/hr_partition | ||
|
||
partitioner.granularity.hour=true | ||
|
||
ostrich.port=9998 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,13 +42,13 @@ | |
* @author Pawel Garbacki ([email protected]) | ||
*/ | ||
public class LogFilePath { | ||
private String mPrefix; | ||
private String mTopic; | ||
private String[] mPartitions; | ||
private int mGeneration; | ||
private int mKafkaPartition; | ||
private long mOffset; | ||
private String mExtension; | ||
private final String mPrefix; | ||
private final String mTopic; | ||
private final String[] mPartitions; | ||
private final int mGeneration; | ||
private final int mKafkaPartition; | ||
private final long mOffset; | ||
private final String mExtension; | ||
|
||
public LogFilePath(String prefix, int generation, long lastCommittedOffset, | ||
ParsedMessage message, String extension) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.