Skip to content

Conversation

@rymarm
Copy link
Member

@rymarm rymarm commented Sep 29, 2022

DRILL-8321: Change kafka_2.13 dependency scope to test

Description

Move org.apache.kafka.kafka_2.13 to test dependency scope. It prevents conflict between Scala versions of org.apache.kafka.kafka_2.13 (Scala 2.13) and com.madhukaraphatak.java-sizeof_2.11 (Scala 2.11). Solves such exceptions that could appear during Drill-On-Yarn startup:

Caused by: java.util.ServiceConfigurationError: com.fasterxml.jackson.databind.Module: Provider com.fasterxml.jackson.module.scala.DefaultScalaModule could not be instantiated
...
Caused by: java.lang.NoSuchMethodError: 'scala.collection.immutable.Seq$ scala.package$.Seq()'

Also, it cleans Drill's classpath from unnecessary dependencies.

Probably org.apache.kafka.kafka_2.13 was added to compile scope by mistake.

Documentation

No changes.

Testing

Unit tests pass successfully. Tried to connect to Kafka and read a topic - everything works fine.

@cgivre cgivre added bug minor-update dependencies backport-to-stable This bug fix is applicable to the latest stable release and should be considered for inclusion there stability labels Sep 29, 2022
@jnturton jnturton self-requested a review September 30, 2022 04:27
Copy link
Contributor

@jnturton jnturton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@cgivre cgivre merged commit 88f3c68 into apache:master Oct 2, 2022
kingswanwho pushed a commit to kingswanwho/drill that referenced this pull request Dec 9, 2022
kingswanwho pushed a commit to kingswanwho/drill that referenced this pull request Dec 18, 2022
jnturton pushed a commit that referenced this pull request Dec 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-to-stable This bug fix is applicable to the latest stable release and should be considered for inclusion there bug dependencies minor-update stability

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants