built the official docker image for Flink with sca...
# troubleshooting
p
built the official docker image for Flink with scala 2.12 and COPYied the TopSpeedWindowing.jar test application into the /opt/flink/lib directory. However, when running the container it fails with : NoClassDefFoundError: org/apache/flink/shaded/curator4/org/apache/curator/framework/api/ACLProvider. How is this possible that the official docker image can not run its own test application without class issues? Anyone experienced this?
m
Which version of Flink are you trying?
p
Flink 1.18.1 with scala 2.12
I have been chasing missing classes for three days 😞
Its why I built the docker. But I got the same error.
m
I just don't think it's usual to just put the JAR in the lib folder
You would always submit via something like
flink run ./examples/streaming/TopSpeedWindowing.jar
p
sudo docker run -h flink -ti flink standalone-job --job-classname org.apache.flink.streaming.examples.windowing.TopSpeedWindowing
That is also in the tutorials
m
Which tutorial?
p
Getting Started with Flink Docker
its the top example
m
Can you give a link?
p
its just the link for running standalone-job.sh
The docker image entrypoint asks for a parameter standalone-job
You were referring to session mode, which I do not want as I only will need one job running on my endpoint