flink-yarn-test collects test cases which are deployed to a local Apache Hadoop YARN cluster.
There are several things to consider when running these tests locally:
YarnTestBasespins up aMiniYARNCluster. This cluster spawns processes outside of the IDE's JVM to run the workers on.JAVA_HOMEneeds to be set to make this work.- The Flink cluster within each test is deployed using the
flink-distbinaries. Any changes made to the code will only take effect after rebuilding theflink-distmodule. - Each
YARN*ITCasewill have a local working directory for resources like logs to be stored. These working directories are located inflink-yarn-tests/target/(seefind flink-yarn-tests/target -name "*.err" -or -name "*.out"for the test's output).