flink-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Balaji Rajagopalan <balaji.rajagopa...@olacabs.com>
Subject Re: ClasNotFound when submitting job from command line
Date Tue, 19 Apr 2016 16:02:00 GMT
In your pom.xml add the maven.plugins like this, and you will have to add
all the dependent artifacts, this works for me, if you fire mvn clean
compile package, the created jar is a fat jar.








                        <!-- executed just before the package phase -->







                                <!-- For Flink connector classes -->

















On Tue, Apr 19, 2016 at 9:10 PM, Flavio Pompermaier <pompermaier@okkam.it>

> Hi to all,
> I just tied to dubmit my application to the Flink cluster (1.0.1) but I
> get ClassNotFound exceptions for classes inside my shaded jar (like
> oracle.jdbc.OracleDriver or org.apache.commons.pool2.PooledObjectFactory).
> Those classes are in the shaded jar but aren't found.
> If I put the jars in the flink's lib dir (for every node of the cluster)
> things work.
> How can I solve that?
> Best,
> Flavio

View raw message