Hey Sebastian!

I think there are two approaches:

  - You can either shade the protobuf Classes as well

  - or you can exclude the ptotobuf namespace from shading. Have a look at
the shade plugin docs.

Stephan
 Am 14.11.2014 09:49 schrieb "Sebastian Kunert" <[email protected]>:

> Hi Guys,
>
> I am currently working on integrating Flink with Mesos. Therefore I
> currently reuse the flink-yarn uberjar assembly to build a jar that
> contains all the classes I need. Now I have a dependency on a Google
> Protobuf class. I added protobuf as a dependency to my module and it is
> also contained in the uberjar under /com/google/protobuf.
>
> Nevertheless, on execution I get the following error:
> java.lang.ClassNotFoundException:
> org.apache.flink.shaded.com.google.protobuf.ByteString
>
> The location org.apache.flink.shaded... is wrong. I understand this is
> related to the maven shading plugin but after some looking into it I am not
> sure how to fix this.
>
> Greetings,
>
> Sebastian
>

Reply via email to