Resolved “java.lang.NoClassDefFoundError: org/apache/flink/shaded/guava30/com/google/common/io/Closer” while streaming data from Apache Flink 1.18.1 to Kafka topic.

Gautam Goswami
1 min readMar 26, 2024

Apache Flink is a high-throughput, unified batch and stream processing engine, renowned for its capability to handle continuous data streams at scale. It seamlessly integrates with Kafka and offers robust support for exactly-once semantics, ensuring each event is processed precisely once, even amidst system failures.

The above-mentioned exception is occurring and may be encountered while processing the input data stream within Apache Flink 1.18.1, when writing back to a Kafka topic and eventually to various data pipelines or downstream applications.

The root cause of the issue is unavailability of flink-shaded-guava-30.1.1-jre-16.0.jar or higher version either on the build path or POM file if we are using Maven. The flink-shaded-guava-30.1.1-jre-16.0.jar can be downloaded from https://repo1.maven.org/maven2/org/apache/flink/flink-shaded-guava/30.1.1-jre-16.0/flink-shaded-guava-30.1.1-jre-16.0.jar

Thank you for reading this write-up. If you found this content valuable, please consider liking and sharing.

--

--

Gautam Goswami

Enthusiastic about learning /sharing gyan on Big Data & related headways. Presently Engineering & Data Streaming head @ www.irisidea.com. Crafted dataview.in