Comments (8)
That property is referenced in the KinesisConnectorConfiguration here and is used by the BasicMemoryBuffer here to determine the result of the "shouldFlush" method.
from amazon-kinesis-connectors.
My bad! I was using ver 1.0.0 and I see that the same has been introduced in Ver 1.1.0. Apologies. BTW, the elapsed milliseconds property is calculated and checked in the "shouldFlush"
method. This method will be invoked only from "processRecords" right? What happens in the case where we have some records in buffer that are not yet emitted, but there are no new messages being posted to the stream (and "callProcessRecordsEvenForEmptyList" is set to false)? How will the emitter be called when the time is elapsed and more importantly what happens to the pending checkpoint? Thanks again.
from amazon-kinesis-connectors.
That's correct, "shouldFlush" will only be called from "processRecords". In the scenario you describe the records would sit buffered until more records are put into the corresponding shard. The property "callProcessRecordsEvenForEmptyList" would need to be set to true to ensure that "processRecords" is eventually called in the absence of putting records into the stream.
There is no concept of a pending checkpoint, so there should not be any issue with a record processor sitting idle for a long time between flushes.
from amazon-kinesis-connectors.
Thanks. Regarding the checkpoint, I was concerned about the scenario where the data sits in the buffer (yet to be flushed) and the process goes down. If we bring up another process what would be the starting point in the stream for the new process? Would it re-process the previously buffered entries?
from amazon-kinesis-connectors.
Upon fail over, the new process will start consuming data from the last checkpoint.
Sincerely,
Gaurav
from amazon-kinesis-connectors.
Hi Gaurav,
In my sample.properties file for kinesis-storm-spout, what should I set zookeeperPrefix to ? I set it to zookeeperPrefix = /storm but looking at my Storm UI properties, I'm not sure which variable and respective value to.
Thanks ahead of time for any reply.
Sam
from amazon-kinesis-connectors.
Hi Sam,
Would you be able to post your question in the kinesis-storm-spout repository (https://github.com/awslabs/kinesis-storm-spout)?
Happy to answer it there.
Thank you,
Gaurav
from amazon-kinesis-connectors.
Thanks Gaurav ahead of time for your replies, also thanks for your contributions to this topic.
I just submitted my question there per your recommendation.
Sam
On Tuesday, October 21, 2014 5:14 PM, gauravgh [email protected] wrote:
Hi Sam,
Would you be able to post your question in the kinesis-storm-spout repository (https://github.com/awslabs/kinesis-storm-spout)?
Happy to answer it there.
Thank you,
Gaurav
—
Reply to this email directly or view it on GitHub.
from amazon-kinesis-connectors.
Related Issues (20)
- AWS ES service version conflict HOT 1
- Add a fail callback when the message can not be transformed. HOT 1
- HTTP proxy support HOT 4
- Emitters should be more extensible
- Application logs
- Logic for auto scaling
- ElasticSearch connector does not work against AWS-ES service HOT 1
- Hibernate - Redshift.
- UnmodifiableBuffer equals method does not return false when buffers contain different records
- is Amazon KCL 1.7.5 compatible with elasticSearch 5.1.1? HOT 1
- Script is still using default values even after modifying the properties file HOT 2
- No suitable driver found for JDBC
- Understanding Number of records emitted to S3 HOT 3
- Not able to run the amazon-kinesis-connectors-samples-1.0.0-SNAPSHOT.jar
- finish Application after consuming n records from the stream with graceful shutdown HOT 2
- Setting Kinesis Client Library DynamoDB properties fails
- The input line is too long. The syntax of the command is incorrect.
- How can I migrate to use KCL 2.x and new AWS SDK, what's the future of kinesis-connectors?
- S3 Sample Error - Caught exception when uploading file s3://pfifer-connector-test HOT 3
- S3 and Kinesis access and secret keys can be different.Support multiple access and secret key.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amazon-kinesis-connectors.