FAQ
Hi everyone,

I'm experiencing a chain of runtime exceptions which I believe starts with a
ClassNotFoundException for a Trove library class I'm using in my custom
jar. Here's a copy of the error output: http://pastie.org/1741485.

I created a test java application that used the same Trove library and class
and did not experience the same exceptions. In NetBeans I can dig down into
the .jar file for the Trove library and see that the class I'm importing is
indeed there, so the runtime exceptions are a complete mystery to me.

Can anyone help or at least confirm that the issue that's causing my job to
fail is due to the ClassNotFoundException?

Thanks in advance,
John

Search Discussions

  • John Therrell at Mar 31, 2011 at 11:41 pm
    Just found the answer. I didn't realize that I needed to do either of two
    options:

    1. If using the GenericOptionsParser, pass a -libjars <list of jars>
    argument.
    2. Merge all dependent jar libraries and main jar into one jar following
    suggestions in
    http://stackoverflow.com/questions/81260/java-easiest-way-to-merge-a-release-into-one-jar-file
    .
    On Thu, Mar 31, 2011 at 3:58 PM, John Therrell wrote:

    Hi everyone,

    I'm experiencing a chain of runtime exceptions which I believe starts with
    a ClassNotFoundException for a Trove library class I'm using in my custom
    jar. Here's a copy of the error output: http://pastie.org/1741485.

    I created a test java application that used the same Trove library and
    class and did not experience the same exceptions. In NetBeans I can dig down
    into the .jar file for the Trove library and see that the class I'm
    importing is indeed there, so the runtime exceptions are a complete mystery
    to me.

    Can anyone help or at least confirm that the issue that's causing my job to
    fail is due to the ClassNotFoundException?

    Thanks in advance,
    John



  • Harsh J at Apr 9, 2011 at 8:33 am
    Hello John,
    On Fri, Apr 1, 2011 at 5:11 AM, John Therrell wrote:
    Just found the answer. I didn't realize that I needed to do either of two
    options:
    Glad you found the solution! The first approach is the best one to
    use, and is recommended.
    1. If using the GenericOptionsParser, pass a -libjars <list of jars>
    argument.

    --
    Harsh J

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupmapreduce-user @
categorieshadoop
postedMar 31, '11 at 10:58p
activeApr 9, '11 at 8:33a
posts3
users2
websitehadoop.apache.org...
irc#hadoop

2 users in discussion

John Therrell: 2 posts Harsh J: 1 post

People

Translate

site design / logo © 2023 Grokbase