charlescol commented on issue #17620:
URL: https://github.com/apache/druid/issues/17620#issuecomment-3282295558

   Check the version of your 
`extensions/druid-avro-extensions/kafka-schema-registry-client.jar` and add a 
`kafka-protobuf-provider.jar` with the **exact same version** to avoid 
compatibility issues (6.2.15 for Druid 34.0.0).
   
   You can then use Maven to resolve the other dependencies (types, wire, 
okio...).
   
   Ex for v34.0.0:
   
   ```dockerfile
   FROM maven:3-eclipse-temurin-17 AS resolver
   WORKDIR /tmp/app
   
   # If not v34.0.0 replace below with your version of 
kafka-schema-registry-client.jar
   RUN cat > pom.xml <<'EOF'
   <project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
https://maven.apache.org/xsd/maven-4.0.0.xsd";>
     <modelVersion>4.0.0</modelVersion>
     
<groupId>dummy</groupId><artifactId>dummy</artifactId><version>1.0.0</version>
     <dependencies>
       <dependency>
         <groupId>io.confluent</groupId>
         <artifactId>kafka-protobuf-provider</artifactId>
         <version>6.2.15</version>
       </dependency>
     </dependencies>
     <repositories>
       
<repository><id>confluent</id><url>https://packages.confluent.io/maven/</url></repository>
       
<repository><id>central</id><url>https://repo1.maven.org/maven2/</url></repository>
     </repositories>
   </project>
   EOF
   
   RUN mvn -q -Dmaven.repo.local=/tmp/.m2 dependency:copy-dependencies 
-DoutputDirectory=/deps -DincludeScope=runtime
   
   FROM apache/druid:34.0.0
   
   RUN mkdir -p /opt/druid/extensions/druid-protobuf-extensions
   
   COPY --from=resolver /deps/*.jar 
/opt/druid/extensions/druid-protobuf-extensions/
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to