New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BEAM-2143]: Fix default temp location for DataflowRunner #2907
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM; leaving final review & merge to @bjchambers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you comment on what the logs are like now when running the word count example and not specifying the tempLocation?
|
||
@Override | ||
public String create(PipelineOptions options) { | ||
GcsOptions gcsOptions = options.as(GcsOptions.class); | ||
LOG.info("No staging location provided, falling back to temp location."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggest formatting the options as options: "No stagingLocation provided, falling back to gcpTempLocation"
@@ -278,7 +278,7 @@ static String tryCreateDefaultBucket( | |||
} | |||
final String bucketName = | |||
"dataflow-staging-" + region + "-" + projectNumber; | |||
LOG.info("No staging location provided, attempting to use default bucket: {}", | |||
LOG.info("No temp location provided, attempting to use default bucket: {}", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"No tempLocation specified, attempting to use default bucket:"
If If both |
Done |
The exception I get from this is still not particularly useful. It says:
|
What command did you run? You shouldn't see an exception after this change for missing either of |
Ah -- it looks like it wasn't using the patched version of the SDK. Looks good now. |
@bjchambers @davorbonaci Looks good to be merged. |
Be sure to do all of the following to help us incorporate your contribution
quickly and easily:
[BEAM-<Jira issue #>] Description of pull request
mvn clean verify
.<Jira issue #>
in the title with the actual Jira issuenumber, if there is one.
Individual Contributor License Agreement.
gs://some-bucket
path invalid and expects it to be of the formgs://some-bucket/basename
. So adding/temp
as the basename for the defaulttempLocation
.