flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "miaoever (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLINK-4058) Error uploading JAR with dependencies using flink.bat on a Windows stand-alone instance
Date Mon, 20 Jun 2016 09:43:05 GMT

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

miaoever commented on FLINK-4058:
---------------------------------

I met the same problem . If [~mark.nadelson@point72.com] do not fix it yet, i may open a pr
to fix. :)

> Error uploading JAR with dependencies using flink.bat on a Windows stand-alone instance
> ---------------------------------------------------------------------------------------
>
>                 Key: FLINK-4058
>                 URL: https://issues.apache.org/jira/browse/FLINK-4058
>             Project: Flink
>          Issue Type: Bug
>            Reporter: Mark Nadelson
>            Priority: Critical
>
> Uploading a JAR with dependencies in a sub-directory causes an" Unable to create temporary
file" IOException.  This occurs in org.apache.flink.client.program.PackagedProgram.extractContainedLibraries()
> This because of the line "name = name.replace(File.separatorChar, '_');"
> File.separatorChar in windows is the backslash (\) but files read from a Jar are always
in the format of the forward slash (/).  Therefore the slash is never replaced with the '_'.
  The fix is to remove the File.separatorChar with '/'.



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

Mime
View raw message