tensorflow / ecosystem

Integration of TensorFlow with other open-source frameworks
Apache License 2.0
1.37k stars 392 forks source link

NoSuchMethodError with com.google.protobuf #126

Open Richardxxxxxxx opened 5 years ago

Richardxxxxxxx commented 5 years ago

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?