Comments (2)
I also tried changing the GroupStateTimeout from EventTimeTimeout to ProcessingTimeTimeout on line 315 plus oldState.setTimeoutTimestamp(newState.timestamp.getTime(), "5 seconds") to oldState.setTimeoutDuration("5 seconds") on line 295, but still don't observe any time-outs.
from spark-the-definitive-guide.
There might be a couple of issues here.
-
That's because the file sink doesn't support complete mode. In append mode, it's going to have to wait for the entire watermark to run out, which can take some time. More info here. You'd start seeing results after 10+ minutes if you're doing append because it has to wait for the watermark to complete.
-
Also if there's no data left, or it gets processed too quickly, Spark won't "age out" old state if it processes an empty batch. This is also something that's slated for future changes.
from spark-the-definitive-guide.
Related Issues (20)
- Chapter 13 - Advanced RDD example of Custom partitioner may need correction HOT 1
- Spark SQL Help HOT 4
- not a member of org.apache.spark.sql.SparkSession HOT 7
- Chapter 3: java.lang.IllegalStateException: Cannot call methods on a stopped SparkContext. HOT 1
- Error while connecting to Databases in DataBrick Community Edition on Cloud . HOT 4
- Code issue chapter2
- Code in Chapter 22 - Windows on Event Time
- Chapter 9: java.lang.ClassNotFoundException: org.sqllite.JDBC HOT 2
- Translation of the book,"Spark-The-Definitive-Guide", from English into Chinese
- Error while connecting to Databases in DataBrick Community Edition on Cloud HOT 4
- staticSchema error in chapter 3 in s HOT 1
- Chapter 6 - Working with JSON
- Chapter 7 - A small correction to sql code in sumDistinct
- Chapter 7 - A small correction in sql code in group query
- Not applicable - opened by mistake
- Ch9 - Writing to SQL database - SQLException: [SQLITE_ERROR] SQL error or missing database (no such table: flight_info) HOT 1
- ch10 - sparksql- Inserting into tables query not working Cannot safely cast 'count': string to bigint
- Chapter 9: DataSources - Partitioning based on a sliding window section - python
- Multi-line chain of Dataframe transformations needs to be enclosed in parenthesis HOT 2
- ImportError: cannot import name '_centered' from 'scipy.signal.signaltools'
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 spark-the-definitive-guide.