Skip to content

Add a better toString to StreamExection #27

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

Merged
merged 1 commit into from
Jan 15, 2016
Merged

Conversation

marmbrus
Copy link
Owner

This is just a quick hack, but as I learned today... its nearly impossible to use this in notebooks unless there is a little bit of debugging info provided by the returned object. This is similar to the debugging info we provide in QueryExecution today for batch queries.

=== Streaming Query ===
CurrentOffsets: {}
Thread State: TERMINATED
java.io.FileNotFoundException: File /asdfasdf does not exist
    at org.apache.hadoop.fs.RawLocalFileSystem.listStatus(RawLocalFileSystem.java:379)
    at org.apache.hadoop.fs.FileSystem.listStatus(FileSystem.java:1482)
    at org.apache.hadoop.fs.FileSystem.listStatus(FileSystem.java:1522)
    at org.apache.hadoop.fs.ChecksumFileSystem.listStatus(ChecksumFileSystem.java:564)
    at org.apache.spark.sql.execution.streaming.FileStreamSource.fetchAllFiles(FileStreamSource.scala:123)
    at org.apache.spark.sql.execution.streaming.FileStreamSource.fetchMaxOffset(FileStreamSource.scala:46)
    at org.apache.spark.sql.execution.streaming.FileStreamSource.getNextBatch(FileStreamSource.scala:71)
    at org...

@rxin
Copy link

rxin commented Jan 15, 2016

Can you paste a tostring output?

@marmbrus
Copy link
Owner Author

Added

@rxin
Copy link

rxin commented Jan 15, 2016

LGTM - although it'd be slightly better to not print a blank line in the case of no error

@AmplabJenkins
Copy link

Merged build finished. Test PASSed.

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/spark-streaming-df-test/46/
Test PASSed.

marmbrus added a commit that referenced this pull request Jan 15, 2016
Add a better toString to StreamExection
@marmbrus marmbrus merged commit b991c8c into streaming-df Jan 15, 2016
@marmbrus marmbrus deleted the streamingToString branch March 8, 2016 00:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants