Details
-
Sub-task
-
Status: Resolved
-
P3
-
Resolution: Fixed
-
None
-
None
Description
Currently, when filesToStage contain a path to directory with resources, flink runner throws a "java.io.FileNotFoundException: <path_to_the_dir> (Is a directory)". A way to include directory resources would be helpful.
This "blocker" occurs while trying to run IOITs on flink runner, which basically makes it impossible/very inconvenient to run. When the tests are run via "mvn verify" command, a "test-classes" directory gets detected by detectClasspathResourcesToStage() method which in turn causes the above error.
One way to solve this issue is to package the directories to jars with unique names and update the paths accordingly before staging the files on flink. Something similar is already done in the Dataflow runner (GcsStager), more specifically in PackageUtil class. We are able to run the tests on dataflow thanks to that.
As I checked in a small experiment of mine, providing analogous change makes it possible to run the tests on a Flink cluster.