hadoop-hdfs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gabriel balan <gabriel.ba...@oracle.com>
Subject Re: Packaging multiple map reduce jobs into one Jar
Date Wed, 01 Jul 2015 15:25:38 GMT
Hi

Adding to Harshit Mathur's reply:

> What should be the main class in the manifest file
 From what I remember, you must not set that. (i.e. if you set it to MyMain1, then you can't
use MyMain2)

hth
Gabriel Balan


On 7/1/2015 12:02 AM, Harshit Mathur wrote:
> Yes you can do this.
> You can have multiple main in your jar, so you can run,
>             hadoop jar jarname.jar packagename.classname arguments
>
>             for eg: hadoop jar myJar.jar my.testapp.code1.MyMain1 arg1 arg2
>                       hadoop jar myJar.jar my.testapp.code2.MyMain2 arg1 arg2
> BR,
> Harshit
>
>
>
> On Wed, Jul 1, 2015 at 3:51 AM, Nishanth S <chinchu2884@gmail.com <mailto:chinchu2884@gmail.com>>
wrote:
>
>     Hello,
>
>     Is there a  way I can package multiple map reduce jobs  into one jar file and  then
invoke them using hadoop jar.I am using maven as the build tool.What should be the main class
in the manifest file in this case?.
>
>     Thanks,
>     Nishan
>
>
>
>
> -- 
> Harshit Mathur

-- 
The statements and opinions expressed here are my own and do not necessarily represent those
of Oracle Corporation.


Mime
View raw message