Skip to content

Impossible to submit Google Dataflow job from Windows machine #18734

Closed as not planned

Description

@kennknowles

Got exception when trying to submit Dataflow job from java application running on Windows machine.

java.lang.IllegalArgumentException: Location must be local or on Cloud Storage, got C:\Users\myuser\AppData\Local\Temp\dataflow-job341260414234234.json.
 Here:

fileLocation.startsWith("/") || fileLocation.startsWith("gs://"),

following check is performed:  fileLocation.startsWith("/") || fileLocation.startsWith("gs://"),

which prohibits usage of any Windows-style file names.

Workaround is to provide explicit file location on GCS:

dataflowPipelineOptions.setDataflowJobFile("gs://mybucket/dataflowjob.pb");

 

Imported from Jira BEAM-4380. Original Jira may contain additional context.
Reported by: kardashov.

Activity

  1. Abacn commented on Aug 10, 2026

    @Abacn
    Contributor

    --dataflowJobFile are old fasion way to submit Dataflow job. Nowadays it job graph is automatically generated and uploaded to gcs. However, this platform improvement sounds fine

  2. singhmrinal02 commented on Sep 16, 2026

    @singhmrinal02
    Contributor

    Hi, I'd like to work on this issue as a first contribution to Apache . Could you please assign it to me?

  3. Abacn commented on Sep 16, 2026

    @Abacn
    Contributor

    Close this as no longer planned, see #18734 (comment)

  4. added this to the 2.77.0 Release milestone on Sep 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions