Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-4058

Error uploading JAR with dependencies using flink.bat on a Windows stand-alone instance

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Duplicate
    • None
    • None
    • Command Line Client
    • None

    Description

      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 '/'.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mark.nadelson@point72.com Mark Nadelson
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: