Scenarios
Scenarios
Assume that you want to collect data volume in the window covering preceding 4 seconds at the interval of one second, and achieve strict consistency of status. In this case, when the application is recovered from failure, all operator statuses are the same.
Data Planning
- Customized operators generate about 10000 pieces of data per second.
- Generated data is of four tuples (Long, String, String, Integer).
- Statistic results are printed on the devices.
- Printed data is of the long type.
Development Approach
- The source operator sends 10000 pieces of data and injects the data to the window operator every second.
- The window operator calculates the data volume of preceding 4 seconds at the interval of one second.
- The statistics is printed to the device at the interval of one second. Please refer to the specificViewing the Debugging Result
- The checkpoint is triggered at the interval of 6 seconds and the checkpoint result is stored in HDFS.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.