Skip to content
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

[FLINK-8814] Control over the extension of part files created by BucketingSink #5603

Closed
wants to merge 1 commit into from

Conversation

jelmerk
Copy link

@jelmerk jelmerk commented Feb 28, 2018

What is the purpose of the change

Popular tools like hue and the avro connector for spark require files stored on hdfs to have the .avro extension. This patch makes it possible to configure a part file suffix

Brief change log

  • adds support for partSuffix in BucketingSink

Verifying this change

The basic functionality of BucketingSink is verified by BucketingSinkTest. The structure of this test makes it awkward to test this in isolation

Does this pull request potentially affect one of the following parts:

  • Dependencies (does it add or upgrade a dependency): no
  • The public API, i.e., is any changed class annotated with @Public(Evolving): no
  • The serializers: no
  • The runtime per-record code paths (performance sensitive): no
  • Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Yarn/Mesos, ZooKeeper: no
  • The S3 file system connector: no

Documentation

  • Does this pull request introduce a new feature? yes
  • If yes, how is the feature documented? JavaDocs

Copy link
Contributor

@aljoscha aljoscha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, there was one typo but I can fix that while merging.

@@ -986,6 +996,14 @@ private void handlePendingFilesForPreviousCheckpoints(Map<Long, List<String>> pe
return this;
}

/**
* Sets the prefix of part files. The default is no suffix.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

prefix -> suffix

@aljoscha
Copy link
Contributor

aljoscha commented Mar 1, 2018

Merged. 👍 Could you please close the PR?

@jelmerk jelmerk closed this Mar 1, 2018
@jelmerk
Copy link
Author

jelmerk commented Mar 1, 2018

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants