Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
Hadoop >> mail # user >> setJarByClass method semantics


Copy link to this message
-
Re: setJarByClass method semantics
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
exceptions.

On Sat, Oct 6, 2012 at 3:30 AM, Jay Vyas <[EMAIL PROTECTED]> 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
> MMSB/UCHC

--
Harsh J
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB