[ 
https://issues.apache.org/jira/browse/FLINK-1848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14485260#comment-14485260
 ] 

Fabian Hueske commented on FLINK-1848:
--------------------------------------

Yes, thought so as well and tried that actually first, but I got:

{code}
Caused by: java.io.IOException: Found local file path with authority 'c:' in 
path 'file://c:/cygwin64/home/Fabian/out'. Hint: Did you forget a slash? 
(correct path would be 'file:///c:/cygwin64/home/Fabian/out')
        at org.apache.flink.core.fs.FileSystem.get(FileSystem.java:218)
        at org.apache.flink.core.fs.Path.getFileSystem(Path.java:305)
        at 
org.apache.flink.api.common.io.FileOutputFormat.initializeGlobal(FileOutputFormat.java:273)
        at 
org.apache.flink.runtime.jobgraph.OutputFormatVertex.initializeOnMaster(OutputFormatVertex.java:84)
        at 
org.apache.flink.runtime.jobmanager.JobManager$$anonfun$org$apache$flink$runtime$jobmanager$JobManager$$submitJob$2.apply(JobManager.scala:526)
        ... 25 more
{code}

I'm not saying that we should support {{file:///c:/my/dir}} but something is 
broken here...

> Paths containing a Windows drive letter cannot be used in FileOutputFormats
> ---------------------------------------------------------------------------
>
>                 Key: FLINK-1848
>                 URL: https://issues.apache.org/jira/browse/FLINK-1848
>             Project: Flink
>          Issue Type: Bug
>    Affects Versions: 0.9
>         Environment: Windows (Cygwin and native)
>            Reporter: Fabian Hueske
>            Assignee: Fabian Hueske
>            Priority: Critical
>             Fix For: 0.9
>
>
> Paths that contain a Windows drive letter such as {{file:///c:/my/directory}} 
> cannot be used as output path for {{FileOutputFormat}}.
> If done, the following exception is thrown:
> {code}
> Caused by: java.lang.IllegalArgumentException: java.net.URISyntaxException: 
> Relative path in absolute URI: file:c:
>         at org.apache.flink.core.fs.Path.initialize(Path.java:242)
>         at org.apache.flink.core.fs.Path.<init>(Path.java:225)
>         at org.apache.flink.core.fs.Path.<init>(Path.java:138)
>         at 
> org.apache.flink.core.fs.local.LocalFileSystem.pathToFile(LocalFileSystem.java:147)
>         at 
> org.apache.flink.core.fs.local.LocalFileSystem.mkdirs(LocalFileSystem.java:232)
>         at 
> org.apache.flink.core.fs.local.LocalFileSystem.mkdirs(LocalFileSystem.java:233)
>         at 
> org.apache.flink.core.fs.local.LocalFileSystem.mkdirs(LocalFileSystem.java:233)
>         at 
> org.apache.flink.core.fs.local.LocalFileSystem.mkdirs(LocalFileSystem.java:233)
>         at 
> org.apache.flink.core.fs.local.LocalFileSystem.mkdirs(LocalFileSystem.java:233)
>         at 
> org.apache.flink.core.fs.FileSystem.initOutPathLocalFS(FileSystem.java:603)
>         at 
> org.apache.flink.api.common.io.FileOutputFormat.open(FileOutputFormat.java:233)
>         at 
> org.apache.flink.api.java.io.CsvOutputFormat.open(CsvOutputFormat.java:158)
>         at 
> org.apache.flink.runtime.operators.DataSinkTask.invoke(DataSinkTask.java:183)
>         at 
> org.apache.flink.runtime.execution.RuntimeEnvironment.run(RuntimeEnvironment.java:217)
>         at java.lang.Thread.run(Unknown Source)
> Caused by: java.net.URISyntaxException: Relative path in absolute URI: file:c:
>         at java.net.URI.checkPath(Unknown Source)
>         at java.net.URI.<init>(Unknown Source)
>         at org.apache.flink.core.fs.Path.initialize(Path.java:240)
>         ... 14 more
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to