Uh oh!
There was an error while loading. Please reload this page.
[SPARK-1459] Use local path (and not complete URL) when opening local lo... - #375
[SPARK-1459] Use local path (and not complete URL) when opening local lo...#375vanzin wants to merge 1 commit into
Conversation
AmplabJenkins
commented
Apr 9, 2014
Can one of the admins verify this patch? |
pwendell
commented
Apr 10, 2014
/cc @andrewor14 |
andrewor14
commented
Apr 10, 2014
Good catch. The existing code fails when the |
andrewor14
commented
Apr 10, 2014
Jenkins, test this please. |
1 similar comment
pwendell
commented
Apr 10, 2014
Jenkins, test this please. |
AmplabJenkins
commented
Apr 10, 2014
Merged build triggered. |
AmplabJenkins
commented
Apr 10, 2014
Merged build started. |
AmplabJenkins
commented
Apr 10, 2014
Merged build finished. All automated tests passed. |
AmplabJenkins
commented
Apr 10, 2014
All automated tests passed. |
vanzin
commented
Apr 11, 2014
FYI: just found another issue in this same code. It does not handle the case where the default fs is not "file:", and will try to use FileOutputStream even when it's something like hdfs. I'll fix that and push the new code. |
andrewor14
commented
Apr 11, 2014
Not sure if I understand. Are you saying that if we somehow configure the default file scheme to be |
vanzin
commented
Apr 11, 2014
Ok, maybe it's not a bug per se. But I think it somewhat breaks the user's expectations. Let's say that given a user's configuration, the default fs is hdfs; I'd expect that if I specify the log directory to be "/user/vanzin/logs", that would be in HDFS, not in the local fs. But with the current FileLogger code, it will assume that is a local path, since there is no scheme defined. Anyway, the current patch fixes the actual bug; if you think the above should be handled too I have the code to do it working, but it's not strictly necessary. |
vanzin
commented
Apr 11, 2014
Commit that implements what I'm suggesting, if you're interested: I haven't sent a pull request for that one. |
andrewor14
commented
Apr 18, 2014
@vanzin I recently experienced what you mean on a YARN cluster myself. I've looked at your patch and I think it's a good fix for Spark on YARN. Could you submit a PR for it? It will be more convenient for me to leave my comments there. |
andrewor14
commented
Apr 18, 2014
On a separate note, @pwendell this PR is ready for merge. |
pwendell
commented
Apr 22, 2014
Thanks, I've merged this. |
… lo... ...g file. Author: Marcelo Vanzin <vanzin@cloudera.com> Closes#375 from vanzin/event-file and squashes the following commits: f673029 [Marcelo Vanzin] [SPARK-1459] Use local path (and not complete URL) when opening local log file. (cherry picked from commit ac164b7) Signed-off-by: Patrick Wendell <pwendell@gmail.com>
This is related to SPARK-1459 / PR apache#375. Without this fix, FileLogger.createLogDir() may try to create the log dir on HDFS, while createWriter() will try to open the log file on the local file system, leading to interesting errors and confusion.
This is related to SPARK-1459 / PR #375. Without this fix, FileLogger.createLogDir() may try to create the log dir on HDFS, while createWriter() will try to open the log file on the local file system, leading to interesting errors and confusion. Author: Marcelo Vanzin <vanzin@cloudera.com> Closes#450 from vanzin/event-file-2 and squashes the following commits: 592cdb3 [Marcelo Vanzin] Honor default fs name when initializing event logger.
This is related to SPARK-1459 / PR #375. Without this fix, FileLogger.createLogDir() may try to create the log dir on HDFS, while createWriter() will try to open the log file on the local file system, leading to interesting errors and confusion. Author: Marcelo Vanzin <vanzin@cloudera.com> Closes#450 from vanzin/event-file-2 and squashes the following commits: 592cdb3 [Marcelo Vanzin] Honor default fs name when initializing event logger. (cherry picked from commit dd1b7a6) Signed-off-by: Patrick Wendell <pwendell@gmail.com>
… lo... ...g file. Author: Marcelo Vanzin <vanzin@cloudera.com> Closesapache#375 from vanzin/event-file and squashes the following commits: f673029 [Marcelo Vanzin] [SPARK-1459] Use local path (and not complete URL) when opening local log file.
This is related to SPARK-1459 / PR apache#375. Without this fix, FileLogger.createLogDir() may try to create the log dir on HDFS, while createWriter() will try to open the log file on the local file system, leading to interesting errors and confusion. Author: Marcelo Vanzin <vanzin@cloudera.com> Closesapache#450 from vanzin/event-file-2 and squashes the following commits: 592cdb3 [Marcelo Vanzin] Honor default fs name when initializing event logger.
Test with ./dev/scalastyle
Test with ./dev/scalastyle
…mbol is a token (apache#375) In the case where the offending symbol is a CommonToken, this PR increases the accuracy of the start and stop origin by leveraging the start and stop index information from CommonToken.
…mbol is a token (apache#375) In the case where the offending symbol is a CommonToken, this PR increases the accuracy of the start and stop origin by leveraging the start and stop index information from CommonToken.
…pache#375) This change add the job of terraform-provider-huaweicloud-acceptance-test-fusioncloud Closes-Bug: theopenlab/openlab#130
...g file.