Closed llermaly closed 2 years ago
Just found out the jar file I'm building for the socketfactory:
https://github.com/GoogleCloudPlatform/cloud-sql-jdbc-socket-factory
Includes some exclusions, one of them threeten. If I remove it then the error changes and complains for a different one. If I remove all the exclusions building fails.
<dependency>
<groupId>com.google.api</groupId>
<artifactId>gax</artifactId>
<version>2.19.5</version>
<exclusions>
<!-- Native image users only need GAX's native-image metadata. GAX's
dependencies are unnecessary for normal users and native image users -->
<exclusion>
<groupId>com.google.api</groupId>
<artifactId>api-common</artifactId>
</exclusion>
<exclusion>
<groupId>com.google.api.grpc</groupId>
<artifactId>proto-google-common-protos</artifactId>
</exclusion>
<exclusion>
<groupId>com.google.auth</groupId>
<artifactId>google-auth-library-credentials</artifactId>
</exclusion>
<exclusion>
<groupId>com.google.auth</groupId>
<artifactId>google-auth-library-oauth2-http</artifactId>
</exclusion>
<exclusion>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
</exclusion>
<exclusion>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</exclusion>
<exclusion>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
</exclusion>
<exclusion>
<groupId>io.opencensus</groupId>
<artifactId>opencensus-api</artifactId>
</exclusion>
<exclusion>
<groupId>org.threeten</groupId>
<artifactId>threetenbp</artifactId>
</exclusion>
</exclusions>
</dependency>
How can I make both libraries work together?
I disabled the enforcer when building and now it works.
Logstash information:
Please include the following information:
Description of the problem including expected versus actual behavior:
We have 2 Logstash docker images, one that installs gcp_pubsub input plugin, and another one that copies jar files for jdbc_static filter.
Both images work separately, but when I combine both in one stops working. if I remove the gcp_pubsub input the image works correctly.
This is the error:
This is the dockerfile:
Steps to reproduce:
Please include a minimal but complete recreation of the problem, including (e.g.) pipeline definition(s), settings, locale, etc. The easier you make for us to reproduce it, the more likely that somebody will take the time to look at it.
Example conf file:
Provide logs (if relevant):