DE Mastery GitHub

Java for data engineers · JVM-03

Build and dependencies

From your world. packaging a dbt project / Python wheel so it runs on a cluster, but for the JVM

Practice quiz with instant feedback. For a scored run that counts toward your local progress, use uv run de quiz JVM-03.

1Why does running the default (thin) jar of a Flink/Kafka job on a bare JVM throw NoClassDefFoundError?
2You write a Flink job. Which Gradle configuration should Flink's own libraries use, so that you do NOT bundle a second copy into your job jar?
3When merging many jars into a fat jar, why must you exclude META-INF/*.SF, *.DSA and *.RSA?
4What does java -jar app-all.jar require in the jar's manifest?
5What is the purpose of 'relocation' (shading) in the Shadow plugin?
6Two dependencies both contain META-INF/services/.... There is no duplicatesStrategy. What does a fat-jar Jar task do?
7Which statement about implementation vs api/compileOnly is correct for a job (application) artifact?