Nathanael England
02/15/2023, 12:03 AMCould not found the Java class 'org.apache.flink.runtime.testutils.MiniClusterResourceConfiguration.Builder'. The Java dependencies could be specified via command line argument '--jarfile' or the config option 'pipeline.jars'Nathanael England
02/15/2023, 1:12 AMflink-runtime-1.16.1-tests.jar and place it in the discovery path of starting up the gateway and got met with different errorsNathanael England
02/15/2023, 1:12 AMpy4j.protocol.Py4JError: org.apache.flink.test.util.MiniClusterWithClientResource does not exist in the JVMNathanael England
02/15/2023, 1:27 AMflink-test-utils-1.16.1-sources.jar since I only see that there. Adding that to the path doesn't help.
$ jar tf venv/lib/python3.8/flink-python/target/test-dependencies/flink-test-utils-1.16.1-sources.jar | grep MiniClusterWithClientResource
org/apache/flink/test/util/MiniClusterWithClientResource.javaNathanael England
02/15/2023, 2:58 AMNathanael England
02/15/2023, 5:20 AMflink-runtime-1.16.1-tests.jar
flink-test-utils-1.16.1.jar
hamcrest-core-1.3.jar
junit-4.13.2.jar
You have to put them somewhere pyflink_gateway_server.py:construct_test_classpath is looking. In our repo, I'll likely override that to include a custom location rather than what is included from the source. With all of these things in place, the unit testing library can be used to set up a simple mini cluster.Nathanael England
02/15/2023, 5:34 AMDian Fu
02/15/2023, 11:12 AM