-
Notifications
You must be signed in to change notification settings - Fork 222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added CompactSplitter #60
base: master
Are you sure you want to change the base?
Conversation
Hi, sorry for the delay. We are releasing a AggregationSplitter that does the similar thing to this PR. I will be pushing out the changes soon. Please let me know if that fits your requirement. If not we can discuss how to improve it. The changes that we made are pretty similar to what's in here, other than that we have tests added as well. |
@chaochenq Can I get a commit/branch/fork reference? |
@lennynyktyk I haven't pushed out the changes yet. But I will let you know once it's done. Thanks! |
@lennynyktyk I have released a newer version with AggregationSplitter which does similar thing to this one Please have a look and let me know of your thoughts. Thanks! |
Hello @chaochenq , I have got around to checking this out and can say this is equivalent. In my testing the only issue I found was that the |
Hello @chaochenq , After digging into this more I am unable to replicate the results I would expect. In the attached graph you can see how after 17:00 there are only dots and not lines. Prior to 17:00 is the stock AWSKinesisAgent JAR v1.1.3 as I tried to configure it with I understand there may need to be a time component e.g. |
@chaochenq @lennynyktyk Will this solution work for Kinesis Stream? |
@nitzanav The way I implemented this solution while I have only tested the aggregation for Kinesis Firehose there is nothing I think why this would not aggregate for Kinesis Streams. Please understand this PR does not compress the data only aggregates it. I have not attempted to compress the data prior to sending it. The solution provided in release 1.1.3 only support Kinesis Firehose. I believe it is possible to write compressed data to the file under observation as long as each "blob" of compressed data written to the file is terminated by a newline "\n". |
@lennynyktyk It seems that you are suggesting to compress each row in seperate, I guess that you want to avoid trying to compress the entire batch/chunk every time a row added, in order to verify that it doesn't exceed aggregatedRecordSizeBytes. In any case I need a technical assistance of a few hours of work, so if any of you can help me code the things I need here, it will be much appreciated. [email protected] |
This is a solution for #57 .
Java is not my forté so I am unsure how to run the test suite. If instructions can be provided on how to do so I can update the PR to include test coverage.