Uh oh!
There was an error while loading. Please reload this page.
[SPARK-4026][Streaming] Write ahead log management - #2882
Conversation
tdas
commented
Oct 21, 2014
Please review this @JoshRosen |
SparkQA
commented
Oct 21, 2014
QA tests have started for PR 2882 at commit
|
SparkQA
commented
Oct 21, 2014
QA tests have finished for PR 2882 at commit
|
AmplabJenkins
commented
Oct 21, 2014
Test FAILed. |
SparkQA
commented
Oct 21, 2014
QA tests have started for PR 2882 at commit
|
SparkQA
commented
Oct 21, 2014
QA tests have finished for PR 2882 at commit
|
AmplabJenkins
commented
Oct 21, 2014
Test PASSed. |
There was a problem hiding this comment.
WIP: this file is going to be updated by @harishreedharan to get rid of the local file customizations.
There was a problem hiding this comment.
Ah, that makes sense. I guess you can still use the HDFS API to write to local files for testing purposes.
There was a problem hiding this comment.
Yep. And for all tests, we are just going to use Hadoop Minicluster anyway.
There was a problem hiding this comment.
Nice Scala one-liner :)
Why do we need this reflection, though? Is this necessary to support multiple Hadoop versions? If so, could you add a one-line comment to explain this?
There was a problem hiding this comment.
Actually we do, since Spark supports Hadoop 1 to Hadoop 2.5.0 right now. In Hadoop 1.x, the "sync" method did the same thing hflush does in 2.5.0 - so in short we do.
There was a problem hiding this comment.
Credit goes to Colin McCabe who wrote this line.
https://github.com/apache/spark/blame/master/core/src/main/scala/org/apache/spark/util/FileLogger.scala#L106
Stole from there.
SparkQA
commented
Oct 23, 2014
QA tests have finished for PR 2882 at commit
|
AmplabJenkins
commented
Oct 23, 2014
Test PASSed. |
SparkQA
commented
Oct 23, 2014
QA tests have started for PR 2882 at commit
|
tdas
commented
Oct 23, 2014
@JoshRosen |
SparkQA
commented
Oct 23, 2014
QA tests have finished for PR 2882 at commit
|
AmplabJenkins
commented
Oct 23, 2014
Test FAILed. |
Directory deletion should not fail tests
SparkQA
commented
Oct 23, 2014
QA tests have started for PR 2882 at commit
|
SparkQA
commented
Oct 23, 2014
QA tests have finished for PR 2882 at commit
|
AmplabJenkins
commented
Oct 23, 2014
Test PASSed. |
harishreedharan
commented
Oct 23, 2014
Yay, finally! |
tdas
commented
Oct 23, 2014
@JoshRosen whenever you get a chance. :) |
There was a problem hiding this comment.
It looks like this comment is no longer relevant, or perhaps like it should be moved somewhere else?
JoshRosen
commented
Oct 24, 2014
This looks good to me! |
tdas
commented
Oct 24, 2014
Alright, thanks! I will merge when this last set of changes gets through jenkins. |
SparkQA
commented
Oct 24, 2014
QA tests have started for PR 2882 at commit
|
SparkQA
commented
Oct 24, 2014
QA tests have finished for PR 2882 at commit
|
AmplabJenkins
commented
Oct 24, 2014
Test PASSed. |
harishreedharan
commented
Oct 24, 2014
Let's merge this for now. I will try and find out more about the getFileSystem thread-safety without doAs (which is what we support anyway) |
harishreedharan
commented
Oct 24, 2014
Talked to @cmccabe who says we should not worry about the thread-safety. If at all there was an issue, it was in too old a version which we need not worry about. Let's merge this! |
tdas
commented
Oct 24, 2014
Cool! Thanks for check with @cmccabe. Merging this. |
As part of the effort to avoid data loss on Spark Streaming driver failure, we want to implement a write ahead log that can write received data to HDFS. This allows the received data to be persist across driver failures. So when the streaming driver is restarted, it can find and reprocess all the data that were received but not processed.
This was primarily implemented by @harishreedharan. This is still WIP, as he is going to improve the unitests by using HDFS mini cluster.