Skip to content
Snippets Groups Projects
Commit ac164b79 authored by Marcelo Vanzin's avatar Marcelo Vanzin Committed by Patrick Wendell
Browse files

[SPARK-1459] Use local path (and not complete URL) when opening local 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.
parent b3e5366f
No related branches found
No related tags found
No related merge requests found
...@@ -91,7 +91,7 @@ private[spark] class FileLogger( ...@@ -91,7 +91,7 @@ private[spark] class FileLogger(
val dstream = uri.getScheme match { val dstream = uri.getScheme match {
case "file" | null => case "file" | null =>
// Second parameter is whether to append // Second parameter is whether to append
new FileOutputStream(logPath, !overwrite) new FileOutputStream(uri.getPath, !overwrite)
case _ => case _ =>
val path = new Path(logPath) val path = new Path(logPath)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment