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

Support for multiple file outputs #3

Open
halfak opened this issue Sep 18, 2015 · 0 comments
Open

Support for multiple file outputs #3

halfak opened this issue Sep 18, 2015 · 0 comments

Comments

@halfak
Copy link
Member

halfak commented Sep 18, 2015

When running utilities like diffs2persistence, the major bottleneck is in writing to a compressed stream -- not the actual processing work. In order to take advantage of the distributed processing strategy, we should be writing to multiple output files directly from the mappers.

Each mapper gets a path from which a filename can be extracted.

An optional --output-directory parameter should be provided. Multiple output files (one per input path) should then be written to that directory rather than stdout. An additional argument for compression type should be made available: --output-compression. The default should be bz2.

Note that this will also help do multiprocessing within subsequent stages of the pipeline.

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

No branches or pull requests

1 participant