Skip to content

Commit

Permalink
MapR [SPARK-705] Spark streaming fail with NoSuchMethodError: org.apa…
Browse files Browse the repository at this point in the history
…che.kafka.clients.producer.ProducerConfig.getBoolean(Ljava/lang/String;)Ljava/lang/Boolean; (apache#644)
  • Loading branch information
Egor Krivokon authored and ekrivokonmapr committed Nov 6, 2023
1 parent 204ba82 commit e9dc2cb
Show file tree
Hide file tree
Showing 2 changed files with 84 additions and 0 deletions.
50 changes: 50 additions & 0 deletions external/kafka-0-10-sql/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
<artifactId>spark-sql-kafka-0-10_2.12</artifactId>
<properties>
<sbt.project.name>sql-kafka-0-10</sbt.project.name>
<!-- note that this should be compatible with Kafka brokers version 0.10 and up -->
<kafka.version>2.1.1.0-mapr-SNAPSHOT</kafka.version>
</properties>
<packaging>jar</packaging>
<name>Kafka 0.10+ Source for Structured Streaming</name>
Expand Down Expand Up @@ -89,6 +91,18 @@
<groupId>com.github.luben</groupId>
<artifactId>zstd-jni</artifactId>
</exclusion>
<exclusion>
<groupId>com.mapr.hadoop</groupId>
<artifactId>maprfs</artifactId>
</exclusion>
<exclusion>
<groupId>com.mapr.streams</groupId>
<artifactId>mapr-streams</artifactId>
</exclusion>
<exclusion>
<groupId>com.mapr.db</groupId>
<artifactId>maprdb</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
Expand Down Expand Up @@ -175,9 +189,45 @@
</dependency>

</dependencies>

<build>
<outputDirectory>target/scala-${scala.binary.version}/classes</outputDirectory>
<testOutputDirectory>target/scala-${scala.binary.version}/test-classes</testOutputDirectory>
<plugins>
<!-- Surefire runs all Java tests -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.20.1</version>
<!-- Note config is repeated in scalatest config -->
<configuration>
<systemProperties>
<skipTests>true</skipTests>
</systemProperties>
</configuration>
</plugin>
<!-- Scalatest runs all Scala tests -->
<plugin>
<groupId>org.scalatest</groupId>
<artifactId>scalatest-maven-plugin</artifactId>
<version>1.0</version>
<!-- Note config is repeated in surefire config -->
<configuration>
<systemProperties>
<java.security.auth.login.config>${project.basedir}/src/test/resources/mapr.login.conf</java.security.auth.login.config>
</systemProperties>
</configuration>
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>scala-2.12</id>
<properties>
<kafka.version>0.10.1.1</kafka.version>
</properties>
</profile>
</profiles>

</project>
34 changes: 34 additions & 0 deletions external/kafka-0-10/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
<artifactId>spark-streaming-kafka-0-10_2.12</artifactId>
<properties>
<sbt.project.name>streaming-kafka-0-10</sbt.project.name>
<!-- note that this should be compatible with Kafka brokers version 0.10 and up -->
<kafka.version>2.1.1.0-mapr-SNAPSHOT</kafka.version>
</properties>
<packaging>jar</packaging>
<name>Spark Integration for Kafka 0.10</name>
Expand Down Expand Up @@ -74,6 +76,26 @@
<groupId>com.github.luben</groupId>
<artifactId>zstd-jni</artifactId>
</exclusion>
<exclusion>
<groupId>com.sun.jmx</groupId>
<artifactId>jmxri</artifactId>
</exclusion>
<exclusion>
<groupId>com.sun.jdmk</groupId>
<artifactId>jmxtools</artifactId>
</exclusion>
<exclusion>
<groupId>net.sf.jopt-simple</groupId>
<artifactId>jopt-simple</artifactId>
</exclusion>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.zookeeper</groupId>
<artifactId>zookeeper</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
Expand All @@ -94,6 +116,18 @@
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
</exclusion>
<exclusion>
<groupId>com.mapr.hadoop</groupId>
<artifactId>maprfs</artifactId>
</exclusion>
<exclusion>
<groupId>com.mapr.streams</groupId>
<artifactId>mapr-streams</artifactId>
</exclusion>
<exclusion>
<groupId>com.mapr.db</groupId>
<artifactId>maprdb</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- Kafka embedded server uses Zookeeper 3.5.7 API -->
Expand Down

0 comments on commit e9dc2cb

Please sign in to comment.