Hi Robert,

Yes we are using maven for building the jar, I have deployed both jar with
dependencies  and without dependencies.

I actually cannot share the pom since it is on the client machine.
But all the dependencies required are there, I have attached a sample pom
file which is similar to the pom we are using

Regards,
Vinay Patil

*+91-800-728-4749*

On Sat, Jun 11, 2016 at 1:36 AM, Robert Metzger <rmetz...@apache.org> wrote:

> Are you using Maven for building your job jar?
> If yes, can you post your pom file on the mailing list?
>
> On Fri, Jun 10, 2016 at 7:16 PM, THORMAN, ROBERT D <rt2...@att.com> wrote:
>
> > How did you “provide” the dependencies?  Did you use the –C <URL>
> > parameter when you submitted your job?
> >
> > On 6/10/16, 11:35 AM, "Vinay Patil" <vinay18.pa...@gmail.com> wrote:
> >
> > >Hi Guys,
> > >
> > >I have deployed my application on a cluster, however when I try to run
> the
> > >application it throws *NoClassDefFoundError for
> > KeyedDeserializationSchema*,
> > >all the dependencies are provided correctly since I have run it on a
> > >different standalone node.
> > >
> > >Please Help
> > >
> > >Regards,
> > >Vinay Patil
> >
> >
>
<project>
  [...]
  <build>
    [...]
    <plugins>
      <plugin>
        <artifactId>maven-assembly-plugin</artifactId>
        <version>2.6</version>
        <configuration>
          <descriptorRefs>
            <descriptorRef>jar-with-dependencies</descriptorRef>
          </descriptorRefs>
                  <archive>
                        <manifest>
                                <mainClass> Main CLass here</mainClass>
                        </manifest>
                  </archive>
        </configuration>
        <executions>
          <execution>
            <id>make-assembly</id> <!-- this is used for inheritance merges -->
            <phase>package</phase> <!-- bind to the packaging phase -->
            <goals>
              <goal>single</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      [...]
</project>

Reply via email to