[
https://issues.apache.org/jira/browse/FLINK-20236?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17237931#comment-17237931
]
Rui Li commented on FLINK-20236:
--------------------------------
[~ZhuShang] No problem. I tried on my laptop with maven 3.5.4 and encountered
the same issue as you did. I also noticed that the issue only happens if I run
multiple-module build (i.e. with "{{mvn ... -pl flink-dist -am}}"). However if
I do single module build (trigger build under {{flink-dist}} folder), the
relocation works as expected. So hopefully this can also work around the issue
w/o needing to downgrade your maven version.
> flink-dist.jar and hive-exec.jar have conflict with protobuf-java.jar
> ---------------------------------------------------------------------
>
> Key: FLINK-20236
> URL: https://issues.apache.org/jira/browse/FLINK-20236
> Project: Flink
> Issue Type: Bug
> Components: Build System, Connectors / Hive
> Affects Versions: 1.12.0, 1.11.1
> Environment: flink 1.11.1
> hive 2.3.4
> Reporter: CloseRiver
> Priority: Critical
> Fix For: 1.12.0, 1.11.3
>
>
> We customed the protobuf format.When using the hive catalog and consume the
> protobuf data from kafka,the following exception appear
> {code:java}
> java.lang.NoSuchMethodError:
> com.google.protobuf.Descriptors$Descriptor.getOneofs()Ljava/util/List;java.lang.NoSuchMethodError:
> com.google.protobuf.Descriptors$Descriptor.getOneofs()Ljava/util/List; at
> com.google.protobuf.GeneratedMessageV3$FieldAccessorTable.<init>(GeneratedMessageV3.java:1813)
> {code}
> What should i do,exclude the protobuf-java from flink-dist or from hive-exec.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)