secor icon indicating copy to clipboard operation
secor copied to clipboard

offsetparser + date timestructure in s3

Open damaex17 opened this issue 10 years ago • 2 comments

Is it possible to use the system time of the upload to generate a s3 date structure instead of parsing messages to extract a timestamp there?

damaex17 avatar Dec 09 '15 18:12 damaex17

You can provide a custom MessageParser which will return the time partition based on system time instead of looking inside the message.

On Wed, Dec 9, 2015 at 10:31 AM, Maximilian Weber [email protected] wrote:

Is it possible to use the system time of the upload to generate a s3 date structure instead of parsing messages to extract a timestamp there?

— Reply to this email directly or view it on GitHub https://github.com/pinterest/secor/issues/151.

HenryCaiHaiying avatar Dec 09 '15 18:12 HenryCaiHaiying

It is possible (you can simply implement a custom message parser) but it is highly discouraged. If you use system time, you will break the consistency guarantees and will possibly introduce duplicate messages. Secor operates under the assumption that message->s3 path mapping is deterministic.

pgarbacki avatar Dec 09 '15 18:12 pgarbacki