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

Local artifact fetcher should not require base directory

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.0.0, 1.20.0
    • None
    • None

    Description

      Currently Flink tries to fetch all artifacts referenced by the job into a central base directory. https://github.com/apache/flink/blob/6e7bf9b6f939cd1d183e416c0187ad24270e0bc1/flink-clients/src/main/java/org/apache/flink/client/program/artifact/ArtifactFetchManager.java#L76 

      In case, users only rely on artifacts that are resolvable locally this base directory is ignored. https://github.com/apache/flink/blob/6e7bf9b6f939cd1d183e416c0187ad24270e0bc1/flink-clients/src/main/java/org/apache/flink/client/program/artifact/LocalArtifactFetcher.java#L35 

       

      Unfortunately, Flink always tries to provision the base directory leading to strange errors in case Flink has no write privileges on the base directory path. https://github.com/apache/flink/blob/6e7bf9b6f939cd1d183e416c0187ad24270e0bc1/flink-clients/src/main/java/org/apache/flink/client/program/artifact/ArtifactFetchManager.java#L123 

      Since the base directory is not needed for local execution/local artifact fetcher, we should allow the creation of the base directory to be disabled.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              fpaul Fabian Paul
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: