Closed nownikhil closed 2 years ago
@johnynek Any suggestions on how to implement forceToDisk?
Yeah good idea. We have some Twitter internal code for that. Though this is something I wanna revisit. For example in your patch you introduced CascadingBackend
which adds implicit methods on mode and handles args parsing. Now we can do it for every backend, or a common entry point which uses the right mode based on args provided.
Currently we expect users to extend a custom trait MyJob extends ExecutionApp with TwitterBeamExecution
, though ideally users should just be able to provide mode as an arg at runtime (which will of course require multiple packages to be available). Not super important at this point though.
We are defining a
TempSource
which captures output path and coder. We then add a resolver fromTempSource
to correspondingBeamSource
. Added unit test forforceToDiskExecution
.