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

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Command Line Client
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: