beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (BEAM-1097) Dataflow error message for non-existing gcpTempLocation is misleading
Date Tue, 20 Dec 2016 21:05:58 GMT


ASF GitHub Bot commented on BEAM-1097:

Github user asfgit closed the pull request at:

> Dataflow error message for non-existing gcpTempLocation is misleading
> ---------------------------------------------------------------------
>                 Key: BEAM-1097
>                 URL:
>             Project: Beam
>          Issue Type: Bug
>          Components: examples-java, runner-dataflow
>            Reporter: Scott Wegner
>            Assignee: Scott Wegner
>            Priority: Minor
> The error message for specifying a GCP tempLocation which doesn't exist is misleading.
Rather than mentioning the given path doesn't exist, it says none ways specified.
> This is particularly frustrating because it's one of the few configuration values necessary
to get started with an example or starter archetype, and it's easy to introduce a typo as
it's specified on the commandline. In my case, I was specifying "gs://swegner-tmp" instead
of "gs://swegner-test".
> Repro:
> 1. Clone the starter archetype: {noformat}mvn archetype:generate -DarchetypeGroupId=org.apache.beam
> 2. Add beam-runners-google-cloud-dataflow-java as a dependency in the generated pom.xml
> 3. Build: {noformat}mvn install{noformat}
> 4. Run: {noformat}mvn exec:java -DmainClass=swegner.StarterPipeline -Dexec.args="--runner=DataflowRunner
> Expected: An error message along the lines of: "The specified GCP temp location 'gs://swegner-tmp'
does not exist under project 'myGcpProject'"
> bq. [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.4.0:java (default-cli)
on project counter-names-test: An exception occured while executing the Java class. null:
InvocationTargetException: Failed to construct instance from factory method DataflowRunner#fromOptions(interface
org.apache.beam.sdk.options.PipelineOptions): DataflowRunner requires gcpTempLocation, and
it is missing in PipelineOptions. -> [Help 1]

This message was sent by Atlassian JIRA

View raw message