Flink Maven project is compatible with multiple versions of Kafka

Flink need to import kafka-clients to support kafka production and consumption. kafka-clients0.11 provided api only kafka0.11, kafka0.10 version is available, if you want to kafka0.8, kafka0.9 production and consumption, you need to use the version that matches kafka-clients jar package. But if the direct use of these jar package jar package will lead to conflict, because there are classes in the same package name.
Hence the need for changes to the package name jar package to prevent conflicts.
Here are the org.apache.kafka amended as org.apache.kafka08 and org.apache.kafka09. Use tool for jarjar.

Guess you like

Origin www.cnblogs.com/mycd/p/11228022.html