tensorflow/ecosystem

NoSuchMethodError with com.google.protobuf

Richardxxxxxxx opened this issue · 0 comments

Hi,
I came across the same issue with #104 when using spark-submit to generate TFRecords.

I analysis the dependency using 'mv dependency:tree' command and 100% sure there is only one version of protobuf-java within my project.

protobuf-java: 3.5.1
tensorflow-hadoop: 1.13.1

 java.lang.NoSuchMethodError: com.google.protobuf.Descriptors$Descriptor.getOneofs()Ljava/util/List;
at com.google.protobuf.GeneratedMessageV3$FieldAccessorTable.<init>(GeneratedMessageV3.java:1727)
at org.tensorflow.example.FeatureProtos.<clinit>(FeatureProtos.java:105)
at org.tensorflow.example.Features$FeatureDefaultEntryHolder.<clinit>(Features.java:103)

Any suggestions?