hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harsh J <ha...@cloudera.com>
Subject Re: setJarByClass method semantics
Date Fri, 05 Oct 2012 22:03:49 GMT
Looks at classpath, tries to find resource URL behind the provided
class (looking specifically for jar resources), if found, sets as the
job jar.

Running with .class files doesn't work currently - and the job submits
without a jar carrying the classes. This is typically what happens
when you use an IDE like Eclipse and try to submit a job without
bundling a jar up first. The job triggers and fails with CNF

On Sat, Oct 6, 2012 at 3:30 AM, Jay Vyas <jayunit100@gmail.com> wrote:
> Hi guys:
> What does the setJarByClass method do, if for example ,a given class does
> not exist inside of a JAR file?  For example, in the case that we are
> running compiled java classes as-is.  I can't imagine what the "Default"
> behaviour for such a scenario would be, since the semantics of the method
> imply that all hadoop jobs run in the context of a precompiled jar file.
> --
> Jay Vyas

Harsh J

View raw message