Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-11275

Support GCS files for extra_requirements argument in Python Beam portable runners

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: P2
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: sdk-py-core
    • Labels:
      None

      Description

      Currently Portable runners only support locally available files for adding dependencies on remote workers. This can be seen in https://github.com/apache/beam/blob/master/sdks/python/apache_beam/runners/portability/stager.py#L429 as it uses shutil.copyfile when it detects file is remote and it is not http.

      An easy extension would be to extend _is_remote_path in Stager to detect if the path matches any filesystem and if it does the avoid downloading and let it be copied afterwards.

      Acceptance criteria:

      • `extra_package` can be a GCS path instead of requiring it to be local only.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                calvinleungyk Calvin Leung
                Reporter:
                gcasassaez Gerard Casas Saez
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated: