hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Venner <ja...@attributor.com>
Subject Re: Quick jar deployment question...
Date Thu, 03 Apr 2008 21:04:52 GMT
This only happens if you add a class from the jar to the JobConf 
creation line.

      JobConf conf = new JobConf(MyClass.class);


public JobConf(Class exampleClass)

    Construct a map/reduce job configuration.
        exampleClass - a class whose containing jar is used as the job's 

Ted Dunning wrote:
> The easiest way is to package all of your code (classes and jars) into a
> single jar file which you then execute.  When you instantiate a JobClient
> and run a job, your jar gets copied to all necessary nodes.  The machine you
> use to launch the job need not even be in the cluster, just able to see the
> cluster.
> On 4/3/08 11:23 AM, "C G" <parallelguy@yahoo.com> wrote:
>> Hi All:
>>   When deploying a jar file containing code for a Hadoop job, is it necessary
>> to copy the jar to the same path on all nodes in the grid, or just on the node
>> which will launch the job?
>>   Thanks,
>>   C G
>> ---------------------------------
>> You rock. That's why Blockbuster's offering you one month of Blockbuster Total
>> Access, No Cost.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message